🎮 User Game History (Redis) Endpoint
The User Redis History API retrieves a player’s detailed game history,
including both slot spins and fish-game sessions.
It merges data from Redis and Fish Game server sources and returns the results in
a paginated, chronological format.
ℹ️ Description
- Combines Redis session history and Fish Orders (database) data.
- Returns both gameplay details and prebuilt chart data for analytics or visual reports.
- Supports pagination with
?page=and?per_page=parameters. - Timestamps are automatically converted to the shop’s timezone if
timezone=1. - Default limit: 50 records per page.
⚠️ History Retention:
Due to the large volume of data, only the last 10,000 spins are stored.
All game history older than 10 days is automatically deleted.
GET https://proapi.gapi.lol/api/cashier/user/{id}/redis-history
Replace {id} with the target player’s unique ID.
Optional parameters:
?page=— specify the current page.?per_page=— number of records per page (default: 50).?timezone=1— format timestamps based on shop timezone.
This endpoint requires a valid Bearer token:
Authorization: Bearer <your_token>
Accept: application/json
Returns paginated game history records, chart data, and API processing duration:
{
"history": [
{
"id": "TX12345",
"game": "Sweet Bonanza",
"credits": "200.00",
"bet": "1.00",
"win": "50.00",
"ip": "192.168.1.25",
"date": "2025-10-31 14:35:21"
},
{
"id": "TX12344",
"game": "Fish",
"credits": "500.00",
"bet": "5.00",
"win": "0.00",
"ip": "192.168.1.25",
"date": "2025-10-31 14:20:03"
}
],
"chart": [
{ "y": "500.00", "key": 0 },
{ "y": "300.00", "key": 1 }
],
"duration": 0.0245,
"pagination": {
"current_page": 1,
"per_page": 50,
"total": 243,
"last_page": 5
}
}
curl -X GET "https://proapi.gapi.lol/api/cashier/user/3154/redis-history?page=1&per_page=50&timezone=1" \
-H "Authorization: Bearer <your_token>" \
-H "Accept: application/json"
💡 Developer Tip
Use the chart array to visualize the player’s credit trend across pages.
Each element’s y value represents the highest balance recorded within that page.
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"
}