Credit Notes
Issue credit notes to customers. Reduces their outstanding balance.
List Credit Notes
GET/api/v1/credit-notes
| Parameter | Type | Description |
|---|---|---|
status | string | Filter: draft, issued, applied |
customerId | string | Filter by customer |
Create Credit Note
POST/api/v1/credit-notes
| Parameter | Type | Description |
|---|---|---|
customerIdrequired | string | Customer ID |
invoiceId | string | Linked invoice (optional) |
lineItemsrequired | array | { description, quantity, unitPrice } |
reason | string | Reason for credit |
Apply to an Invoice
POST/api/v1/credit-notes/:id/apply
Issues a draft credit note and applies it to an invoice, reducing what the customer owes.
| Parameter | Type | Description |
|---|---|---|
invoiceId | string | The invoice to credit (default: the invoice the credit note was raised against) |