Skip to main content
POST
/
dt
/
callback
/
pay_credit
玩家交易扣款
curl --request POST \
  --url https://api.example.com/dt/callback/pay_credit \
  --header 'Content-Type: application/json' \
  --data '
{
  "platform_id": "H88",
  "token": "B6AC1083E0F2E47A3D81E1B6B3EA576B",
  "uuid": "lobby1-82818443591811",
  "account": "c001",
  "info": [
    {
      "type": 7,
      "credit": -2000,
      "transaction_id": "005-200926080808-0000005",
      "order_id": "A003220118145511020000006",
      "target_wallet": 0,
      "proposal_id": "954531",
      "ip": "127.0.0.1",
      "order_detail": {
        "room_account": "1444aad",
        "table_id": "A003",
        "gmcode": "A003220118",
        "in_proposal": 1,
        "game_type": "BAC",
        "play_type": 1,
        "amount": 2000,
        "create_time": 1668580007,
        "last_update_time": 1668580007
      },
      "rolling_unit": 1000,
      "ratio": 1
    }
  ]
}
'
{
  "code": 0,
  "message": "success",
  "uuid": "lobby1-82818443591811",
  "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 + type + 平台密鑰)

uuid
string
required

各平台自定義的唯一性請求序號

account
string
required

玩家帳號

info
object[]
required

交易資料

Response

200 - application/json

成功

code
integer

錯誤代碼

message
string

錯誤訊息

uuid
string

自定義的唯一性請求序號

timestamp
integer

UNIX time,毫秒

data
object