Create Entitlement
Request that is sent to the merchant to create a new Entitlement and return Activation URL and related parameters to be sent to the user. Expected responses as defined below.
Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Headers
Request unique identifier. This id should be used for idempotency.
Body
The entitlement JSON sent to merchant to create a subscription
Unique identifier representing a specific entitlement.
"a25100b8-4e0c-4e37-b921-cac9cb1e930f"
Unique identifier representing a specific customer of the reseller as a Bango anonymised value.
"1549053185"
Unique reseller identifier as agreed with the merchant
"XYZ_RESELLER"
Entitlement product unique identifier. For example, "BangoMusic".
"BangoMusic"
Bango generated id shared between reseller and merchant for this customer (contact support for setup)
"414b3019-0c28-4d14-9c5f-6217b8bd1e3e"
The offer given to the user for the merchant service. For example, "FREE_FOR_6_MONTHS".
"FREE_FOR_6_MONTHS"
Unique identifier representing a specific customer of the reseller not anonymised. This value will only be sent by Bango if the Merchant and Reseller both approve the sharing of this data
Entitlement status. Possible values are:
- "ACTIVE": The entitlement has been successfully activated
- "SUSPENDED": The entitlement has been suspended.
- "PENDING": The entitlement has been initiated, but the user has not yet finalized the activation process.
- "ACTIVE-ENDING": The entitlement is ending at the end of the current period.
ACTIVE, SUSPENDED, PENDING, ACTIVE-ENDING "PENDING"
Response
Entitlement created and activated successfully.
Unique identifier representing the entitlement as identified by the merchant. Value must be URL friendly.
"a25100b8-4e0c-4e37-b921-cac9cb1e930f"

