CancelBonus() API

This API request enables the operator to cancel the awarded bonus free spins (promotional free spins).

CancelBonus() Request

TypeInput
HTTP MethodPOST
API URLhttps://<API_BASE_URL>/wallet/cancel-campaign/
Headers"Content-Type": "application/json"
POST Parametersjson object e.g.:
{
    "api_key": "15OY0Rx1BC0hYbCm",
    "promo_freespins_id": "202187654"
}
ParametersTypeDescription
api_keyStringAPI Key allocated to each front-end

promo_freespin_idStringThis 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 ObjectTypeDescription
resultJSON ObjectKey result contains the JSON object as value.
result.statusStringIndicates weather it success or not
result.campaign_idStringId belongs to respective campaign.
result.promo_freespin_idStringunique ID of campaign record at providers end