A deposit is a transfer of a specified amount of money to an identity account.
Request
PARAMETER | DESCRIPTION | FORMAT | EXAMPLE |
partnerID | ID of partner Unique ID associated with each customer |
GUID | D61A14AE-0A0C-464B-B7AB-5900BE7462F9 |
sign | Parameters partnerID, name, amount, currency, reference, sessionID, source, type (for more information, see Creating Data Sign) |
string (64) | 5E0A0349AE36AD67 CD21D891AB124CCE 8CC4171C5BD7EF5B 26FCA86DB71F500A |
name | Identity name | string (48) | Player01 |
amount | Amount | decimal | 3.40 |
currency | Currency This value is in ISO 4217 format, so it is expressed with 3 letters. |
string (3) | USD |
reference | Reference for the transaction. It must be a unique identifier. |
long | 123456789 |
sessionID | ID of the session associated with the deposit. This parameter returned in CreateSession call. Also can be retrieved via GetSession call. | long | 123456789 |
source | Leave an empty string. | string (48) | |
type | Type of deposit. This value is optional. The default value is 0. | short | 0 |
Request example:
REST JSON
POST https://staging.tomhorngames.com/services/gms/RestCustomerIntegrationService.svc/Deposit HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/json
Content-Length: 123456
Host: staging.tomhorngames.com
{
"partnerID" : "9a2e7402-5cef-42ed-84a6-db589ce19fc6",
"sign" : "F987FD034EE70EEF6BC5B91422E0C0B78103913AEA0C49AC23E58AA6EC1D89B9",
"name" : "test_EUR",
"amount" : 10,
"currency" : "EUR",
"reference" : 636081756148736579,
"sessionID" : null,
"source" : "",
"type" : 0
}
Response
PARAMETER | DESCRIPTION | FORMAT | EXAMPLE |
Code | Result codes: 0, 1, 11, 12, 13, 1001, 1002, 1003, 1006, 1008, 1009, 1012, 1013, 1015, 1018 (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 (256) | Cannot find specified identity |
Transaction | This property is set only if the result code is 0 (success) | ||
ID | Transaction ID | long | 123456789 |
Balance | The balance in the target account after the transaction is completed. | decimal | 14.50 |
Amount | Actual amount transferred from the source to the target account. Under normal conditions, this value is equal to the requested amount. | decimal | 3.40 |
Currency | Currency in which the game can be played. This value is in ISO 4217 format, so it is expressed with 3 letters. | string (3) | USD |
Response example:
REST JSON
{
"Code" : 0,
"Message" : null,
"Transaction" : {
"Amount" : 10,
"Balance" : 11008,
"Currency" : "EUR",
"ID" : 114658
}
}
SOAP
<DepositResult> <Code>0</Code> <Message></Message> <Transaction> <ID>123456</ID> <Balance>12.25</Balance> <Amount>13.45</Amount> <Currency>USD</Currency> </Transaction> </DepositResult>
Comments
0 comments
Article is closed for comments.