Usage Billing & Credits
Meter usage, set entitlements, sell prepaid credit and bill it next to the subscription
In this section
Overview
Meter what customers use, set entitlements, sell prepaid credit and bill usage on its own invoice next to their subscription
Quickstart
Set up usage billing for one customer and send their first usage, in one Node.js script
Set Up Usage Billing
Create a metric, a price, an agreement for a customer's subscription, entitlements and a usage key
Send Usage
Send usage events from your server to the Comecero usage meter, read the answers and resend safely
Metrics and Aggregations
Define what you count, how events add up for a billing period, and which properties events may carry
Entitlements
What each customer gets: metered usage on a pinned price, an included allowance, an overage policy, and prepaid credit
Credits and Burndown
Sell prepaid credit, add it safely, read the balance, and see exactly what is used first when usage is billed
How Usage Is Billed
Billing periods, late usage, the usage invoice, the minimum invoice, prepaid credit and test mode
Usage with Subscriptions
Sell a plan with a monthly fee and usage on top: how usage follows the subscription, plan changes, cancellations, payments and merchant of record
Follow Usage
This period so far, the events behind a bill, and alerts when a customer nears their allowance
Usage Billing API
Every merchant route under /api/v1/usage: metrics, rate plans, agreements, entitlements, credit, usage keys, billing runs, usage summaries and a customer's own usage
Usage Meter API
POST /v1/events: the one usage meter route your app calls, with a usage key