Skip to main content
POST
/
dt
/
callback
/
apply_reserved
傳統開工專用額度申請
curl --request POST \
  --url https://api.example.com/dt/callback/apply_reserved \
  --header 'Content-Type: application/json' \
  --data '
{
  "platform_id": "H88",
  "token": "E47A56947DF6DA25B6F95C3BFE5748E7",
  "uuid": "lobby1-82818443591811",
  "account": "walter123",
  "type": 1,
  "credit": 100,
  "proposal_id": 954654,
  "transaction_id": "005-200926080808-0000005"
}
'
{
  "code": 0,
  "message": "success",
  "uuid": "lobby1-82818443591811",
  "timestamp": 1668580007001,
  "data": {
    "account": "walter123",
    "credit": 115,
    "reserved": 100,
    "balance": 215,
    "platform_id": "H88",
    "transaction_id": "005-200926080808-0000005"
  }
}

Body

application/json
platform_id
string
required

平台方產品ID

token
string
required

驗證碼,md5(platform_id + uuid + account + type + credit + proposal_id + transaction_id + 平台密鑰)

uuid
string
required

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

account
string
required

玩家帳號

type
integer
required

類型 1. 出碼 2. 追碼 3. 收工 4. 取消

credit
integer
required

額度,須為正整數,type 為 3(收工) 時只允許為 0,type 為 4(取消) 時只允許為 0

proposal_id
integer
required

玩家提案號,不能為空值

transaction_id
string
required

交易序號,需唯一且不能為空值

Response

200 - application/json

成功

code
integer

錯誤代碼

message
string

錯誤訊息

uuid
string

自定義的唯一性請求序號

timestamp
integer

UNIX time,毫秒

data
object