Skip to main content
In the Bango Platform, entitlements describe a user’s ability to access a service provided by a merchant. To find out the current details of an entitlement, you make a GET request to the Bango Resale API, specifying the entitlement ID. (You can also retrieve some or all of a user’s entitlements with a single request.) 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, the entitlement record, including any custom data you’ve supplied.

Sequence diagrams

The Bango Platform successfully returns the 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

The only parameter is the entitlement ID, passed in the path of the request URL.
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 other properties describe the entitlement. Here’s an example response:
See Bango Resale / For resellers / Reseller API reference / Reseller API reference overview for detailed information on all responses.