Skip to main content
POST
/
dt
/
callback
/
balance
玩家餘額查詢
curl --request POST \
  --url https://api.example.com/dt/callback/balance \
  --header 'Content-Type: application/json' \
  --data '
{
  "platform_id": "H88",
  "token": "E444957EDE11A261BF7F6E215ED1F1D6",
  "uuid": "lobby1-82818443591811",
  "account": "c001"
}
'
{
  "code": 0,
  "message": "success",
  "uuid": "d12e08fd-26de-4b2e-87a6-5dec92786800",
  "timestamp": 1668580007001,
  "data": {
    "account": "c001",
    "credit": 115,
    "reserved": 100,
    "balance": 215,
    "platform_id": "H88"
  }
}

Body

application/json
platform_id
string
required

平台方產品ID

token
string
required

驗證碼,md5(platform_id + uuid + account + 平台密鑰)

uuid
string
required

各平台自定義的唯一性請求序號,長度 >= 32 且 <= 128 字節

account
string
required

玩家帳號

Response

200 - application/json

成功

code
integer

錯誤代碼

message
string

錯誤訊息

uuid
string

自定義的唯一性請求序號

timestamp
integer

UNIX time,毫秒

data
object