Usage metrics
What you count and bill for, such as API calls or AI tokens, and how the events add up.
Endpoints
Guides that use it
Usage billing and credits
Meter what customers use, set entitlements, sell prepaid credit and bill usage on the subscription's renewal invoice, with the API or the dashboard.
Metrics and aggregations
Define what you count, how events add up for a billing period with sum or gauge, and which properties your usage events may carry.
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 product price in a currency GET
Gets a product's price in one currency. When you set a price in that currency, you get it. Otherwise your default price is converted at today's rate with your markup and rounding. Pass a `cart_id` or `invoice_id` to use the rate saved on that cart or invoice. Any token may call this, including a limited token. No permission is needed.
List metrics GET
The account's metrics, by `metric_id`, up to 500. Secret and trusted tokens may call it; a limited token may not (`403`).