API referenceAuthorization API
Billing for the end customer
POST
billing.entitlement.v1.MeEntitlementService/CheckMyEntitlement (39-entitlements-and-controls.md, API Surface). The body is { feature, quantity? }. Under pontive:billing:read (41-embedded-organization-management.md, section 5.1). An instance user's token must be issued for the instance's me audience, https://{auth domain}/me/, with pontive:billing:read (D31, D48). The RPC writes nothing and takes no idempotency key, so X-Idempotency-Key is not read.
BearerAuthheader
Authorization<token>Access token as "Bearer "
subject_type?stringuser or organization: the subject whose Customer to act for; with subject_id
subject_id?stringthe subject's id, usr_ or org_; with subject_type
An entitlement_check object: allowed, value, reason and limit
application/json- response
id?stringID is its prefixed id.
object?stringObject names the kind: customer, invoice, contract, …
curl -X POST 'https://authz.us.pontive.com/v1/me/entitlements/check'Example Response
{ "id": "string", "object": "string"}