Billing usage
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).
BearerAuthAuthorization<token>Access token as "Bearer "
meter*stringA meter's mtr_ id or its key (api-route-review D55)
customer_id?stringcustomer_id
from?stringRFC 3339 time
to?stringRFC 3339 time
A UsageDiagnostics 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/usage/diagnostics?meter=string'{ "id": "string", "object": "string"}billing.metering.v1.UsageService/ListUsageEvents (33-metering.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
limit?integerItems per page, 1 to 100, default 25
after?stringCursor: a next_cursor, to continue forward
before?stringCursor: a next_cursor, to read the page just before it
customer_id?stringcustomer_id
event_type?stringevent_type
transaction_id?stringtransaction_id
from?stringRFC 3339 time
to?stringRFC 3339 time
status?stringstatus
late?booleanlate
A list of UsageEvent objects, walked by cursor (api-route-review D41)
application/json- response
data?array<>next_cursor?stringobject?stringcurl -X GET 'https://api.us.pontive.com/v1/billing/usage/events'{ "data": [ { "id": "string", "object": "string" } ], "next_cursor": "string", "object": "string"}billing.metering.v1.UsageService/GetLateUsage (33-metering.md, API Surface).
BearerAuthAuthorization<token>Access token as "Bearer "
customer_id?stringcustomer_id
meter?stringA meter's mtr_ id or its key (api-route-review D55)
contract_id?stringcontract_id
period_start?stringRFC 3339 time
from?stringRFC 3339 time
to?stringRFC 3339 time
A LateUsage 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/usage/late'{ "id": "string", "object": "string"}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.
BearerAuthAuthorization<token>Access token as "Bearer "
A UsageSeries 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/usage/search'{ "id": "string", "object": "string"}