Create a vendor credit note with line items and optional allocations. Supports idempotency via external_id and can create vendors on-the-fly using vendor_external_id.
Partner-level JWT token (unscoped). Token payload includes partner_id. Business access is validated via partner ownership. Format: Bearer <your-jwt-token>
Use this for: Multi-business operations where the business_id is specified in the URL and partner has access to multiple businesses.
Vendor credit creation serializer with line_items support.
Creates vendor credits with line_items for flexible account allocation.
External system identifier for this vendor credit
1Array of line items for this vendor credit
Existing vendor ID to assign credit to
External vendor ID. Will create vendor if not found
Optional bill ID this credit note was created from (origin tracking, not allocation)
When the credit was received (ISO 8601). Defaults to now if provided
Array of bill allocations for this credit
Transaction tags for the credit
Optional document upload
Vendor credit serializer for API responses.
Unique vendor credit identifier
Credit status: draft, received, partially_applied, applied, void (computed from allocations)
When the credit was received
Vendor who issued the credit (inline details)
Bill ID this credit was created from (origin tracking, not allocation)
Array of credit line items
Array of bill allocations
Transaction tags for the credit
Total credit amount in cents
Applied credit amount in cents
Latest document linked to this vendor credit
Credit creation timestamp
Last update timestamp
Your external system identifier for this credit (used for idempotency)
255Credit currency (e.g., GBP, EUR, USD)
EUR - EuroGBP - British PoundUSD - US DollarSEK - Swedish KronaNOK - Norwegian KroneDKK - Danish KroneISK - Icelandic KrónaMYR - Malaysian RinggitSGD - Singapore DollarEUR, GBP, USD, SEK, NOK, DKK, ISK, MYR, SGD