Action 68: Batch Query Player Balances
Function Description
- The maximum limit for player account queries is 100 records, and duplicate player accounts will be automatically removed.
- If the queried player accounts include non-existent ones, an error message with code 9998 will be received, and the non-existent player accounts will be returned.
Parameter
Parameter | Format | Mandatory | Description |
---|---|---|---|
action | Integer | Y | 68 |
ts | Long | Y | Current system time |
parent | String(50) | Y | Agent ID |
uidList | String Array | Y | Player ID |
Example
{
"action": 68,
"ts": 1447452951820,
"parent": "testag",
"uidList": ["testpl01","testpl02"]
}
Return Results
Parameter | Format | Description |
---|---|---|
status | String(4) | Success: 0000 Error: See in Appendix Error Codes |
data | JSON Array | The returned data will be listed in the following table. |
err_text | String(255) | Error message |
Parameter | Format | Description |
---|---|---|
uid | String(50) | Player ID |
balance | String(29) | Account balance |
Operation Sample
// Http Request
http://{API_Address}/apiRequest.do?dc=jb&x=udbFVt_xv0tsAmLDpz5Z3Ct4-p0gedUPdQO-UWsfd6PHz9Ky-wM3mIC9El4kwl_SlX3lpraVaCLnp-K0WsgKmpYTV9XpYncHzbtvn591qfaAwpGyOvsS4v1Yj7OvpRw_iU4554RuSsvHpI9jaj4XUgTK5yzbWKEddANjAAbxF0s=
// Http Response (success)
{
"status": "0000",
"data": [
{
"uid":"testpl01",
"balance":"901288.5",
},
{
"uid":"testpl02",
"balance":"901288.5",
}
]
}
// Http Response (error)
{
"status":"9005",
"err_text":"Assertion(SAML) didn't pass the timestamp validation."
}
// 如果請求中有不存在玩家
{
"status":"9998",
"err_text":"none match uid: [xb9876]"
}