PATCH request to the Bango Resale API with entitlementBenefits set to SUSPENDED. (To restore access later, resume the entitlement.)
As part of the API request, you supply:
- The entitlement ID
- The entitlement benefits enum
- Optionally, custom data
- A response code, indicating the result of the request. Use this code to determine what to do next.
- For HTTP 200 responses, the entitlement record. The record includes any additional custom data as part of the entitlement’s
extensionDataproperty. The record status isSUSPENDED, and thedateSuspendedproperty marks the date and time of the suspension request. - For HTTP 202 responses, the entitlement record. The record includes any additional custom data as part of the entitlement’s
extensionDataproperty. The record status isACTIVE. HTTP 202 responses indicates that the merchant has accepted your request and has queued it for processing within their system. You should expect to receive a notification from Bango when the merchant has completed the processing of the queued request.
Sequence diagrams
Successful service suspension
Successful service suspension
The Bango Platform suspends the service for the user.

Failed request for service suspension
Failed request for service suspension
The Bango Platform can’t suspend the service for the user, and returns the reason in the response to the API request.

Skeleton code
Here’s some sample code in a C/Java-like language: adapt this code to your needs. Use the same API endpoint prefix with test credentials and with production credentials. Some functions referenced in the skeleton code are not defined. You need to implement these where possible.FAQ
Which request parameters should I set?
Which request parameters should I set?
You must set the
entitlementId. Include any other parameters you want to update: any parameter not included in the request is not changed.In the request body, you should set the entitlementBenefits parameter. You can also include any other parameters, with any names and values you like.See Bango Resale / For resellers / Reseller API reference / Reseller API reference overview for detailed information on all request parameters.What are all the possible API response structures?
What are all the possible API response structures?
All responses contain a On accepted, See Bango Resale / For resellers / Reseller API reference / Reseller API reference overview for detailed information on all responses.
responseCode string that indicates the result of the request. Use this code to determine how to react.On success, responseCode is OK and other properties describe the entitlement. In particular, the status property is SUSPENDED and the dateSuspended property contains a timestamp marking the time of the suspension request. Here’s an example response:responseCode is ACCEPTED and other properties describe the entitlement. In particular, the status property is ACTIVE. Here’s an example response:
