Revoke an entitlement
Revoke an entitlement
Authorizations
Headers
Optional identifier to support idempotency
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.
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.
Path Parameters
Unique identifier used on activation.
Body
Reason category, code and description are added to the extensionData after a successful request to terminate the entitlement
High level category for the type of termination.
CUSTOMER_CANCELLED, REVOKED Code representing the entitlement cancel or revoke reason. More information can be found here "https://developer.bango.info/categories-and-codes/"
NOT_RENEWED, CHANGED_SERVICE, SUBSCRIPTION_CANCELLED, ADDON_CANCELLED, EXPIRED, ACCOUNT_TERMINATED, SUSPEND_TERMINATED, ERROR, FRAUD, IMMEDIATE_CANCELLATION, OTHER Additional information for termination reason
Response
Entitlement revoke successfully
Unique identifier representing a specific entitlement
Unique, immutable user identifier
"123456789"
Bango generated id shared between reseller and merchant for this customer (contact support for setup)
"db2001b5-fde5-4654-9ecd-b3b04ba8f025"
Unique identifier for the content provider
"BANGO_US"
Unique identifier for the product/offer
"MUSIC"
The endpoint where Bango will send all notifications regarding this entitlement
"https://notifications.bango.com"
Entitlement offer identifier
"BUNDLE"
Unique identifier for the entitlement provided by the reseller. If the previous attempt to create an entitlement failed, this value can be reused.
"124130d2-2cbc-45a1-ab9b-dfa8b67a2e63"
Entitlement display name used in reports.
"30 day free trial for Bango Music"
Timestamp for the creation of the entitlement
"2024-06-22T17:35:38.920Z"
Timestamp provided by the content provider when the entitlement is activated
"2024-06-23T17:35:38.920Z"
Timestamp for when the entitlement terminated
"1901-01-01T00:00:00.000Z"
Timestamp for when the entitlement was suspended
null
Timestamp for when the entitlement was last resumed
null
If set, Bango will schedule a termination request to the content provider on this date. Date format must be ISO 8601
"2024-12-05T07:46:52.000Z"
If set, Bango will schedule a suspension request to the content provider on this date. Date format must be ISO 8601
"2024-09-05T07:46:52.000Z"
"OK"
"Success"
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.
PENDING, ACTIVE, SUSPENDED, ACTIVE-ENDING, CANCELLED, REVOKED "ACTIVE"
Code or token used for the entitlement activation
null
Custom key value pairs

