Credit an invoice
Creates a draft credit note against an invoice, crediting it at the prices and tax it was issued with rather than calculating tax again. Omit line_items to credit everything still uncredited on the invoice. Give line_items to credit specific invoice lines, each by the quantity of units to credit, which may be fractional. Every line here credits an invoice line item; to credit an amount that is not on the invoice, use create-credit-note instead.
Authorizations
Headers
A unique string that makes a retried write safe. If you send the same request with the same key within 24 hours, the API returns the stored response and does not run the request again. A 5xx or 429 response is not stored, so a retry with that key runs the request again.
255"ik_a1b2c3d4e5f6"
Body
Apply the credit note as part of creating it, synchronously, exactly as create followed by Apply Credit Note would. Defaults to false, leaving it a draft. If applying fails the credit note remains a draft and the error identifies it, so it can be retried via Apply Credit Note.
false
Response
Success