Skip to main content
In the Bango Platform, entitlements describe a user’s ability to access a service provided by a merchant. You can retrieve a single entitlement record if you have its ID. Alternatively you can retrieve some or all of a user’s entitlements at once by making a POST request to the Bango Resale API, specifying filter criteria. The API response is a structure that contains:
  • A response code, indicating the result of the request. Use this code to determine what to do next.
  • For HTTP 200 responses, an array of matching entitlement records, including any custom data you’ve supplied.

Sequence diagrams

The Bango Platform successfully returns all entitlement details.
Image
The Bango Platform fails to return entitlement details.
Image

Skeleton code

Here’s some sample code in a C/Java-like language: adapt this code to your needs. Use the same API endpoint prefix with test credentials and with production credentials.

FAQ

You must specify the customerIdentifier parameter, identifying the user whose entitlements you want to retrieve. You can’t request entitlements for more than one user at once.The other parameters are optional. When specifying more than one parameter, the Bango Platform returns entitlements that match all parameters (the filters AND together: more filters means fewer matches).
All responses contain a responseCode string that indicates the result of the request. Use responseCode to determine how to react.On success, responseCode is OK and an entitlements property contains an array of entitlement records. Here’s an example response:
See Bango Resale / For resellers / Reseller API reference / Reseller API reference overview for detailed information on all responses.