Usage-based pricing
Charge for usage without building a metering system
You want to bill for what customers use, but you do not want to build a pipeline that counts events, deduplicates them, prices them and explains the result on an invoice. TenaBill keeps that part, and you send one call per event.
The situation
Counting usage is easy until the first retry sends the same event twice, or a customer asks why the invoice says 41,200 calls. You then need event ids, a record of what was refused, and a way to show the customer where they stand.
TenaBill stores each event once by its event id, prices the period when it closes, and shows the same figures to you and to the customer.
How it works in TenaBill
- Create a meterIn the console, open Billing and then Meters. Give it a key such as api_calls, a unit, how usage combines (sum, max or last value), a price per unit, and any free units per period.
- Put the meter on a planAttach the meter to an offering price so usage beyond the free units lands on the same invoice as the subscription.
- Report events from your backendSend one event per unit of work with a stable event id that you build from your own identifiers. A repeat of the same id is recognised and not counted again.
- Show customers where they standCustomers see usage so far, the charge so far and an estimate for the end of the period under View usage in the portal. Usage alerts fire at 50, 80 and 100 percent of free units unless you change them.
- Add a ceiling if you need oneA spend cap on a subscription limits usage-priced charges for the period. A soft cap raises a signal. A hard cap either blocks new usage or keeps recording it without billing.
POST /api/v1/usage/events
X-TenaBill-Api-Key: <your merchant API key>
Content-Type: application/json
{
"eventId": "api-call-8f3a2c",
"subscriptionId": "<subscription id>",
"meterId": "<meter id>",
"customerId": "<customer id>",
"quantity": 1,
"occurredAtUtc": "2026-10-17T14:30:00Z"
}Good to know
Limits to plan around
- Usage is priced after the billing period closes. TenaBill never cuts off service in the middle of a period. If you must stop service the moment a limit is reached, enforce that in your own system.
- TenaBill does not track call or session length. For time-based meters you report the elapsed duration as the quantity.
- A meter key and its aggregation cannot be changed after creation.
- Spend caps are set through the API today, not in the console.