Skip to main content
PATCH

Authorizations

x-api-key
string
header
required

Headers

X-RequestIdentifier
string<uuid> | null

Optional identifier to support idempotency

X-Request-Id
string | null

Unique request id generated by the reseller. Useful for e2e trouble-shooting. While listed as an optional header, some content providers consider this to be mandatory.

X-Operation-Id
string | null

Reseller-generated unique id per operation. Used by some content providers to identify an idempotent retry. While listed as an optional header, some content providers consider this to be mandatory.

Body

application/json

Entitlement update request.

entitlementId
string
required

Unique identifier representing a specific entitlement

customerIdentifier
string

User unique identifier

Maximum string length: 400
productKey
string

Entitlement product unique identifier

Maximum string length: 255
entitlementDisplayName
string

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

offerKey
string

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

dateExpiry
string<date-time>

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

dateAutoSuspend
string<date-time>

Entitlement auto-suspension date in UTC ISO 8601 format. Null if no auto-suspension

notificationUrl
string

The (POST) endpoint where all entitlement lifecycle notifications will be sent

externalEntitlementId
string

Unique identifier for the entitlement provided by the Reseller. If the previous attempt to create an entitlement failed, the externalEntitlementId can be reused in a new create request.

Maximum string length: 255
extensionData
Extensiondata · object

Custom key value pairs

extraInformation
Extrainformation · object

Entitlement extra information.

Response

Entitlement updated successfully.

Entitlement.

entitlementId
string<uuid>
required

Unique identifier representing a specific entitlement.

customerIdentifier
string
required

Unique, immutable user identifier

bangoUserId
string
required

Bango-generated customer identifier.

merchantAccountKey
string
required

Unique identifier for the content provider

productKey
string
required

Unique identifier for the product/offer

entitlementDisplayName
string | null
required

Entitlement display name used in reports.

dateCreated
string<date-time>
required

Timestamp for the creation of the entitlement

responseCode
string
required

Result of entitlement operation. OK on success.

Example:

"OK"

responseMessage
string
required

Response message of entitlement operation. Success if completed successfully.

Example:

"Success"

status
enum<string>
required

The entitlement status. Possible values are:

  • PENDING: The entitlement has been initiated, but the user has not yet completed the activation process.
  • ACTIVE: The entitlement has been successfully activated
  • SUSPENDED: The entitlement has been suspended.
  • ACTIVE-ENDING: The entitlement is ending at the end of the current period.
  • CANCELLED: The entitlement has been cancelled.
  • REVOKED: The entitlement has been revoked.
  • FAILED: The entitlement could not be created.
Available options:
PENDING,
ACTIVE,
SUSPENDED,
ACTIVE-ENDING,
CANCELLED,
REVOKED,
FAILED
sharedCustomerId
string<uuid> | null

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

notificationUrl
string | null

The endpoint where Bango will send all notifications regarding this entitlement

offerKey
string | null

Entitlement offer identifier

externalEntitlementId
string | null

Unique identifier for the entitlement provided by the reseller. If the previous attempt to create an entitlement failed, this value can be reused.

dateActivated
string<date-time>
default:0001-01-01T00:00:00Z

Timestamp provided by the content provider when the entitlement is activated

dateEnded
string<date-time>
default:0001-01-01T00:00:00Z

Timestamp for when the entitlement terminated

dateSuspended
string<date-time> | null

Timestamp for when the entitlement was suspended

dateResumed
string<date-time> | null

Timestamp for when the entitlement was last resumed

dateExpiry
string<date-time>
default:0001-01-01T00:00:00Z

If set, Bango will schedule a termination request to the content provider on this date. Date format must be ISO 8601

dateFailed
string<date-time>
default:0001-01-01T00:00:00Z

Date when the creation of the entitlement failed

dateAutoSuspend
string<date-time> | null

If set, Bango will schedule a suspension request to the content provider on this date. Date format must be ISO 8601

activationCode
string | null

Code or token used for the entitlement activation

extensionData
Extensiondata · object

Custom key value pairs

extraInformation
Extrainformation · object

Entitlement extra information.

financeData
Financedata · object

Finance Data.