Skip to main content
A credit note corrects all or part of a finalized invoice without changing the original invoice. Use it to give your customer credit for future invoices, refund a payment or reduce the amount still due.
Creating a credit note requires a premium license and an eligible invoice.

Choose how to allocate the amount

Estimate a credit note

Worked example

The contract_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.
  1. Estimate the credit note to get the tax-inclusive amount.
  2. The estimate returns sub_total_excluding_taxes_amount_cents: 1000, taxes_amount_cents: 200 and sub_total_including_taxes_amount_cents: 1200.
  3. 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

Review the selected fees and the credit, refund and offset amounts before issuing the credit note.
  1. Open the invoice.
  2. Open the Credit notes tab.
  3. Click Issue a credit note.
  4. Select a reason.
  5. Optionally, add a description.
  6. Select the fees.
  7. Enter the amount to credit for each fee.
  8. Split the total between credit, refund and offset.
  9. 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.
To list one customer’s credit notes, call GET /customers/{customer_external_id}/credit_notes.

Update the refund status

If you process a refund outside Lago, update refund_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.
Voiding a credit note removes the remaining credit available to the customer. It cannot be undone. Review the remaining credit before confirming.
  1. Open the customer’s page.
  2. Open the Credit notes tab.
  3. Click a credit note.
  4. Open the Actions menu.
  5. 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.