Join usage-based billing early access (beta)
Meters are part of usage-based billing, which is in early access (beta). Read how they work, then apply to join. We'll reach out if you meet the program requirements.
Meters turn usage events into usage for usage-based billing. Each meter has an action, like api_call, and draws down one usage balance unit. When you report usage for an action, Paddle draws down the customer's usage balances for every meter with that action.
For example, an API product might have a Pro plan that includes 10,000 API calls a month. An api_call meter draws down one call from the customer's usage balance each time you report an API call.
flowchart LR
price["Price<br>allowances"] -- "grants each<br>billing period" --> balance["Usage balance<br>one per customer, per unit"]
events["Usage events<br>action + quantity"] -- "matched by action" --> meter["Meter<br>action → unit, at a rate"]
meter -- "draws down" --> balance
unit["Usage balance unit<br>what customers hold"] -.->|granted by| price
unit -.->|drawn down by| meter
classDef current fill:#3a69c5,stroke:#3a69c5,stroke-width:3px,color:#ffffff
class meter current
Meter entities hold information like:
- A name and description for the meter.
- The
actionthat you send with usage events. - The usage balance unit that the meter draws down.
- The
rate, which is how much of the usage balance unit each unit of usage draws down. - How usage is aggregated.
- The singular name of what the meter measures, like
call. - Custom data for your own use.
- The status of the meter.
Actions and rates
A meter's action is the name you send with usage events. Actions are between 2 and 64 characters, and use lowercase letters, numbers, and underscores, starting with a letter.
The rate is how much of the usage balance unit each unit of usage draws down. A rate of "1" is one-to-one, so each API call draws down one call. Rates are decimal strings greater than zero, so a rate of "0.001" draws down one unit for every 1,000 units of usage.
Changes to rate apply to usage from the time you make them. Paddle doesn't recalculate usage that's already recorded.
During early access (beta), the only aggregation is sum, which adds up the quantity of each usage event.
Meters and usage balance units
Each meter draws down one usage balance unit. You set the usage balance unit and aggregation when you create a meter, and you can't change them afterward. To measure against a different usage balance unit, create a new meter.
More than one meter can draw down the same usage balance unit. For example, api_call and bulk_api_call meters could both draw down "calls." When you report a usage event, Paddle draws down balances for every meter with a matching action.
Two meters can't have the same action and the same usage balance unit, or a single usage event would draw down the balance twice. This includes archived meters. Paddle returns meter_action_usage_balance_unit_duplicate if you try.
There's no delete operation for meters. Use the update meter operation to archive meters when you no longer need them. Unlike most archived entities, archived meters still count usage events for their action. To learn more, see Delete entities.