Skip to main content
An invoice brings together the fees billed to a customer. It shows the billed items, taxes and total amount due. Lago generates invoices from your Contracts and their billing settings. Invoice status tracks the document’s lifecycle. Payment status tracks payment separately.

How invoices are calculated

Lago calculates fees from the pricing applied to a Contract. It groups the fees on an invoice and calculates the taxes and totals. Fees can share an invoice when their billing date in the customer’s timezone, currency, billing entity, payment method and purchase order number match, and consolidation is enabled. Without consolidation, Lago separates billing operations by Rate Card. Each fee identifies the Product, quantity and pricing used. See Fees for the line-item details.

Read an invoice

Review the billed items, billing periods, taxes and total. Check the amount still due separately from the invoice total.

Worked example

For one full monthly billing period, contract_example has a $100 fixed fee and 2,000 API calls at $0.01 each. Both are billed in arrears in USD. This example applies 20% tax, with no discounts, proration, credits or payments. The applied Rate Cards are monthly_service_usd, with Rate monthly_standard, and api_calls_usd, with Rate calls_standard. With no payments or credits applied, the amount due is also $144.00. See Taxes for tax configuration.
These illustrative values show how the example maps to invoice fields. In USD, 12000 represents $120.00.Each line is a fee with product_code, rate_card_code, rate_code, units and amount_cents. Request expands[]=fees to include the fees when retrieving the invoice.
For open billing periods, use current usage to review provisional quantities and amounts.

Invoice and payment statuses

An invoice’s status describes the billing document. Its payment_status describes payment. A finalized invoice is not necessarily paid. See Draft invoices, Void invoices and Payment retries for the actions available in each situation. The API reference lists all supported status values.

Find invoices

  1. Open Invoices in the sidebar.
  2. Use the filters to narrow the list.
  3. Select an invoice.
  4. Review its fees, taxes and payments.
You can also open a customer and select the Invoices tab.
For specific operations, see the API references for retrying invoice taxes, recording a lost payment dispute and updating payment status. To record money collected outside Lago, see Record manual payments.

Fees

Read the line items behind an invoice.

Draft invoices

Refresh, finalize or delete a draft.

Void invoices

Void an eligible invoice.

Download and resend invoices

Download a PDF or resend an invoice email.

Credit notes

Correct a finalized invoice.

Payment retries

Follow up on payment collection.