Retrieve a customer's entitlements
/api/v1/customers/{id}/entitlementsReturns the features the customer can use now and when each stops: a trial until it ends, an active subscription until paid_through, a past due one until the grace days after that when your settings allow access during grace, and never after the cancelAt of a scheduled cancel. A canceled or expired subscription grants nothing. A feature granted by several subscriptions appears once, with the latest end. The answer has an ETag. Cache it in your app, send the ETag back in If-None-Match and you get 304 while nothing changed, and refresh it when a subscription webhook arrives.
Authorization
bearerAuth An access token from POST /api/v1/oauth/token, sent as Authorization: Bearer <token>.
In: header
Path Parameters
The customer's ID.
uuidHeader Parameters
The API version to use for this request, a date such as 2026-11-06. Without it the request uses your default version for the mode of your key. An unknown version answers 400 api_version_invalid.
Value in
- "2026-11-06"
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://api-malipo.flex.co.tz/api/v1/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/entitlements" \ -H "Authorization: Bearer <token>" \ -H "FlexMalipo-Version: 2026-11-06"{ "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac", "data": [ { "lookupKey": "pro", "validUntil": "2019-08-24T14:15:22Z", "limit": 15 } ]}