Invoice numbering
With Lago, invoice numbers are automatically generated each time an invoice is finalized. You can configure how these numbers increment to match your billing entity structure and customer management needs.- Per customer: Generates a unique invoice sequence for each customer. This method ensures isolated and traceable numbering per customer, which can simplify customer-level reporting and accounting.
- Entity-wide numbering:
Uses a single, continuous sequence across all customers within a billing entity.
The invoice number also carries the year and the month (
YYYYMM), so you can segment invoices by period. The sequence itself does not restart each month.
Invoice prefix customization
Lago also allows full control over the prefix applied to documents like invoices and credit notes. By default, the prefix combines:- The first three letters of your billing entity’s name, and
- The last four characters of your entity ID.
ACM-9F3C. You can override this with a custom prefix of 1 to 10 characters to match your internal conventions.
Examples
For a billing entity whose prefix isACM-9F3C, an invoice finalized in January 2026 is numbered:
A
draft invoice has no sequential number yet. It is shown as ACM-9F3C-DRAFT until you finalize it.
Configure numbering through the API
Setdocument_numbering to per_customer or per_billing_entity, and document_number_prefix to the prefix you want: