UnfinishedGames() API

This API request enables the operator to get unfinished games list of last 30 days.

UnfinshedGameHistory() Request

TypeInput
HTTP MethodPOST
API URLhttps://<API_BASE_URL>/games/unfinished-games/
Headers"Content-Type": "application/json"
POST Parametersjson object e.g.:
{
"api_key": "1pghjl4v5apt2bks",
"player_id": "1",
"game_type": "slots",
"amount_ type": "real"
}
ParametersTypeDescription
api_keyStringAPI Key allocated to each front-end
player_idStringPlayer ID of the player known to the Operator
game_typeStringType of Game (eg: slots, table_games, scratch_cards)
amount_typeStringMode of Play
For Example: ‘real’ – when playing with real cash ‘freespins’ – when playing with promo_freespin

GameHistory() Response + Example

Response would be in JSON format. Type: dictionary.

{
"game_history": 
  {"freespins": 
    {"headers": 
      ["Game Name","Round ID","Amount Type","Num Spins","Spins left","Date Time"], 
    "data": 
      [
        ["Test Game Name-1", 1001, "real", 10, 10, "2019-07-23 17:20:57"], 
	["Test Game Name-1", 1002, "real", 10, 1, "2019-07-23 17:20:57"], 
	["Test Game Name-2", 1003, "real", 5, 5, "2019-07-23 17:20:57"]
      ] 
    }
  }
  , 
  {"bonus_games":  
    {"headers": 
      ["Game Name","Round ID","Amount type","Num Picks","Num of User Picks","Date Time"], 
    "data": 
      [
        ["Test Game Name-1", 1201, "real", 5, 0, "2019-07-23 17:20:57"], 
	["Test Game Name-1", 1202, "real", 1, 0, "2019-07-23 17:20:57"], 
	["Test Game Name-2", 1303, "real", 4, 3, "2019-07-23 17:20:57"]
      ] 
    } 
  } 
}
Object/Key in Response ObjectTypeDescription
game_historyJSON ObjectKey game_history contains the JSON object as value. Contains 2 keys ‘freespins’ and ‘bonus_games’
game_history[‘freespins’]JSON ObjectJSON Object with 2 keys freespins and data.
headersJSON ListList of table headers
Game NameStringName of the game
Round IDIntegerRound ID which triggered free-spins
Amount TypeStringMode using which game was played
Num SpinsIntegerNumber of spins initially awarded
Spins LeftIntegerNumber of remaining spins
Date TimeStringServer UTC time game played at
dataJSON List of ListsList of Lists of freespins
game_history[‘bonus_games’]JSON ObjectJSON Object with 2 keys bonus_games and data.
headersJSON ListList of table headers
Game NameStringName of the game
Round IDIntegerRound ID which triggered free-spins
Amount TypeStringMode using which game was played
Num PicksIntegerNumber of picks initially awarded
Num of User PicksIntegerNumber of remaining picks
Date TimeStringServer UTC time game played at
dataJSON List of ListsList of Lists of bonus games