Skip to Content
Docs
Entitlements

List what a customer can use

GET/entitlements

One list whichever engine, seller or store each entitlement came from. You define features and map them to products in the Commerce tab.

Headers

AuthorizationstringRequired
HTTP Basic auth: your API key as the password, with an empty username. See Authentication.

Query parameters

customer_reference_idstringRequired

Your ID for the customer.

typestring

One of access, feature, seats, balance or store_purchase.

keystring
limitinteger

Objects per page. Defaults to 10.

Default: 10

starting_afterstring

A cursor. Returns objects created after the object with this ID. Mutually exclusive with ending_before.

Returns

A page of entitlements.

resourcestring
dataarray of objects
Show 11 child attributesHide child attributes
idstring
resourcestring
typestring

One of access, feature, seats, balance or store_purchase.

keystring

The feature's key from the Commerce tab, or the store's product ID for a store purchase.

statusstring

One of pending, granted, grace or revoked.

quantityinteger or null

For seats.

balanceinteger or null

For balance, what's left of the allowance.

expires_atstring or null
customer_reference_idstring
sourceobject
Show 5 child attributesHide child attributes
typestring

One of subscription, order or store.

subscriptionstring or null
orderstring or null
storestring or null

One of app_store or google_play.

enginestring or null
test_modeboolean
has_moreboolean

Errors

400
The request is invalid.
401
The API key is missing or wrong.
403
The key's permissions don't allow this route.
Was this page helpful?