Reactivate an entitlement
POST https://resale.api.bango.net/v1/entitlement/reactivate/ Path parameters entitlementId string The ID of the entitlement you want to reactivate. You can only reactivate entitlements you created. Header parameters Authorization string Your Bango Resale API credentials encoded for HTTP Basic Authentication. See Bango Platform / Connectivity and security / Basic authentication. X-RequestIdentifier string A unique identifier for the request. If present, this ID is used for Bango Platform idempotency. Query parametersNone Body parametersNone Sample requests Reactivate an entitlementOK, CLIENT_ACTION_REQUIRED, BAD_REQUEST, UNAUTHORIZED, NOT_AVAILABLE, NOT_FOUND, ALREADY_EXISTS, TOO_MANY_REQUESTS, INTERNAL_ERROR, SERVICE_UNAVAILABLE. See sample responses for more information.
responseMessage string
A short human-readable message describing responseCode. Not for use by code.
parameters object2xx
For HTTP status 202, contains the property action describing what your code must do, and other parameters that depend on the action. See sample responses.
entitlementId string2xx
The unique, persistent ID of the entitlement.
status string2xx
The current status of the entitlement: in this case, ACTIVE or PENDING. See sample responses.
dateCreated ISO 8601 string2xx
ISO 8601 timestamp for the entitlement creation time.
dateActivated ISO 8601 string or null2xx
ISO 8601 timestamp for the entitlement’s last activation time. null if the entitlement has never been active.
dateEnded ISO 8601 string or null2xx
ISO 8601 timestamp for when the entitlement was last canceled or revoked. null if never.
dateSuspended ISO 8601 string or null2xx
ISO 8601 timestamp of the last request to suspend the entitlement. null otherwise.
dateResumed ISO 8601 string or null2xx
ISO 8601 timestamp of the last request to resume the entitlement. null otherwise.
dateLastUpdated ISO 8601 string2xx
ISO 8601 timestamp for the last time the entitlement was modified.
customerIdentifier string2xx
Your unique user identifier for the customer accessing the service.
merchantAccountKey string2xx
The identifier for the merchant supplying the service.
productKey string2xx
The identifier for the merchant service.
offerKey string2xx
Any offer identifier recorded for the entitlement.
activationCode string2xx
The merchant’s activation code, if applicable.
entitlementDisplayName string2xx
The user-visible string describing the entitlement.
dateExpiry ISO 8601 string or null2xx
ISO 8601 timestamp of the moment the user’s entitlement to the service ends.
extensionData string2xx
The collection of arbitrary string keys and values you’ve associated with the entitlement.
Sample responses
200OK – Entitlement reactivated successfully
extensionData object.
202CLIENT_ACTION_REQUIRED: NAVIGATE_TO_URL – Entitlement reactivated successfully, now pending activation
CLIENT_ACTION_REQUIRED with parameters.action value NAVIGATE_TO_URL, and set the entitlement status to PENDING. Your code should ensure the user visits parameters.url, perhaps by programmatically opening that URL on their device.
Entitlements with status PENDING may change status to REVOKED if the user does not complete the merchant process quickly enough. When the user completes the process, the status may change to ACTIVE. The Bango Platform POSTs these status changes to the entitlement’s notificationUrl.
400BAD_REQUEST – Invalid API request

