Create credit note from invoice
Creates a credit note directly from the selected invoice.
When to use this endpoint
This endpoint is a DX shortcut for the common full-credit flow when you already have the invoiceId and do not want to compose the full payload manually. It does not replace the canonical POST /credit-notes; that endpoint remains the explicit create flow with the full business payload.
What the backend takes from the source invoice
- it always derives the client from the selected invoice,
- it copies the invoice items as negative credit-note lines including warehouse allocations,
- it keeps the bank account, currency, language, payment method, reverse-charge flag, and document-level discount,
- it keeps
note,textAboveItems,constantSymbol, andspecificSymbolunless you explicitly override the fields that are allowed here.
Defaults and override fields
issueDatedefaults to today’s date.dueDatedefaults to the effectiveissueDate.deliveryDatedefaults to the effectiveissueDate.- If you omit
number, the backend generates it from the primary credit-note numbering series. If you sendnumericalSeriesIdwithoutnumber, the number is generated from that series. variableSymbolis derived server-side from the final credit-note number.- Only the fields defined in the request schema below can be overridden.
If you send an Idempotency-Key, the same key with the same payload returns the original response without creating the credit note a second time.
Authorizations
Headers
Body
Optional override payload for the shortcut endpoint POST /invoices/{invoice}/credit-notes. All other credit-note business fields are derived server-side from the source invoice. It does not accept items, client data, or bank account data in the request.
Optional override for the text shown above the line items. If omitted, the backend uses textAboveItems from the source invoice. If you send null, the text is cleared.
3000"We are fully crediting the original supply."
Response
Credit note created from the selected invoice.
Credit note.
Payment method ID from the payment method reference table.
1
Currency ID from the currency reference table.
1
Language ID from the language reference table.
1

