Skip to main content
POST
Check user eligibility

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 check eligibility JSON sent to merchant to check is user is eligible for a subscription

bangoUserId
string
required

Unique identifier which Bango holds that representing a specific customer of the reseller.

Example:

"1549053185"

customerId
string
required

Unique identifier representing a specific customer of the reseller.

Example:

"abc@email.co.uk"

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"

offerId
string

Entitlement offer unique identifier. For example, "6_MONTHS_ON_US".

Example:

"6_MONTHS_ON_US"

merchantExtensionData
object
Example:
merchantBangoExtensionData
object
Example:

Response

Valid User eligibility response

eligible
boolean

Eligibility status. Possible values are:

  • true: The user is eligible for the Entitlement
  • false: The user is not eligible for the Entitlement
Example:

true

reason
string

Reason for the eligibility response. This is not a mandatory value to be sent by the merchant. Examples:

  • "User has an existing subscription"
Example:

"User is eligible for this Entitlement"