Creating a credit note requires a premium license and an eligible invoice.
Choose how to allocate the amount
Estimate a credit note
Worked example
Thecontract_example invoice has two fees: monthly_service at $100.00 and `api_calls_product` at $20.00, in USD, with a 20% tax. The customer paid the full $144.00. You agree to reduce the API-call fee by USD 10. This illustrative reduction includes USD 2 in tax, for a total of USD 12.
- Estimate the credit note to get the tax-inclusive amount.
- The estimate returns
sub_total_excluding_taxes_amount_cents: 1000,taxes_amount_cents: 200andsub_total_including_taxes_amount_cents: 1200. - Create the credit note and request the USD 12 refund.
POST /credit_notes/estimate computes amounts and taxes without creating anything. Items and applied taxes are always included in the response.
Issue a credit note
- Dashboard
- API
- Open the invoice.
- Open the Credit notes tab.
- Click Issue a credit note.
- Select a reason.
- Optionally, add a description.
- Select the fees.
- Enter the amount to credit for each fee.
- Split the total between credit, refund and offset.
- Click Issue credit note to confirm.
Retrieve credit notes
Retrieve a credit note with its items and applied taxes to see which fees were credited. To find credit notes across invoices, use the list endpoint and its customer, invoice, status or date filters. See the Retrieve API reference for supported expansions and response details.GET /customers/{customer_external_id}/credit_notes.
Update the refund status
If you process a refund outside Lago, updaterefund_status to record its outcome. This records the status; it is not a request to send a refund. PUT and PATCH accept only refund_status and metadata.
Void remaining credit
credit_status reports the credit balance: available, consumed or voided. Voiding an eligible credit note sets it to voided.
- Dashboard
- API
- Open the customer’s page.
- Open the Credit notes tab.
- Click a credit note.
- Open the Actions menu.
- Select Void credit available.
Download and resend
POST /credit_notes/{lago_id}/download_pdf and POST /credit_notes/{lago_id}/download_xml work on finalized credit notes. They return 200 with the credit note when the document exists, or 202 with an empty body while it is generated. Read file_url and xml_url on the credit note.
POST /credit_notes/{lago_id}/resend_email queues an email with optional to, cc and bcc. It requires a premium license and valid billing entity email settings. A successful request queues the email; it does not confirm delivery.
Next steps
Credit note metadata
Store ERP or tax references on a credit note.
Void invoice
Cancel a whole invoice instead.
Create a credit note (API)
Request and response schema.
Estimate a credit note (API)
Request and response schema.