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}

Request

  • Base URL
    https://api.sandbox.cleeng.com/3.1
  • URL
    https://api.sandbox.cleeng.com/3.1/entitlements/customer_id/{customerId}/offer_id/{offerId}
  • Auth
    API key in header X-Publisher-Token

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
}

Changes

No recorded changes to this operation across all 1 revision of this API.