This operation allows the caller to obtain the balance of a specified identity account.
Request
PARAMETER | DESCRIPTION | FORMAT | EXAMPLE |
partnerID | ID of partner identification of Integration Casino in the customer system | string | Partner |
sign |
Parameters: partnerID, name, currency, sessionID, gameModule, type (for more information see Creating Data Sign) | string (64) | 5E0A0349AE36AD67 CD21D891AB124CCE 8CC4171C5BD7EF5B 26FCA86DB71F500A |
name | Identity name name of user in partners system | string (48) | Player01 |
currency | Player’s currency in ISO 4217 format (expressed with 3 letters). | string (3) | USD |
sessionID | The ID of the session. This parameter is optional, the default value is 0. | long | 123456789 |
gameModule | Game module key. This parameter is optional, the default value is an empty string. | string (32) | VSFH |
type | Type of requested balance. This parameter is optional, the default value is 0. | integer | 0 |
Request example:
REST JSON
POST https://casino.com/THE/WalletService/GetBalance HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/json
Content-Length: 123456
Host: staging.tomhorngames.com
{
"partnerID" : "JsonTestCustomer1",
"sign" : "70918C7FF2C69E5E5EE05A3DC4077F72FF69C03497AC36DC1ADD58449DCDCCF4",
"name" : "test_EUR",
"currency" : "EUR",
"sessionID" : 0,
"gameModule" : "",
"type" : 0
}
SOAP
<GetBalance> <partnerID>C66B9778-574C-4B88-BBA5-2EFD362365E4</partnerID> <sign>37F28B5EC338FF0817BBC7D9686E3A6DB192450257DDD8D790C6ADA05289B2CD</sign> <name>Player123</name> <currency>EUR</currency> <sessionID>29649</sessionID> <gameModule>VSlotBM</gameModule> <type>0</type> </GetBalance>
Response
PARAMETER | DESCRIPTION | FORMAT | EXAMPLE |
Code | Result codes : 0, 1, 2, 3, 4, 5 (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 occurs. | string (256) | Cannot find specified identity |
Balance | This field is set only if the result code is 0 (success) | ||
Amount | Current amount. This Value can have a maximum of 2 decimal places. | decimal | 12.35 |
Currency | Player’s currency in ISO 4217 format (expressed with 3 letters). | string (3) | USD |
Response example:
REST JSON
{
"Code": 0,
"Message": "",
"Balance":
{
"Amount": 22982.07,
"Currency": "EUR"
}
}
SOAP
<GetBalanceResult> <Code>0</Code> <Message></Message> <Balance> <Amount>12.25</Amount> <Currency>USD</Currency> </Balance> </GetBalanceResult>
Comments
0 comments
Article is closed for comments.