Transfer
JDB Platform API
Player Management
Action 68: Batch Query Player Balances

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

ParameterFormatMandatoryDescription
actionIntegerY68
tsLongYCurrent system time
parentString(50)YAgent ID
uidListString ArrayYPlayer ID

Example

{
  "action": 68,
  "ts": 1447452951820,
  "parent": "testag",
  "uidList": ["testpl01","testpl02"]
}

Return Results

ParameterFormatDescription
statusString(4)Success: 0000

Error: See in Appendix Error Codes
dataJSON ArrayThe returned data will be listed in the following table.
err_textString(255)Error message
ParameterFormatDescription
uidString(50)Player ID
balanceString(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]"
}