A credit note corrects an invoice you already issued, without moving money. Each note belongs to one invoice, credits specific lines from that invoice's frozen snapshot, and carries the discount and tax share of every line it touches. Money that was already collected comes back through a refund instead.
A note starts as a draft you can edit freely. Issuing it assigns credit_note_number, freezes the lines, and renders the PDF. Issuing does not change the invoice. Allocating credit against the balance does: it reduces outstanding_money and can close the invoice as credited. Allocations are append-only: reversing one leaves the original in place with reversed_at set and reopens the balance.
Allocation is the one credit-note call that requires an Idempotency-Key, and the key stays on the allocation as its identity. Allocate and reverse return the allocation, the credit note, and the recomputed invoice together; every other endpoint here returns the single resource.
See the Credit notes guide for an end-to-end walkthrough, and Invoicing for the invoice underneath.
