Billing event types
billing.metering.v1.EventTypeService/ListEventTypes (33-metering.md, API Surface, Event types; Event types and schemas; billing-svc docs/questions.md, P99). Served under /billing, since /v1/event-types is webhook-svc's (11-webhooks.md), as /v1/billing/events is (P32). The instance's event types, newest first.
BearerAuthAuthorization<token>Access token as "Bearer "
page?integerPage number, from 1
limit?integerItems per page, 1 to 100, default 25
status?stringactive or archived
origin?stringclient or detected
A list of event_type 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/event-types'{ "data": [ { "id": "string", "object": "string" } ], "object": "string", "pagination": { "limit": 0, "page": 0, "total": 0, "total_pages": 0 }}billing.metering.v1.EventTypeService/CreateEventType (33-metering.md, API Surface, Event types; Event types and schemas; billing-svc docs/questions.md, P99). Served under /billing, since /v1/event-types is webhook-svc's (11-webhooks.md), as /v1/billing/events is (P32). Defines an event type before any event of its key is sent: origin client, validation warn unless given (none, warn or reject), auto_enrich true unless given. Each property is { key, type, required, description }, type string, number or boolean, up to 100. A key already used, detected or defined, is event_type_key_conflict; at the instance's limit of active event types, event_type_limit_reached.
BearerAuthAuthorization<token>Access token as "Bearer "
X-Idempotency-Key?stringIdempotency key
An event_type 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/event-types'{ "id": "string", "object": "string"}billing.metering.v1.EventTypeService/InferEventType (33-metering.md, API Surface, Event types; Event types and schemas; billing-svc docs/questions.md, P99). Served under /billing, since /v1/event-types is webhook-svc's (11-webhooks.md), as /v1/billing/events is (P32). Takes { event }, one sample event as it would be sent, and answers a draft: the key, and one property per property of the sample with its value's type, each required false. Nothing is saved, so the draft has an empty id, null timestamps, and X-Idempotency-Key is not read; the client edits the draft and creates it.
BearerAuthAuthorization<token>Access token as "Bearer "
A draft event_type 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/event-types/infer'{ "id": "string", "object": "string"}billing.metering.v1.EventTypeService/GetEventType (33-metering.md, API Surface, Event types; Event types and schemas; billing-svc docs/questions.md, P99). Served under /billing, since /v1/event-types is webhook-svc's (11-webhooks.md), as /v1/billing/events is (P32). An event type by its etyp_ id or its key. Each property carries its source, types_seen, first_seen_at and last_seen_at, read-only. An unknown one is event_type_not_found.
BearerAuthAuthorization<token>Access token as "Bearer "
event_type*stringThe event type's etyp_ id or its key (api-route-review D55)
An event_type 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/event-types/string'{ "id": "string", "object": "string"}billing.metering.v1.EventTypeService/UpdateEventType (33-metering.md, API Surface, Event types; Event types and schemas; billing-svc docs/questions.md, P99). Served under /billing, since /v1/event-types is webhook-svc's (11-webhooks.md), as /v1/billing/events is (P32). A field left out keeps its value; the key does not change. properties replaces the whole list: a property left out is removed, one set or changed becomes source client, and [] removes them all. properties, auto_enrich and validation may not be null. Removing a property a meter names, or changing its type away from number where a meter needs one, is event_type_property_in_use.
BearerAuthAuthorization<token>Access token as "Bearer "
event_type*stringThe event type's etyp_ id or its key (api-route-review D55)
X-Idempotency-Key?stringIdempotency key
An event_type 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/event-types/string'{ "id": "string", "object": "string"}billing.metering.v1.EventTypeService/ArchiveEventType (33-metering.md, API Surface, Event types; Event types and schemas; billing-svc docs/questions.md, P99). Served under /billing, since /v1/event-types is webhook-svc's (11-webhooks.md), as /v1/billing/events is (P32). Refused with event_type_in_use while a meter's current or future version names it. Events of an archived type are accepted with no check and no enrichment.
BearerAuthAuthorization<token>Access token as "Bearer "
event_type*stringThe event type's etyp_ id or its key (api-route-review D55)
X-Idempotency-Key?stringIdempotency key
An event_type 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/event-types/string/archive'{ "id": "string", "object": "string"}billing.metering.v1.EventTypeService/UnarchiveEventType (33-metering.md, API Surface, Event types; Event types and schemas; billing-svc docs/questions.md, P99). Served under /billing, since /v1/event-types is webhook-svc's (11-webhooks.md), as /v1/billing/events is (P32). At the instance's limit of active event types, refused with event_type_limit_reached.
BearerAuthAuthorization<token>Access token as "Bearer "
event_type*stringThe event type's etyp_ id or its key (api-route-review D55)
X-Idempotency-Key?stringIdempotency key
An event_type 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/event-types/string/unarchive'{ "id": "string", "object": "string"}