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": "string", "rate_plan_id": "string", "version": 0, "metric_id": "string", "currency": "string", "pricing_model": "flat_per_unit", "included_allowance": 0, "overage_price": 0, "tiers": [ { "up_to": 0, "unit_price": 0, "flat_fee": 0 } ], "effective_from": "2019-08-24T14:15:22Z", "effective_to": "2019-08-24T14:15:22Z", "billing_region": "us", "test": true } ]}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`.