Skip to main content
POST

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 create request.

customerIdentifier
string
required

Unique, immutable user identifier

Maximum string length: 400
merchantAccountKey
string
required

Unique identifier for the content provider. Must be uppercase and must not contain spaces.

Maximum string length: 100
productKey
string
required

Unique identifier for the product/offer

Maximum string length: 255
notificationUrl
string

The endpoint where Bango will send all notifications regarding this entitlement. If provided, it must be a valid URL.

Maximum string length: 2000
offerKey
string

Entitlement offer identifier

externalEntitlementId
string

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

Maximum string length: 255
entitlementDisplayName
string

Entitlement display name, seen in reports.

dateExpiry
string<date-time>

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

dateAutoSuspend
string<date-time>

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

extensionData
Extensiondata · object

Custom key value pairs

extraInformation
Extrainformation · object

Entitlement extra information.

Response

Entitlement created and activated successfully

Entitlement returned by the create operation.

The create response returns activation parameters in PascalCase (Action / Url / urlExpiry). Present only while the entitlement is pending activation.

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.

parameters
Parameters · object

Information needed for entitlement activation. Present only if status is PENDING.