This operation retrieves Customer player's summary data for a specified date interval.
Request
PARAMETER | DESCRIPTION | FORMAT | EXAMPLE |
partnerID | ID of partner Unique ID associated with each customer | GUID | D61A14AE-0A0C-464B-B7AB-5900BE7462F9 |
Sign | Parameters PartnerID, DateFrom, DateTo, Branch (for more information, see Creating Data Sign) | string(64) | E108134442EC162E9737DB9E1F2059AF50E9A B88ABA40C87 E4F81F2971B0ABD9 |
DateFrom | The start of the date interval | Date | 2015-01-20T00:00:00 |
DateTo | The end of the date interval | Date | 2015-01-21T00:00:00 |
Branch | The customer’s branch. This parameter is optional. | string | Branch1. |
Request example: REST JSON
POST https://staging.tomhorngames.com/services/gms/RestCustomerReportService.svc/GetCustomerPlayersSummary HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/json
Content-Length: 123456
Host: staging.tomhorngames.com
{
"PartnerID": "C77BB500-7E9A-4214-BD3C-605D6D2F91D9",
"Sign": "4356d8e1ffc2e32963f3d913f4580ecb8d0db44b7cb8fe1e7716a4b1c71828c1",
"Branch": "",
"DateFrom": "2022-06-14T07:05:00",
"DateTo": "2022-06-16T07:15:00"
}
SOAP
POST https://staging.tomhorngames.com/services/gms/CustomerReportService.svc HTTP/1.1
Host: staging.tomhorngames.com
Content-Type: text/xml; charset="utf-8"
SOAPAction: "http://tomhorn.eu/crservice/ICustomerReportService/GetCustomerPlayersSummary"
Content-Length: 123456
<GetCustomerPlayersSummaryRequest> <PartnerID>D61A14AE-0A0C-464B-B7AB-5900BE7462F9C</PartnerID> <Sign>E108134442EC162E9737DB9E1F2059AF50E9AB88ABA40C87E4F81F2971B0ABD9</Sign> <DateFrom>2015-01-20T00:00:00</DateFrom> <DateTo>2015-01-21T00:00:00</DateTo> <Branch>Branch1</Branch> </GetCustomerPlayersSummaryRequest>
Response
PARAMETER | DESCRIPTION | FORMAT | EXAMPLE |
Code | Result codes: 0, 1, 11, 12, 1001, 1002, 1006 , 1013 (for more information, see Result Codes) | integer | 0 |
Message | Description of the error, if one has occurred. This value is filled only in the event that an error takes place. | string | The specified session was not found |
DateFrom | The requested start of the date interval | Date | 2015-01-20T00:00:00 |
DateTo | The requested end of the date interval | Date | 2015-01-21T00:00:00 |
Branch | The requested customer’s branch. | string | Branch1 |
PlayersSummary | List of player's summary data. This property is set only if the result code is 0 (success). | ||
PlayerSummary | The player’s summary data, contains the player’s name, the key of the game module that player has played, the sum of bets and wins, profit, and bets count. | ||
PlayerName | The player’s name. | string | Player1 |
Game | The key of the game module. | string | VSlotKA |
Bets | Sum of all player’s bets in games with key Game in the requested date interval. | decimal | 10.35 |
Wins | Sum of all player’s wins in games with key Game in the requested date interval. | decimal | 8.21 |
Profit | Difference between Bet and Win (Bet – Win). | decimal | 2.14 |
BetsCount | Count all player’s bets in games with key Game in the requested date interval. | int | 12 |
Response example: REST JSON
{
"Branch": "",
"Code": 0,
"DateFrom": "2022-06-14T00:00:00",
"DateTo": "2022-06-16T00:00:00",
"Message": null,
"PlayersSummary": [
{
"Bets": 0.2700,
"BetsCount": 3,
"Game": "VSlotBBQ_TNP",
"PlayerName": "dummy1_EUR",
"Profit": 0.2700,
"Wins": 0.0000
}
]
}
SOAP
<GetCustomerPlayersSummaryResponse> <Code>0</Code> <Message></Message> <DateFrom>2015-01-20T00:00:00</DateFrom> <DateTo>2015-01-21T00:00:00</DateTo> <Branch>Branch1</Branch> <PlayersSummary> <PlayerSummary> <PlayerName>Player1</PlayerName> <Game>VSlotKA</Game> <Bets>10.35</Bets> <Wins>8.21</Wins> <Profit>2.14</Profit> <BetsCount>12</BetsCount> </PlayerSummary> <PlayerSummary> <PlayerName>Player2</PlayerName> <Game>VSlotDH</Game> <Bets>5.52</Bets> <Wins>4.34</Wins> <Profit>0.98</Profit> <BetsCount>7</BetsCount> </PlayerSummary> </PlayersSummary> </GetCustomerPlayersSummaryResponse>
Comments
0 comments
Article is closed for comments.