API Portal

๐Ÿงพ User Info Endpoint

The User Info API retrieves the full financial and status information of a specific player. This includes real cash-out balance, total credits (including bonus), bonus restrictions, and system flags that affect the playerโ€™s ability to cash out or play.

โ„น๏ธ Description
  • actual_credits = Real money the player can cash out.
  • credits = Total playable credits (real + bonus together).
  • error = If true, the player has bonus/free spins or locked credits restricting cash-out.
Endpoint
GET https://proapi.gapi.lol/api/cashier/user/{id}

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

Authentication

This endpoint requires a valid Bearer token:

Authorization: Bearer <your_token>
Accept: application/json
Key Fields Explained
  • actual_credits: Real available balance. This amount can be withdrawn or cashed out.
  • credits: Playable balance inside games, including any bonus money.
  • allow_out: If true, cash-out is allowed. If false, cash-out is restricting.
  • check_free_spins: If true, the player has active free spins.
When error = true

If the API returns "error": true, the player has a restriction such as:

  • Active bonus balance
  • Active free spins
  • Locked credits inside a game
  • System restrictions preventing cash-out

Cashier message to the customer:

โ€œYou currently have bonus money, free spins, or locked credits in a game. Cash-out is restricted until these are completed or cleared.โ€
Successful Response
{
  "success": true,
  "user": {
    "id": 3224,
    "name": "22",
    "username": "00863426",
    "credits": "100.00",
    "actual_credits": "50.00",
    "allow_out": true,
    "panic_mode": 1,
    "online": 0,
    "game": null,
    "wager": false,
    "check_free_spins": false,
    "error": true,
    "trans": "player: 00863426 error: has credits from bonus"
  },
  "shop": { ... }
}
Example Request (cURL)
curl -X GET "https://proapi.gapi.lol/api/cashier/user/3224" \
  -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"
}