๐ฅ Users Endpoint
The Users API returns a list of all player accounts associated with the
authenticated cashierโs shop. You must provide a valid Bearer token obtained
from the Login endpoint.
๐ Note: This endpoint requires a valid Bearer token.
If your token is expired or revoked, you will receive a
401 Unauthorized error.
โน๏ธ Description
- Retrieves all players (users) linked to the logged-in cashierโs shop.
- Includes each playerโs balance, activity state, and last known IP address.
- Useful for listing available players before performing
CreditsorBonusactions.
Endpoint
GET https://proapi.gapi.lol/api/cashier/users
Authentication
This endpoint requires authentication using a valid Bearer token in the request header:
Authorization: Bearer <your_token>
Accept: application/json
Successful Response
Returns a JSON object containing the list of users, total count, and timing information:
{
"success": true,
"count": 70,
"timing": {
"fetch_ms": 2.32,
"process_ms": 2.98,
"total_ms": 8.7
},
"users": [
{
"id": 3154,
"name": "demo",
"username": "demoaccount",
"score": 0,
"userhash": "227cc94f02e6d640045b6c7c79c21577",
"ip": "0",
"online": 0,
"alarm": 1,
"active": false,
"bonus2": 0,
"extradata": "{\"pass\":\"sadasddsa\"}",
"score_euro": "0.00",
"current_game": null,
"current_game_name": null
}
]
}
Example Request (cURL)
curl -X GET "https://proapi.gapi.lol/api/cashier/users" \
-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"
}