draft, then is applied to finalize it. Applying to an unpaid invoice reduces the balance due; applying to a paid invoice optionally triggers a refund to the original payment or a wallet. See How Alguna Works for where corrections sit in the lifecycle.
When to use one
Statuses
Credit an invoice
The simplest path:POST /invoices/{id}/credit-notes creates a draft that credits invoice lines at exactly the prices and tax they were billed with — no re-calculation. Omit line_items to credit everything still uncredited; pass them to credit specific lines by the quantity of units (fractional allowed). See Credit an invoice.
amount_including_tax in GET /invoices/{id} is what a full credit of that line returns.
Create a credit note with your own lines
POST /credit-notes builds a draft from lines you specify. Link it to an invoice with invoice_id, or give a customer_id for a credit not tied to a specific invoice. A line either credits an invoice line (invoice_line_item_id + quantity, reusing its price and tax) or prices something new (description, quantity, tax-exclusive unit_price; tax is calculated on top). See Create a credit note.
issued or overdue — are supported for Alguna-issued invoices. Linked paid invoices are supported too.
Apply a credit note
Applying finalizes the draft.do_refund is required: false for an unpaid invoice (the balance is reduced) or when you want a paid invoice credited without money moving; true to refund a paid invoice, with refund_destination of original_payment or wallet (plus wallet_id). See Apply a credit note.
Create and apply in one call
Setapply: true on POST /credit-notes to create and apply synchronously. To refund as well, add refund: { "destination": "original_payment" }; this requires a linked invoice that is paid. If applying fails, the credit note is left in draft and the error names it so you can apply it separately.
Python
Read credit notes
GET /credit-notes?customer_id=… lists a customer’s credit notes (customer_id is required); GET /credit-notes/{id} returns one. Useful fields:
In the dashboard
- Open the invoice under Invoices and choose Create Credit Note from its actions.
- Pick the lines and quantities to credit, or add a custom line. The credit note is created as a
draft. - Open the draft and choose Apply Credit Note. For a paid invoice you choose where the money goes: Refund to payment method, Refund offline (you return the money yourself and record it), Apply to wallet, or Create and apply to a new wallet.
- Optionally send the customer the credit note email.
Next steps
Refunds
What a refund is, its statuses, and when to create one directly.
Wallets
Refund to a prepaid balance instead of the original payment.
Invoicing Configuration
Invoice statuses and organization settings.
Credit Notes API
Full request and response reference.