/
GameReport

GameReport

URl: https://{{gmag_game_data_url}}/history/gameReport?hash={{xxx}}.

Method: POST.

Purpose: This method returns the list of the game report of a brand. The games counted in the report must be settled.

The period of the report must be less than 31 day, and the available report data is only in the last 6 months.

GameReport must use a specific API domain gmag_game_data_url. For the real domain, please check the brand account information from GM-Ag.


Request

Name

Type

Required

Description

Name

Type

Required

Description

startTime

String(32)

Yes

Date and time in GMT+0 timezone.
Format: YYYY-MM-DD HH:mm:00
Please note that the value of seconds should be always 00. Any other value of seconds must be converted to 00. The time refers to the 'endTime' of a game in the response of the API GameHisotry, that means if a game is not settled, it will not be counted in the report.

endTime

String(32)

Yes

Date and time in GMT+0 timezone.
Format: YYYY-MM-DD HH:mm:00
Please note that the value of seconds should be always 00. Any other value must be converted to 00. The time refers to the 'endTime' of a game.
endTime - startTime must be less than 1 day.

playerId

String(24)

No

The player Id to get gameReport for a specific player.

currency

String(8)

No

The currency code to get gameReport for specific currency.

gameCode

String(64)

No

The game code to get gameReport for a specific game.

reportBy

String(32)

No

gameCode, provider, player

orderKey

String(8)

No

result order by one or multiple of following fields {“games“,”bets”,”wins”,”GGR”}, separated by comma (,)

order

String(8)

No

result order by orderKey in {“ASC“,”DESC”}

Response

Name

Type

Required

Description

Name

Type

Required

Description

data

Array

Yes

Array of GameReport, it could be empty.

GameReport

Name

Type

Required

Description

Name

Type

Required

Description

totalBets

numeric(16, 4)

Yes

The total amount of bets.

totalWins

numeric(16, 4)

Yes

The total amount of wins.

totalCancels

numeric(16, 4)

Yes

The total amount of cancels.

totalJpc

numeric(16, 4)

Yes

The total amount of jackpot contribution.

totalJpw

numeric(16, 4)

Yes

The total amont of jackpot wins.

ggr

numeric(16, 4)

Yes

GGR = totalBets - totalWins - totalCancels.

games

int

Yes

The total number of game rounds.

players

int

Yes

The total number of players.

totalRakes

numeric(16, 4)

Yes

The total amount of rakes.

currency

String(8)

Yes

The currency code of the games.

gameCode

String(32)

No

When reportBy gameCode.

providerCode

String(32)

No

When reportBy provider or gameCode

playerId

String(32)

No

When reportBy player

Request example

{ "requestId": "requestId1234", "brandId": "1001", "startTime": "2021-06-10 01:00:00", "endTime": "2021-06-11 01:00:00" }

Response example

//success { "requestId": "request8491", "error": "0", "message": "SUCCESS", "data": [ { "ggr": -150, "totalWins": 260, "totalCancels": 225, "players": 1, "games": 54, "totalBets": 335, "currency": "CNY", "totalJpw": 5, "totalRakes": 0, "totalJpc": 0.1235 }, { "ggr": -150, "totalWins": 260, "totalCancels": 225, "players": 1, "games": 54, "totalBets": 335, "currency": "INR", "totalJpw": 5, "totalRakes": 0, "totalJpc": 0.1235 } ] } //error { "requestId": "requestId1234", "error": "P_02", "message": "Invalid hash", }

 

Related content