This operation retrieves information about a specified identity’s account.
Request
PARAMETER | DESCRIPTION | FORMAT | EXAMPLE |
partnerID | The ID of partner Unique ID associated with each customer | GUID | D61A14AE-0A0C-464B-B7AB-5900BE7462F9 |
sign | Parameters partnerID, name, type (for more information, see Creating Data Sign) | string (64) | 5E0A0349AE36AD67 CD21D891AB124CCE 8CC4171C5BD7EF5B 26FCA86DB71F500A |
name | Identity name | string (32) | Player01 |
type | Type of requested balance. This parameter is optional. The default value is 0. | short | 0 |
Request example:
REST JSON
POST https://staging.tomhorngames.com/services/gms/RestCustomerIntegrationService.svc/GetBalance 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" : "F80B38C85AAA1C8A8E0B848AA1CAAADC4E89BA5C7AFEC77DC45AACE21D431B88",
"name" : "test_EUR",
"type" : 0
}
Response
PARAMETER | DESCRIPTION | FORMAT | EXAMPLE |
Code | Result codes: 0, 1, 11, 12, 13, 1001, 1002, 1003, 1009, 1013 (for more information, see Result Codes) | Number | 0 |
Message | Description of the error, if one has occurred. This value is filled only if an error takes place. | string (256) | Cannot find specified identity |
Balance | This property is set only if the result code is 0 (success) | ||
Amount | Current amount | decimal | 12.35 |
Currency | Currency This value is in ISO 4217 format, so it is expressed with 3 letters. | string (3) | USD |
Response example:
REST JSON
{
"Balance": {
"Amount": 10998,
"Currency": "EUR"
},
"Code": 0,
"Message": null
}
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.