Skip to main content
A metered product bills a quantity measured from events: a billable metric aggregates the events sent to a contract, and the product’s rate turns that quantity into an amount. Use it for anything you charge by consumption, such as API calls, compute hours or transferred GiB.

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 with billable_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.
The metric’s aggregation type limits which rate models you can use. For example, 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:
  1. Create a product with Type metered, Code api_calls_product, Billable metric api_calls and Product category api_services.
  2. Create a rate card api_calls_usd for this product: USD, arrears, proration off.
  3. Add a standard rate calls_standard with an amount of 0.01 and a billing interval of 1 month.
  4. Apply the rate card to the plan api_monthly.
The fields match the API. Screen-by-screen Dashboard steps are not documented yet.
Once a contract uses the plan, send events with 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 a region 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 /products

Create a rate card

POST /rate_cards