Skip to main content
POST
/
dt
/
callback
/
sync_credit
同步注單異動額度
curl --request POST \
  --url https://api.example.com/dt/callback/sync_credit \
  --header 'Content-Type: application/json' \
  --data '
{
  "platform_id": "H88",
  "token": "E47A56947DF6DA25B6F95C3BFE5748E7",
  "uuid": "lobby1-82818443591811",
  "account": "bentest",
  "info": [
    {
      "transaction_id": "005-200926080808-0000005RB",
      "order_id": "A003220118145511020000005",
      "type": 23,
      "canceled_id": "005-200926080808-0000005",
      "credit": 2000,
      "target_wallet": 0,
      "proposal_id": "954531",
      "ip": "127.0.0.1",
      "order_detail": {
        "room_account": "aad144",
        "table_id": "A003",
        "gmcode": "A003220118",
        "in_proposal": 1,
        "game_type": "BAC",
        "play_type": 1,
        "amount": 2000,
        "valid_amount": 0,
        "win": 0,
        "flag": 1,
        "round_detail": "8 3 23 ; 45 26 17 | 4 | 1 | 8 | 0",
        "create_time": 1668580007,
        "reckon_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 + 平台密鑰)

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