API referenceUsage ingest API
Billing usage
POST
billing.metering.v1.UsageService/IngestUsageEvents (33-metering.md, API Surface; Ingestion; Event types and schemas). The body is a JSON array of 1 to 500 events. Only non-accepted results are listed, and accepted events with schema warnings: each result carries warnings (an accepted event under the event type's validation warn) and violations (one rejected with schema_mismatch under reject), each { code, property, expected }.
BearerAuthheader
Authorization<token>Access token as "Bearer "
X-Idempotency-Key?stringIdempotency key
A IngestResult object
application/json- response
id?stringID is its prefixed id.
object?stringObject names the kind: customer, invoice, contract, …
curl -X POST 'https://ingest.us.pontive.com/v1/usage/events'Example Response
{ "id": "string", "object": "string"}POST
billing.metering.v1.UsageService/VoidUsageEvents (33-metering.md, API Surface).
BearerAuthheader
Authorization<token>Access token as "Bearer "
X-Idempotency-Key?stringIdempotency key
The VoidUsageEventsResponse fields
application/json- response
curl -X POST 'https://ingest.us.pontive.com/v1/usage/events/void'Example Response
{}