API Portal

๐Ÿ‘ฅ 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 Credits or Bonus actions.
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"
}