Update vendor credit.
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.
A UUID string identifying this vendor credit note.
Update serializer for vendor credits.
Allows updating basic fields and replacing line items/allocations under safe conditions.
Updated external system identifier (must remain unique within business)
Updated received date/time (ISO 8601 format, changes status from draft to received)
Updated memo or description for the credit
Updated transaction tags for categorization (array of key-value pairs)
Updated custom key-value pairs (max 10kb)
Bill ID this credit was created from (cannot be changed once set)
Updated line items (cannot change once credit is applied or partially applied)
Updated bill allocations for this 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