Menu
Platform
AI
App store purchases
Database
Flags
Jobs and cron
Localization
Monitoring
Notifications
Payments
Queues
Sandboxes
Webhooks
Getting Started
Authentication
KV Store
Deploy & Infrastructure
Reference
Entitlement grants
An Entitlement Grant is one feature a subject holds, from one source: a subscription, an order, a store purchase, or a manual grant.
An Entitlement Grant is one feature a subject holds, from one source: a subscription, an order, a store purchase, or a manual grant. Money derives it; a client event never writes one.
Service Sylphx Money · Resource type money.sylphx.com/EntitlementGrant · Name pattern orgs/{org}/projects/{project}/envs/{env}/entitlement_grants/{entitlement_grant} · Shape record
#Fields
| Field | Type | What it is |
|---|---|---|
name | string | orgs/{org}/projects/{project}/envs/{env}/entitlement_grants/{entitlement_grant}. |
uid | string | egr_<cell><ulid>; never reused. Output only. |
meta | ResourceMeta | Resource metadata. |
subject | Subject | Who holds it. Output only. |
feature | string | The feature key. Output only. |
limit | string | For a limit feature, the allowance as a decimal string. Output only. |
source | string | The resource that grants it, for example a customer subscription's name. Output only. |
expire_time | timestamp | When it ends; unset for no end. Output only. |
#Methods
Every method of the collection, in the registry's order, with the scope it needs. The full request, response and examples are one link away.
| Method | Call | What it does |
|---|---|---|
GET | get | Gets an entitlement grant. |
GET | list | Lists entitlement grants. |
POST | check | Answers whether a subject holds a feature now, and how much of it. |
#get
Gets an entitlement grant.
GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/entitlement_grants/entitlement-grant · scope billing:read · effect read · Request, response and examples
#list
Lists entitlement grants.
GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/entitlement_grants · scope billing:read · effect read · paginated · Request, response and examples
#check
Answers whether a subject holds a feature now, and how much of it.
POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/entitlement_grants:check · scope billing:read · effect read · Request, response and examples