/
Balance
Balance
URl: https://{{brand_url
}}/balance?hash={{xxx}}.
Method: POST.
Purpose: used to retrieve Player's balance in the Brand’s wallet system.
Request
Name | Type | Required | Description |
---|---|---|---|
playerId | String (24) | Yes | The Player’s unique identifier returned by the last auth call. |
playerSessionId | String (32) | Yes | playerSessionId returned by the last auth call. |
gameCode | String (32) | No | Game code that the Player is playing. |
Response
Name | Type | Required | Description |
---|---|---|---|
currency | String (4) | Yes | The currency code for Player. |
balance | numeric (16, 4) | Yes | The Player’s balance. |
bonusBalance | numeric (16, 4) | No | The Player’s bonus balance. |
country | String (4) | No | The Player’s country code. |
timestamp | DateTime | No | The time of the balance retrieving. |
Request example
{
"requestId": "requestId1234",
"brandId": "1001",
"playerId": "19823",
"playerSessionId": "custSessionId12341234",
"gameCode": "bfb"
}
Response example
//success
{
"requestId": "requestId1234",
"currency": "CNY",
"balance": "10000",
"bonusBalance": "10100",
"error": "0",
"message": "success"
}
//error
{
"requestId": "requestId1234",
"error": "P_08",
"message": "Invalid session"
}
, multiple selections available,
Related content
GetBalance
GetBalance
More like this
GetBalanceAll
GetBalanceAll
More like this
GetBrandBalance
GetBrandBalance
More like this
PayUp
PayUp
More like this
Transaction
Transaction
Read with this
发放玩家奖金
发放玩家奖金
More like this