Skip to main content
PATCH
Patch 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 you want to update

merchantEntitlementId
string<uuid>
required

Unique identifier used on activation

Example:

"6e37a4b5-8cb9-465b-88a9-ad5eb02596be"

bangoUserId
string
required

Unique user identifier, as identified by Bango

Example:

"1549053185"

productId
string
required

Entitlement product unique identifier. For example, "30_DAYS_MUSIC".

Example:

"30_DAYS_MUSIC"

resellerId
string
required

Unique reseller identifier

Example:

"XYZ_RESELLER"

sharedCustomerId
string<uuid>

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

Example:

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

entitlementBenefits
enum<string>

ENUM parameter to instruct the type of benefits action needed as part of the update request only if a change is required. This enum is used to suspend and resume entitlements using the update method.

Available options:
SUSPENDED,
NORMAL
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

offerId
string

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

Example:

"FREE_FOR_6_MONTHS"

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:

"ACTIVE"

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

Response

Entitlement updated successfully.

responseCode
string
Example:

"OK"

responseMessage
string
Example:

"Success"