A withdrawal is the transfer of a specified amount FROM an identity account.
Request
PARAMETER | DESCRIPTION | FORMAT | EXAMPLE |
partnerID | The ID of partner > identification of Integration Casino in the customer system | string | Partner |
sign | Parameters: partnerID, name, amount, currency, reference, sessionID, gameRoundID, gameModule, fgbCampaignCode (for more information see Creating Data Sign) | string (64) | 5E0A0349AE36AD67CD21D891AB124CCE8C C4171C5BD7EF5B26FCA86DB71F500A |
name | Identity name name of user in partners system | string (48) | Player01 |
amount | Transaction amount the value can have a maximum of 2 decimal places. | decimal | 3.40 |
currency | Player’s currency in ISO 4217 format. | string (3) | USD |
reference | The reference for the transaction must be a unique identifier. | long | 123456789 |
sessionID | The ID of the session associated with the transaction. This parameter is optional, the default value is 0. | long | 123456789 |
gameRoundID | A unique ID of Player’s Game. | long | 123456789 |
gameModule | Game module key. This parameter is optional, the default value is an empty string. | string (32) | VSFH |
fgbCampaignCode |
Free Games Bonus campaign ID. This parameter is optional, the default value is NULL. But if the transaction is made during an FGB campaign it will contain the identification code of that campaign. |
string (32) | campaign1 |
fgbBetAmount |
The bet amount of the FGB round if it was a normal bet. This is an optional parameter with a default value of NULL. |
decimal |
0.10 |
Request example:
REST JSON
POST https://casino.com/THE/WalletService/Withdraw HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/json
Content-Length: 123456
Host: staging.tomhorngames.com
{
"partnerID" : "JsonTestCustomer1",
"sign" : "AED10CF82100B6B4E94089A60E0043A49395442E1F2D343E8DF2C27343A89FC4",
"name" : "test_EUR",
"amount" : 0.1,
"currency" : "EUR",
"reference" : 1761,
"sessionID" : 669357,
"gameRoundID" : 1599,
"gameModule" : "VSlotBM",
"fgbCampaignCode" : "",
"fgbBetAmount" : ""
}
SOAP
<Withdraw> <partnerID>C66B9778-574C-4B88-BBA5-2EFD362365E4</partnerID> <sign>104872961C23297025B857B1EDA2B925C2E9B65B41E66785C647541168BC7A9C</sign> <name>Player123</name> <amount>0.50</amount> <currency>EUR</currency> <reference>401048</reference> <sessionID>29649</sessionID> <gameRoundID>1000</gameRoundID> <gameModule>VSlotBM</gameModule> <fgbCampaignCode></fgbCampaignCode>
<fgbBetAmount></fgbBetAmount> </Withdraw>
Response
PARAMETER | DESCRIPTION | FORMAT | EXAMPLE |
Code | Result codes 0, 1, 2, 3, 4, 5, 6, 8, 11 (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 |
Transaction | This field is set only if the result code is 0 (success) | ||
ID | Transaction ID – a unique identifier | varchar(100) | 123456789 |
Balance | Balance in the source account after the transaction is completed. | decimal | 14.50 |
Currency | Player’s currency in ISO 4217 format (expressed with 3 letters). | string (3) | USD |
Response example:
REST JSON
{
"Code": 0,
"Message": "",
"Transaction":
{
"Balance": 22981.77,
"Currency": "EUR",
"ID": 10460335547
}
}
SOAP
<WithdrawResult> <Code>0</Code> <Message></Message> <Transaction> <ID>123456</ID> <Balance>12.25</Balance> <Currency>USD</Currency> </Transaction> </WithdrawResult>
Comments
0 comments
Article is closed for comments.