Create a customer credit note with line items and optional allocations.
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)
Customer credit creation serializer with line_items support.
Creates customer credits with line_items for flexible account allocation.
External system identifier for this customer credit
1Array of line items for this customer credit
Existing customer ID to assign credit to
External customer ID. Will create customer if not found
Optional invoice ID this credit note was created from (origin tracking, not allocation)
When the credit was sent (ISO 8601 format). Defaults to now
Array of invoice allocations for this credit
Transaction tags for the 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