Skip to main content
PUT
/
api
/
v1
/
dt
/
credit
Update 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.
CodeDescription
1Insufficient credit
2Invalid parameter
10Duplicate transaction ID
36Server error
9999Unknown error

Body

application/json
uuid
string
required

Platform-defined unique request ID, length >= 32 and <= 128 bytes

platform_id
string
required

Platform product ID

username
string
required

User account in game (max 23 characters, lowercase letters and numbers only)

transaction_id
string
required

Transaction ID (1-128 characters, ASCII 32-126 printable characters only, ` and ~ not allowed)

credit
string
required

Credit change amount (positive for deposit, negative for withdrawal)

key
string
required

md5(username + credit + transaction_id + platform secret key)

Response