Skip to main content
POST
Create Entitlement

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Headers

X-RequestIdentifier
string

Request unique identifier. This id should be used for idempotency.

Body

application/json

The entitlement JSON sent to merchant to create a subscription

requestId
string
required

Unique identifier representing a specific entitlement.

Example:

"a25100b8-4e0c-4e37-b921-cac9cb1e930f"

bangoUserId
string
required

Unique identifier representing a specific customer of the reseller as a Bango anonymised value.

Example:

"1549053185"

resellerId
string
required

Unique reseller identifier as agreed with the merchant

Example:

"XYZ_RESELLER"

productId
string
required

Entitlement product unique identifier. For example, "BangoMusic".

Example:

"BangoMusic"

sharedCustomerId
string<uuid>

Bango generated id shared between reseller and merchant for this customer (contact support for setup)

Example:

"414b3019-0c28-4d14-9c5f-6217b8bd1e3e"

offerId
string

The offer given to the user for the merchant service. For example, "FREE_FOR_6_MONTHS".

Example:

"FREE_FOR_6_MONTHS"

customerId
string

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

status
enum<string>

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.
Available options:
ACTIVE,
SUSPENDED,
PENDING,
ACTIVE-ENDING
Example:

"PENDING"

merchantExtensionData
object
Example:
extraInformation
object
financeData
object
merchantBangoExtensionData
object
Example:

Response

Entitlement created and activated successfully.

merchantEntitlementId
string
required

Unique identifier representing the entitlement as identified by the merchant. Value must be URL friendly.

Example:

"a25100b8-4e0c-4e37-b921-cac9cb1e930f"