Billing meters
billing.metering.v1.MeterService/ListMeters (33-metering.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
page?integerPage number, from 1
limit?integerItems per page, 1 to 100, default 25
status?stringstatus
event_type?stringevent_type
A list of Meter objects with pagination
application/json- response
data?array<>object?stringpagination?Pagination is the page answered (api-route-review D9).
curl -X GET 'https://api.us.pontive.com/v1/billing/meters'{ "data": [ { "id": "string", "object": "string" } ], "object": "string", "pagination": { "limit": 0, "page": 0, "total": 0, "total_pages": 0 }}billing.metering.v1.MeterService/CreateMeter (33-metering.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
X-Idempotency-Key?stringIdempotency key
A Meter object
application/json- response
id?stringID is its prefixed id.
object?stringObject names the kind: customer, invoice, contract, …
curl -X POST 'https://api.us.pontive.com/v1/billing/meters'{ "id": "string", "object": "string"}billing.metering.v1.MeterService/PreviewMeter (33-metering.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
X-Idempotency-Key?stringIdempotency key
A MeterPreview object
application/json- response
id?stringID is its prefixed id.
object?stringObject names the kind: customer, invoice, contract, …
curl -X POST 'https://api.us.pontive.com/v1/billing/meters/preview'{ "id": "string", "object": "string"}billing.metering.v1.MeterService/GetMeter (33-metering.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
meter*stringThe meter's mtr_ id or its key (api-route-review D55)
A Meter object
application/json- response
id?stringID is its prefixed id.
object?stringObject names the kind: customer, invoice, contract, …
curl -X GET 'https://api.us.pontive.com/v1/billing/meters/string'{ "id": "string", "object": "string"}billing.metering.v1.MeterService/UpdateMeter (33-metering.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
meter*stringThe meter's mtr_ id or its key (api-route-review D55)
X-Idempotency-Key?stringIdempotency key
A Meter object
application/json- response
id?stringID is its prefixed id.
object?stringObject names the kind: customer, invoice, contract, …
curl -X PATCH 'https://api.us.pontive.com/v1/billing/meters/string'{ "id": "string", "object": "string"}billing.metering.v1.MeterService/ArchiveMeter (33-metering.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
meter*stringThe meter's mtr_ id or its key (api-route-review D55)
X-Idempotency-Key?stringIdempotency key
A Meter object
application/json- response
id?stringID is its prefixed id.
object?stringObject names the kind: customer, invoice, contract, …
curl -X POST 'https://api.us.pontive.com/v1/billing/meters/string/archive'{ "id": "string", "object": "string"}billing.metering.v1.MeterService/ReplaceMeterDefinition (33-metering.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
meter*stringThe meter's mtr_ id or its key (api-route-review D55)
X-Idempotency-Key?stringIdempotency key
A Meter object
application/json- response
id?stringID is its prefixed id.
object?stringObject names the kind: customer, invoice, contract, …
curl -X PUT 'https://api.us.pontive.com/v1/billing/meters/string/definition'{ "id": "string", "object": "string"}billing.metering.v1.MeterService/UnarchiveMeter (33-metering.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
meter*stringThe meter's mtr_ id or its key (api-route-review D55)
X-Idempotency-Key?stringIdempotency key
A Meter object
application/json- response
id?stringID is its prefixed id.
object?stringObject names the kind: customer, invoice, contract, …
curl -X POST 'https://api.us.pontive.com/v1/billing/meters/string/unarchive'{ "id": "string", "object": "string"}