How it fits together
- The billable metric turns events into a quantity. It does not set a price.
- The product (
product_type: "metered") names what you sell and references the metric withbillable_metric_code. Neither can change after creation. - The rate card and its rate price the quantity.
- Optional product filters split the usage into subsets with their own rate cards.
dynamic requires a SUM metric. See the availability matrix.
Example
api_calls_product uses the api_calls COUNT metric: one matching event is one call.
$0.01 × 2,000 = $20. When reconciling, check the measured units and the applied rate, not only the amount.
Set up a metered product
Create the billable metric first. Then:- Dashboard
- API
- Create a product with Type metered, Code
api_calls_product, Billable metricapi_callsand Product categoryapi_services. - Create a rate card
api_calls_usdfor this product: USD, arrears, proration off. - Add a standard rate
calls_standardwith an amount of 0.01 and a billing interval of 1 month. - Apply the rate card to the plan
api_monthly.
The fields match the API. Screen-by-screen Dashboard steps are not documented yet.
external_contract_id (see usage ingestion) and follow the running total with current usage.
Add filters
The running example has no filters. To price usage by region, declare aregion dimension on the billable metric, create filters on the product, and give each filter its own rate card. Keep a filtered variation separate from the unfiltered 2,000-call baseline so the quantities do not mix. See product filters.
Product filters
Price subsets of metered usage.
Pricing models
Which rate models fit which metric.
Create a product
POST /productsCreate a rate card
POST /rate_cards