Skip to main content
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>"
}
'
{}
代碼說明
1額度不足
2無效參數
10交易序號重複
36伺服器錯誤
9999未知錯誤

Body

application/json
uuid
string
required

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

platform_id
string
required

平台方的產品 ID

username
string
required

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

transaction_id
string
required

交易序號

credit
string
required

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

key
string
required

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

Response

成功

error
object