跳轉到主要內容
PUT
/
api
/
v1
/
dt
/
credit
更新額度
curl --request PUT \
  --url https://api.example.com/api/v1/dt/credit \
  --header 'Content-Type: application/json' \
  --data '
{
  "uuid": "<string>",
  "platform_id": "<string>",
  "username": "<string>",
  "transaction_id": "<string>",
  "credit": "<string>",
  "key": "<string>"
}
'
This response has no body data.
代碼說明
1額度不足
2無效參數
10交易序號重複
36伺服器錯誤
9999未知錯誤

主體

application/json
uuid
string
必填

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

platform_id
string
必填

平台方的產品 ID

username
string
必填

用戶在遊戲中的帳號 (限制長度23字元,且皆為小寫英文或數字)

transaction_id
string
必填

交易序號 (長度 1~128 字元,僅允許 ASCII 32-126 可列印字元,禁止使用 ` 和 ~)

credit
string
必填

額度變化量(正數為加額,負數為扣額)

key
string
必填

md5(username + credit + transaction_id + 平台密鑰)

回應