Pricing structure
How it maps to Lago
A recurring unique count metric with
proration: true supports the standard and graduated models in arrears, and standard in advance.
Get started
1
Set up Lago
https://api.eu.getlago.com for the EU cluster. API endpoints live under /api/v2 and require the product catalog to be enabled on your organization.2
Create a recurring billable metric
recurring: true carries the value over between billing periods, so a user stays counted until removed.3
Create a metered product
4
Create a prorated rate card
Set Once a rate exists, structural settings such as
proration to true on the rate card. The standard rate charges $10 per active user per month.proration lock. Refer to the API reference and the standard model.5
Create a plan and apply the rate card
6
Create a customer
external_id returns 422 instead of updating the customer. Refer to the API reference to create a customer.7
Create a contract
Replace The plan supplies the contract’s initial applied rate cards. A future
__PLAN_CODE__ with notion_team.started_at creates a pending contract that becomes active on that date. Only one pending or active contract can use a given external_id at a time. Refer to the API reference to create a contract.The example dates are in the future. To test right away, set each rate’s
effective_from to today and omit started_at, which defaults to now.8
Ingest user activity events
Send an event when a user joins the workspace.Refer to the API reference and the usage ingestion guide.
9
Monitor current usage
Track usage across the contract’s open billing periods.The response returns
amount_cents, taxes_amount_cents, total_amount_cents and a rate_cards array with usage per applied rate card. Pending contracts have no usage. Totals can span several invoices, so this is not a preview of one invoice. Filter with rate_card_code, product_code, product_filter_code or product_type. Refer to the API reference to get current usage.Worked example
Five users are active for one full monthly period.
A user added or removed during the period is billed for part of the month, because the rate card has
proration: true.
What changed from v1
- The charge’s
proratedsetting moves to the rate card’sprorationfield. - The plan has no fixed product, so there is no platform fee.
- Events target
external_contract_idinstead ofexternal_subscription_id.
Standard model
One unit price for every unit.
Fixed products
Price contractual seat counts with
units.Contracts
Apply a plan to a customer.
Create a rate card (API)
POST /api/v2/rate_cards