v1

latestOpenAPI 3.1.02026-07-241080412.6 KB

Get entitlements

You can use this endpoint to check entitlements to a specific offer. <br><br> If there are two or more subscriptions / passes for the same offerId and the same customerId, it will return one object with the latest expiresAt date.

get/entitlements/customer_id/{customerId}/offer_id/{offerId}

Path parameters

customerIdinteger required

Customer identifier at Cleeng.

offerIdstring required

Cleeng offer ID.

Response

200

accessGrantedboolean
grantTypestring
expiresAtinteger
messagestring
customerIdinteger

Example response

{
  "accessGranted": true,
  "grantType": "direct-purchase",
  "expiresAt": 1651915800,
  "message": "Success",
  "customerId": 123456789
}