Usage agreements
Link your own id for a customer to their Comecero subscription, and read their usage so far.
Endpoints
Guides that use it
Show usage in your app
Show each customer how much of their plan they have used this month, and email them at 80% with the usage threshold webhook. Uses usage so far and alerts.
Entitlements
What each customer gets on an agreement. Metered usage on a pinned price version, an included allowance, an overage policy, and prepaid credit balances.
Follow usage
See usage this period so far, the shopper's own usage, the events behind a bill, and webhook alerts when a customer nears their allowance.
Quickstart
Set up usage billing for one customer in test mode and send their first usage events, then read usage so far, in short Node.js scripts.
Set up usage billing
Create a metric, a price, an agreement for a customer's subscription, entitlements and a usage key, with the API or in the dashboard.
Usage billing API
Every usage billing route on the Comecero API, grouped by resource, with who may call it and a link to its full page in the API reference.
Get a rate plan version GET
One version of a rate plan. Secret and trusted tokens may call it; a limited token may not (`403`).
List billing agreements GET
By `agreement_id`. When `has_more` is `true`, ask again with `starting_after` set to the last id. A `limit` outside 1 to 100 is moved into that range. Secret and trusted tokens may call it; a limited token may not (`403`).