Skip to Content
Docs
API referenceManagement API

Billing meters

GET /v1/billing/meters

GET
/billing/meters

billing.metering.v1.MeterService/ListMeters (33-metering.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Query Parameters

page?integer

Page number, from 1

limit?integer

Items per page, 1 to 100, default 25

status?string

status

event_type?string

event_type

Response Body

A list of Meter objects with pagination

application/json
  1. response
data?array<>
object?string
pagination?

Pagination is the page answered (api-route-review D9).

Example Request
curl -X GET 'https://api.us.pontive.com/v1/billing/meters'
Example Response
{  "data": [    {      "id": "string",      "object": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}

POST /v1/billing/meters

POST
/billing/meters

billing.metering.v1.MeterService/CreateMeter (33-metering.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A Meter object

application/json
  1. response
id?string

ID is its prefixed id.

object?string

Object names the kind: customer, invoice, contract, …

Example Request
curl -X POST 'https://api.us.pontive.com/v1/billing/meters'
Example Response
{  "id": "string",  "object": "string"}
POST
/billing/meters/preview

billing.metering.v1.MeterService/PreviewMeter (33-metering.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A MeterPreview object

application/json
  1. response
id?string

ID is its prefixed id.

object?string

Object names the kind: customer, invoice, contract, …

Example Request
curl -X POST 'https://api.us.pontive.com/v1/billing/meters/preview'
Example Response
{  "id": "string",  "object": "string"}
GET
/billing/meters/{meter}

billing.metering.v1.MeterService/GetMeter (33-metering.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

meter*string

The meter's mtr_ id or its key (api-route-review D55)

Response Body

A Meter object

application/json
  1. response
id?string

ID is its prefixed id.

object?string

Object names the kind: customer, invoice, contract, …

Example Request
curl -X GET 'https://api.us.pontive.com/v1/billing/meters/string'
Example Response
{  "id": "string",  "object": "string"}
PATCH
/billing/meters/{meter}

billing.metering.v1.MeterService/UpdateMeter (33-metering.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

meter*string

The meter's mtr_ id or its key (api-route-review D55)

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A Meter object

application/json
  1. response
id?string

ID is its prefixed id.

object?string

Object names the kind: customer, invoice, contract, …

Example Request
curl -X PATCH 'https://api.us.pontive.com/v1/billing/meters/string'
Example Response
{  "id": "string",  "object": "string"}
POST
/billing/meters/{meter}/archive

billing.metering.v1.MeterService/ArchiveMeter (33-metering.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

meter*string

The meter's mtr_ id or its key (api-route-review D55)

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A Meter object

application/json
  1. response
id?string

ID is its prefixed id.

object?string

Object names the kind: customer, invoice, contract, …

Example Request
curl -X POST 'https://api.us.pontive.com/v1/billing/meters/string/archive'
Example Response
{  "id": "string",  "object": "string"}
PUT
/billing/meters/{meter}/definition

billing.metering.v1.MeterService/ReplaceMeterDefinition (33-metering.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

meter*string

The meter's mtr_ id or its key (api-route-review D55)

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A Meter object

application/json
  1. response
id?string

ID is its prefixed id.

object?string

Object names the kind: customer, invoice, contract, …

Example Request
curl -X PUT 'https://api.us.pontive.com/v1/billing/meters/string/definition'
Example Response
{  "id": "string",  "object": "string"}
POST
/billing/meters/{meter}/unarchive

billing.metering.v1.MeterService/UnarchiveMeter (33-metering.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

meter*string

The meter's mtr_ id or its key (api-route-review D55)

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

A Meter object

application/json
  1. response
id?string

ID is its prefixed id.

object?string

Object names the kind: customer, invoice, contract, …

Example Request
curl -X POST 'https://api.us.pontive.com/v1/billing/meters/string/unarchive'
Example Response
{  "id": "string",  "object": "string"}