List rate plans
GET
Every saved version of every rate plan, newest effective_from first, up to 500. There is no paging. Secret and trusted tokens may call it; a limited token may not (403).
header
AuthorizationBearer <token>A secret, trusted or limited token. See Authentication.
metric_id?stringOnly the plans that price this metric.
The rate plans.
application/json- response
data?array<>curl -X GET 'https://api.comecero.com/api/v1/usage/rate_plans'Example Response
{ "data": [ { "object": "rate_plan", "rate_plan_id": "ai_tokens_standard", "version": 1, "metric_id": "met_ai_tokens", "currency": "USD", "pricing_model": "flat_per_unit", "included_allowance": 100000, "overage_price": 0.00002, "tiers": [], "billing_region": "us", "test": false } ]}Overview
Previous Page
Create a rate plan version POST
Prices a metric. A saved version never changes: to change a price, save a new `version` with the same `rate_plan_id`. Tiers and package sizes price only the units above the included allowance. Secret and trusted tokens may call it; a limited token may not (`403`). The plan is not checked against an agreement's currency here: use a plan in the agreement's currency, or its billing run fails with `currency_mismatch`.