Skip to Content
Docs
API referenceAuthorization API

Billing for the end customer

POST
/v1/me/entitlements/check

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.

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Query Parameters

subject_type?string

user or organization: the subject whose Customer to act for; with subject_id

subject_id?string

the subject's id, usr_ or org_; with subject_type

Response Body

An entitlement_check object: allowed, value, reason and limit

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://authz.us.pontive.com/v1/me/entitlements/check'
Example Response
{  "id": "string",  "object": "string"}