Usage
Send usage events, read totals and inspect the events behind a bill.
Endpoints
Guides that use it
API endpoint and requests
The base URL of the Comecero API, why every call must use HTTPS, and the headers and JSON body format that every request and response uses.
Reports and analytics
MRR, churn, sales, card approval, storefront visits and usage for your shop, in the dashboard, the API and Claude, with what each number means.
Reports API
Read every analytics report for your shop with GET /api/v1/reports/{name}, including MRR, churn, card approval, storefront visits and usage.
Sell prepaid credit
Let customers buy prepaid usage credit with an invoice, add it once payment completes, and follow the balance, credit history, refunds and spending limits.
Credit units and purchases
Configure a credit unit, publish currency rates, price metered usage, and follow quoted purchases through payment, posted balances, refunds, and receipts.
Credits and burndown
Sell prepaid credit, add it safely with an idempotency key, read the balance, and see exactly what is used first when usage is billed.
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.
How usage is billed
Billing periods, late usage, usage on the renewal invoice, the separate usage invoice, prepaid credit, billing runs, held bills and test mode.
Usage with subscriptions
Sell a plan with a monthly fee and usage on top. How usage follows the subscription through renewals, plan changes, cancellations and failed payments.
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.
Usage meter API
The one usage meter route your server calls. Send usage events to POST /v1/events with a usage key, and read every field, answer and status code.
Get a billing run GET
One billed period, with its invoice lines. URL-encode the id. Secret and trusted tokens may call it; a limited token may not (`403`).
Quote credit quantity POST
Revision checked credit operation. Secret and trusted tokens require the applicable resource permission. New writes require header idempotency. Immutable rates do not reprice existing agreements. Core validates exact conversion, current funding, prepared work and protected billing boundaries.