API Portal

๐Ÿ™‹โ€โ™‚๏ธ Me Endpoint

The Me API returns detailed information about the currently authenticated cashier, their shop, financial balances, and granted permissions. Requires a valid Bearer token obtained from the Login endpoint.

โ„น๏ธ Description

This endpoint is primarily used to check the cashierโ€™s current balance, permissions, and shop statistics. Itโ€™s usually the first API call made after login.

  • shop.credits โ€” current available credits (main balance).
  • shop.current โ€” your cashierโ€™s in/out/total statistics.
  • shop.all_cashiers โ€” aggregated totals for all sub-cashiers under your shop.
Endpoint
GET https://proapi.gapi.lol/api/cashier/me
Authentication

This endpoint requires authentication using a valid Bearer token in the request header:

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

Returns the authenticated cashierโ€™s account, shop data, and permission details:

{
  "success": true,
  "id": 255,
  "username": "demo",
  "roles": 3,
  "enabled": 1,
  "alarm": 1,
  "user": {
    "limit_accounts": 0,
    "credit": -35316907,
    "c_in": 4939800,
    "c_out": 39256773,
    "credits": 63887,
    "currency": "EUR"
  },
  "permissions": {
    "allow_deleteuser": true,
    "allow_disableuser": true,
    "allow_edituserpass": false,
    "allow_in_out": 1,
    "allow_alarm_on": true,
    "userin_amount1": 1,
    "userin_amount2": 2,
    "userin_amount3": 3,
    "userin_amount4": 4,
    "userin_amount5": 50,
    "allow_useroutamounts": true,
    "allow_view_bonus": 1,
    "wager": 4,
    "voucher_url": "vegas-x.org"
  },
  "shop": {
    "credits": "638.87",
    "current": {
      "in": "49398.00",
      "out": "392567.73",
      "total": "-343169.73"
    },
    "all_cashiers": {
      "in": "49471.00",
      "out": "392576.73",
      "total": "-343105.73"
    }
  }
}
Example Request (cURL)
curl -X GET "https://proapi.gapi.lol/api/cashier/me" \
  -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"
}