Skip to Content
Docs
API referenceManagement API

Billing usage

GET
/billing/usage/diagnostics

billing.metering.v1.UsageService/GetUsageDiagnostics (33-metering.md, API Surface, Usage). Counts per meter: missing_property, non_numeric, missing_group_keys, late_duplicates, and not_entitled, the events the meter counts from Customers with no feature and no product on it at the event's time, accepted and billed as any other (billing-svc docs/questions.md, P109).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Query Parameters

meter*string

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

customer_id?string

customer_id

from?string

RFC 3339 time

to?string

RFC 3339 time

Response Body

A UsageDiagnostics 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/usage/diagnostics?meter=string'
Example Response
{  "id": "string",  "object": "string"}
GET
/billing/usage/events

billing.metering.v1.UsageService/ListUsageEvents (33-metering.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Query Parameters

limit?integer

Items per page, 1 to 100, default 25

after?string

Cursor: a next_cursor, to continue forward

before?string

Cursor: a next_cursor, to read the page just before it

customer_id?string

customer_id

event_type?string

event_type

transaction_id?string

transaction_id

from?string

RFC 3339 time

to?string

RFC 3339 time

status?string

status

late?boolean

late

Response Body

A list of UsageEvent objects, walked by cursor (api-route-review D41)

application/json
  1. response
data?array<>
next_cursor?string
object?string
Example Request
curl -X GET 'https://api.us.pontive.com/v1/billing/usage/events'
Example Response
{  "data": [    {      "id": "string",      "object": "string"    }  ],  "next_cursor": "string",  "object": "string"}
GET
/billing/usage/late

billing.metering.v1.UsageService/GetLateUsage (33-metering.md, API Surface).

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Query Parameters

customer_id?string

customer_id

meter?string

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

contract_id?string

contract_id

period_start?string

RFC 3339 time

from?string

RFC 3339 time

to?string

RFC 3339 time

Response Body

A LateUsage 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/usage/late'
Example Response
{  "id": "string",  "object": "string"}
POST
/billing/usage/search

billing.metering.v1.UsageService/GetUsage (33-metering.md, API Surface). The RPC writes nothing and takes no idempotency key, so X-Idempotency-Key is not read.

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Response Body

A UsageSeries 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/usage/search'
Example Response
{  "id": "string",  "object": "string"}