Set up a per-user (or ‘per-seat) pricing like Notion, the collaboration software for innovative teams, including plans based on the number of users and prepaid credits. In this template, you will learn how to build a ‘fair’ billing system, with charges calculated according to the number of days of use. This template is suitable for companies whose pricing depends on persistent metrics, such as productivity software (e.g. number of days users are active), fintechs (e.g. number of days payment cards are active) and data platforms (e.g. number of days integrations are active).Documentation Index
Fetch the complete documentation index at: https://docs.getlago.com/llms.txt
Use this file to discover all available pages before exploring further.
Pricing structure
Notion offers a Personal Pro plan for individuals who want to collaborate with friends or clients, and a Team plan through which members can set up a collaborative workspace. While the Personal Pro plan is limited to one member, the Team plan allows companies to invite as many members as they need.| Model | Team plan |
|---|---|
| Price | $10 per user billed monthly |
Get started
Create a billable metric
Create a recurring billable metric to track user activity over time.Refer to the API reference and the guide on recurring metrics to learn more.
- Add a unique
codefor your billable metric - Set the
aggregation_typetounique_count_aggfor counting unique users - Set the
field_nametouser_idto identify individual users - Set
recurringtotruefor persistent tracking across billing periods
Create a plan
Create a plan with prorated charges for fair per-seat billing.Refer to the API reference and the guide on prorated charges to learn more.
- Set the
amount_centsto0since there is no subscription fee - Set the
charge_modeltostandardfor simple per-unit pricing - Enable
proratedbilling for fair daily calculations - Set the
amountto10for $10 per user per month
Create a customer
Create a subscription
Create a subscription for the customer with the plan’s Refer to the API reference to create a subscription.
code.Ingest user activity events
Send usage events to Lago to track usage.Refer to the API reference to create an event.
- Reference your billable metric with
code - Reference the customer’s subscription with
external_subscription_id - Include
user_idin properties to track individual users - Set
operation_typetoaddwhen adding users,removewhen removing
Monitor current usage
Track real-time customer usage for the current billing period.Refer to the API reference to get the current usage.