This operation retrieves information about a specified session.
Request
PARAMETER | DESCRIPTION | FORMAT | EXAMPLE |
PartnerID | ID of partner Unique ID associated with each customer | GUID | D61A14AE-0A0C-464B-B7AB-5900BE7462F9 |
Sign | Parameters partnerID, sessionID (for more information, see Creating Data Sign) | string(64) | 5E0A0349AE36AD67CD21D891AB124CCE 8CC4171C5BD7EF5B 26FCA86DB71F500A |
SessionID | The ID of the player’s session | long | 123432397 |
Request example:
REST JSON
POST https://staging.tomhorngames.com/services/gms/RestCustomerReportService.svc/GetSessionSummary 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": "9b0c40cf8447b3625088290a5569fd04de6317a7a2a8358772444a21974ad710",
"SessionID": "179605"
}
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/GetSessionSummary"
Content-Length: 123456
<GetSessionSummaryRequest> <PartnerID>8D63341D-050A-4BA0-A1A5-BC2A3FBE9F5C</PartnerID> <SessionID>123432397</SessionID> <Sign>38FA381E6967FFBD8BAF2DFDB10733E9AF8E70153DB3294FF65D7621F166EFE7</Sign> </GetSessionSummaryRequest>
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 |
Session | Information about the session. This property is set only if the result code is 0 (success). | ||
ID | Session ID. | long | 123432397 |
Name | The player’s name. | string | Player01 |
Start | Full start date and time of session. | DateTime | 2015-01-20T09:27:40.357 |
End | Full close date and time of session. This value is set only when the session is closed. | DateTime | 2015-01-20T09:28:20.097 |
State | The current state of the session: Open or Closed | enumeration value | Closed |
CurrencyCode | Code of the currency. | string | EUR |
Summary | Financial data. | ||
Bets | Sum of all bets in session. | decimal | 10.35 |
Wins | Sum of all wins in session. | decimal | 8.21 |
Profit | Difference between Bets and Wins (Bets – Wins). | decimal | 2.14 |
PercentageProfit | Calculated as fraction Profit / Bets (in %). | decimal | 20.68 |
PercentageTotal | Profit from all players in selected time. | decimal | 32.11 |
BetsCount | Count all bets in a session. | int | 12 |
WinsCount | Count all wins in a session. | int | 8 |
PercentageWins | Calculated as fraction WinsCount / BetsCount (in %). | decimal | 60.67 |
AverageProfit | Calculated as fraction Profit / BetsCount, shows average profit per 1 bet. | decimal | 0.18 |
MaxBet | The highest bet. | decimal | 1.00 |
AverageBet | Fraction Bets / BetsCount shows the average amount of 1 Bet. | decimal | 0.75 |
MaxWin | The highest win. | decimal | 3.00 |
AverageWin | Calculated as fraction Wins / WinsCount, shows the average value of 1 win. | decimal | 1.25 |
Response example:
REST JSON
{
"Code": 0,
"CurrencyCode": "EUR",
"Message": null,
"Session": {
"End": "2022-06-01T09:04:03.96",
"GamesCount": null,
"ID": 179605,
"Name": "dummy1_EUR",
"Start": "2022-06-01T09:03:22.803",
"State": 1
},
"Summary": {
"ActiveUsers": null,
"AverageBet": 0,
"AverageProfit": 0,
"AverageWin": 0,
"Bets": 1.0000,
"BetsCount": 1,
"MaxBet": 1.0000,
"MaxWin": 61.4000,
"PercentageProfit": 0,
"PercentageTotal": 0,
"PercentageWins": null,
"Profit": 0,
"ProfitUser": null,
"UsersCount": null,
"Wins": 61.4000,
"WinsCount": 1
}
}
SOAP
<GetSessionSummaryResponse> <Code>0</Code> <Message></Message> <Session> <ID>123432397</ID> <Name>Player01</Name> <Start>2015-01-20T09:27:40.357</Start> <End>2015-01-20T09:28:20.097</End> <State>Closed</State> </Session> <CurrencyCode>EUR</CurrencyCode> <Summary> <Bets>10.35</Bets> <Wins>8.21</Wins> <Profit>2.14</Profit> <PercentageProfit>20.68</PercentageProfit> <PercentageTotal>32.11</PercentageTotal> <BetsCount>12</BetsCount> <WinsCount>8</WinsCount> <PercentageWins>60.67</PercentageWins> <AverageProfit>0.18</AverageProfit> <MaxBet>1.00</MaxBet; <AverageBet>0.75</AverageBet; <MaxWin>3.00</MaxWin; <AverageWin>1.25</AverageWin; </Summary> </GetSessionSummaryResponse>
Comments
0 comments
Article is closed for comments.