Games History

Retrieve all game history. use gateway.[msdomain]

Request (GET)

/gateway/history/{version}/{brand_id}

Parameters:

Name In Type Required Description
version path string true The API version to use (pagination supported in version 3.0 and above).
brand_id path string true The ID of the casino.
x-auth-token header string false The player’s authentication token, in UUID format.
from query string false Date filter, from time, format YYYY-MM-DD.
to query string false Date filter, to time, format YYYY-MM-DD.
round_id query string false Round id to get data for.
unique_game_ids query string false Unique game ids to get data for, split by comma.
page query string false Page num to retrieve, default to 1.
games_per_page query string false records per page num to retrieve, default to 100.

Response

Status 200

{
  "response": [
    {
      "balance_after": "237.75",
      "round_balance": "-0.87",
      "balance_before": "236.88",
      "bet": "0.75",
      "game_name": "King Kong",
      "round_id": "3593543",
      "platform_name": "Desktop",
      "provider_id": "NYX_Next-gen",
      "details": false,
      "time": "2017/04/12 09:23:44",
      "category": "Video Slots",
      "win": "1.62",
      "game_id": 70160
    }
  ],
  "total_bets": 1,
  "total_wins": 1,
  "currency": "USD",
  "currency_symbol": "$",
  "page_num": 1,
  "games_per_page": 100,
  "games_count": 120
}

Status 400

{
  "errMsg": "invalid input - invalid brand id"
}

Status 401

{
  "errMsg": "invalid input - invalid token"
}

Status 500

{
  "result": "internal server error"
}

Response Parameters:

Name Type Required Restrictions Description
» balance_after string false none The player’s balance after playing the round.
» round_balance string false none The calculated round balance (balance_before - balance_after).
» balance_before string false none The player’s balance before playing the round.
» bet string false none The amount of the bet.
» game_name string false none The name of the game.
» round_id string false none The ID of the round.
» platform_name string false none The name of the platform that player is using.
» provider_id string false none The ID of the game provider.
» details boolean false none Indicates if the casino has more details regarding the specific round. This parameter only applies to GS1 games.
» time string false none The time that the transaction occurred.
» category string false none The category of the game (such as slots or live casino).
» win string false none The amount of the win.
» game_id string false none The ID of the game.