Skip to main content
PATCH

Authorizations

Authorization
string
header
required

Basic authentication

Headers

X-RequestIdentifier
string

Request unique identifier. If present, this id will be used for idempotency.

Body

application/json

The entitlement JSON you want to update

entitlementId
string
required

Unique identifier representing a specific entitlement.

Example:

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

activationCode
string

Code or token use for the entitlement activation (optional).

Example:

null

customerIdentifier
string

User unique identifier.

Example:

"4407123456789"

productKey
string

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

Example:

"30_DAYS_MUSIC"

entitlementDisplayName
string

Entitlement display name. For example, "30 days Bango music" (optional).

Example:

"30 days of Bango music"

offerKey
string

Entitlement offer. For example, "BUNDLE" (optional).

Example:

"BUNDLE"

dateExpiry
string<date>

Entitlement expiry date in UTC ISO 8601 format. Null if no expiry (yyyy-MM-ddThh:mm:ssZ)

Example:

null

dateAutoSuspend
string<date>

Entitlement auto-suspension date in UTC ISO 8601 format. Null if no auto-suspension (yyyy-MM-ddThh:mm:ssZ)

Example:

null

notificationUrl
string<url>

The endpoint where all POST notifications will be sent after subscription creation. The body of the POST request will contain the entitlement information in EntitlementGetResponse format.

Example:

"https://www.example.com/notification/a25100b8-4e0c-4e37-b921-cac9cb1e930f"

externalEntitlementId
string

External identifier for the Entitlement from the Reseller.

Example:

"124130d2-2cbc-45a1-ab9b-dfa8b67a2e63"

entitlementBenefits
enum<string>

ENUM parameter for the Reseller to instruct the type of benefits action needed as part of the update request. This enum is used to suspend and resume entitlements using the update method.

• You must use SUSPENDED when you want to suspend the end-users access to the merchants product/service. The entitlement must be ACTIVE to successfully carry out this changed.

• You must use NORMAL when you want to resume the end-users access to the merchants product/service. The entitlement must be SUSPENDED to successfully carry out this changed.

Available options:
SUSPENDED,
NORMAL
extensionData
object
Example:
extraInformation
object

Response

Entitlement updated successfully.

entitlementId
string
required

Unique identifier representing a specific entitlement.

Example:

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

customerIdentifier
string
required

User unique identifier.

Example:

"4407123456789"

productKey
string
required

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

Example:

"BangoMusic"

offerKey
string
required

Entitlement offer. For example, "BUNDLE".

Example:

null

merchantAccountKey
string
required

Merchant unique identifier. For example, "BANGO".

Example:

"BANGO"

dateCreated
string<date-time>
required

Date and time when the entitlement was created, in UTC ISO 8601 format (yyyy-MM-ddThh:mm:ssZ)

dateActivated
string<date-time>
required

Date and time when the entitlement was activated, in UTC ISO 8601 format (yyyy-MM-ddThh:mm:ssZ)

dateEnded
string<date-time>
required

Date and time when the entitlement ended due to cancellation or revoke, in UTC ISO 8601 format (yyyy-MM-ddThh:mm:ssZ)

Example:

"0001-01-01T00:00:00Z"

dateExpiry
string<date-time>
required

Entitlement expiry date in UTC ISO 8601 format. Null if no expiry (yyyy-MM-ddThh:mm:ssZ)

Example:

"0001-01-01T00:00:00Z"

responseCode
string
required
Example:

"OK"

responseMessage
string
required
Example:

"Success"

status
enum<string>
required

Entitlement status. Possible values are:

  • "ACTIVE": The entitlement has been successfully activated
  • "CANCELLED": The entitlement has been cancelled.
  • "REVOKED": The entitlement has been revoked. This usually happens on fraud and user contract termination cases.
  • "SUSPENDED": The entitlement has been suspended.
  • "PENDING": The entitlement has been initiated, but the user has not yet finalized the activation process.
  • "FAILED": The entitlement failed
  • "ACTIVE-ENDING": The entitlement is ending at the end of the current period.
Available options:
ACTIVE,
CANCELLED,
REVOKED,
SUSPENDED,
PENDING,
FAILED,
ACTIVE-ENDING
Example:

"ACTIVE"

sharedCustomerId
string<uuid>

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

Example:

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

entitlementDisplayName
string

Entitlement display name. For example, "30 days Bango music".

Example:

"30 days Bango music"

activationCode
string

Code or token use for the entitlement activation.

Example:

null

dateAutoSuspend
string<date>

Entitlement auto-suspension date in UTC ISO 8601 format. Null if no auto-suspension (yyyy-MM-ddThh:mm:ssZ)

Example:

null

dateFailed
string<date-time>

Date and time when the entitlement failed, in UTC ISO 8601 format (yyyy-MM-ddThh:mm:ssZ)

Example:

"0001-01-01T00:00:00Z"

dateSuspended
string<date-time>

Date and time when the entitlement was suspended, in UTC ISO 8601. format (yyyy-MM-ddThh:mm:ssZ)

Example:

null

dateResumed
string<date-time>

Date and time when the entitlement was resumed, in UTC ISO 8601. format (yyyy-MM-ddThh:mm:ssZ)

Example:

null

externalEntitlementId
string

External identifier for the Entitlement from the Reseller.

Example:

"124130d2-2cbc-45a1-ab9b-dfa8b67a2e63"

extensionData
object

Accepts a dynamic list of key-value pairs to cover custom data needs

parameters
object
extraInformation
object
financeData
object