Update customer 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.
Business UUID provided by Thred (unique identifier for the business)
A UUID string identifying this customer credit note.
Update serializer for customer credits.
Allows updating basic fields and replacing line items/allocations under safe conditions.
Updated external system identifier (must remain unique within business)
Updated sent date/time (ISO 8601 format)
Updated memo or description for the credit
Updated transaction tags for categorization
Updated custom key-value pairs (max 10kb)
Invoice ID this credit was created from (cannot be changed once set)
Updated line items (cannot change once credit is applied or partially applied)
Updated invoice allocations for this credit
Optional document upload
Customer credit serializer for API responses.
Unique customer credit identifier
Credit status: draft, sent, partially_applied, applied, void (computed from allocations)
draft, sent, applied, partially_applied, void When the credit was sent
Customer receiving this credit (inline details)
Invoice ID this credit was created from (origin tracking, not allocation)
Array of credit line items
Array of invoice allocations
Transaction tags for the credit
Total credit amount in cents
Applied credit amount in cents
Latest document linked to this customer credit
Credit creation timestamp
Last update timestamp
Your external system identifier for this credit
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