This API request enables the operator to cancel the awarded bonus free spins (promotional free spins).
CancelBonus() Request
| Type | Input |
|---|---|
| HTTP Method | POST |
| API URL | https://<API_BASE_URL>/wallet/cancel-campaign/ |
| Headers | "Content-Type": "application/json" |
| POST Parameters | json object e.g.:{ |
| Parameters | Type | Description |
|---|---|---|
api_key | String | API Key allocated to each front-end |
| | | |
promo_freespin_id | String | This ID will be sent in GrantBonus() API response, same promo_freespin_id should be sent here. |
CancelBonus() Response & Example
{
"result": {
"status": "success",
"campaign_id": "test_of1",
"promo_freespin_id": "iuytrewqasdfghjk"
}
}
| Object/Key in Response Object | Type | Description |
|---|---|---|
result | JSON Object | Key result contains the JSON object as value. |
result.status | String | Indicates weather it success or not |
result.campaign_id | String | Id belongs to respective campaign. |
result.promo_freespin_id | String | unique ID of campaign record at providers end |