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.
View the example's API amounts
View the example's API amounts
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.Invoice and payment statuses
An invoice’sstatus 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
- Dashboard
- API
- Open Invoices in the sidebar.
- Use the filters to narrow the list.
- Select an invoice.
- Review its fees, taxes and 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.