CreditNotes
Create a credit note (line-based, or commit relief)
Changed onTwo shapes. LINE-BASED (regular invoices): lines[] + refund/credit/out_of_band allocation; capped by the invoice's remaining creditable gross. COMMIT RELIEF (ADR-080, paid commit invoices only): pass commit_relief and NO lines — the server retires commit credits and derives the refundable cash from the telescoping price-ratio anchor (discounted commits refund at the purchase rate, never at face). The relief credit note is created AND issued in one transaction; the credit-balance channel is forbidden on relief. Unpaid commit invoices: void the invoice instead.
post/v1/credit-notes
Request
- Base URL: http://localhost:8080
- URL: http://localhost:8080/v1/credit-notes
- Auth: HTTP bearer
Request body
Response
Credit note (issued immediately for commit relief)
Changes
- info
endpoint added
- info