Get Balance
INFO
Whenever GamingPanda server wants to check player's balance (usually when game starts)
GamePanda service uses this information is only for in-game display and basic bet amount check.
Request Method
| Item | Name | Sample |
|---|---|---|
| Path | Path | <MerchantHost>/balance Like: http://www.game.com/balance |
| Request Method | Post |
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| Sign Params | Y | View details | |
| user_id | string | Y | User Unique Identifier |
| currency | string | Y | Currency |
Return Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| code | int | Y | |
| msg | string | Y | Message for debug |
| data | object | Y | Body |
| data.balance | object | Y | Balance Object |
| balance.user_id | string | Y | User Unique Identifier |
| balance.currency | string | Y | Currency |
| balance.amount | string | Y | Amount |
Sample
Http Request
Post Method
URL : <MerchantHost>/balance?mid=1697028447&sign=4e2b89c1a24f2fa9f718e09a66794cca69d80bad9f8b7380698cc36029c5c460&ts=1713768205
{"user_id":"jUhNj+meQ16inuksiKj0zR88","currency":"PHP"}
Http Response(success)
{
"code": 0,
"msg": "",
"data": {
"balance": {
"amount": "35.64",
"currency": "PHP",
"user_id": "jUhNj+meQ16inuksiKj0zR88"
}
}
}