API Portal

๐Ÿงจ Bonus Cancel Endpoint

The Bonus Cancel API is used to remove all active bonuses, free rounds, and unfinished game data for a specific player. This action resets the playerโ€™s bonus-related progress and clears any associated game states (like Free Spins or Bonus Rounds).

โš ๏ธ Attention

When this action is used, all bonus games, free spins, and total wins will be permanently lost. Use this endpoint only when a player is stuck in a bonus or has corrupted data.

โ„น๏ธ Description
  • Resets all Game Setting, Freerounds and Free Spins data for the player.
  • Useful when a player is stuck in a bonus round or has corrupted bonus data.
  • This operation should be used only by authorized cashiers.
Endpoint
POST https://proapi.gapi.lol/api/cashier/bonus/cancel/{id}

Replace {id} with the playerโ€™s unique ID.

Authentication

This endpoint requires a valid cashier Bearer token:

Authorization: Bearer <your_token>
Accept: application/json
Successful Response

Returns confirmation that the bonus data was deleted successfully:

{
  "success": true,
  "message": "OK"
}
Example Request (cURL)
curl -X POST "https://proapi.gapi.lol/api/cashier/bonus/cancel/3154" \
  -H "Authorization: Bearer <your_token>" \
  -H "Accept: application/json"
Error Responses

401 Unauthorized โ€” Wrong username or password:

{
  "success": false,
  "message": "Please login via API token"
}

403 Forbidden โ€” Account suspended or disabled:

{
  "success": false,
  "message": "Account suspended"
}

429 Too Many Requests โ€” Rate limit exceeded:

{
  "success": false,
  "message": "Too many attempts. Try again later."
}

500 Internal Server Error โ€” Server-side issue:

{
  "success": false,
  "message": "Unexpected server error"
}