Skip to main content

Create Withdraw Order (TRC20)

Create USDT-TRC20 WithdrawOrder接口.

Request Information

  • **Request URL: ** /gateway/api/v1/tron/payout-txns
  • **Request Method: ** POST
  • **Content-Type: ** application/json;charset=utf-8

Request Parameters

ParameterRequiredTypeDescription
platform_idYesString(7)Merchant ID
txn_cl_idYesString(32)MerchantOrder號 (長度 1~32)
amountYesInteger(10)OrderAmount (單位: 0.01 USDT)
e.g. : 50000 表示Submission 500 USDT
notify_urlYesString(256)Transaction ResultNotificationURL
request_timeYesInteger(10)Request Time (Seconds)
target_addressYesStringDepositURL (需is TRC-20 網絡)
signYesString(32)OrderSignature

Request Example

{
"platform_id": "PF0001",
"txn_cl_id": "test_payout_txn_1634395975",
"amount": 500000,
"notify_url": "https://notify.com/payments",
"target_address": "TAkr13ZMWyPSpo7jvQ4ajgmm8X9EG4dEZK",
"request_time": 1634395975,
"sign": "d373360cd44e420863b1ced04bc9efe0"
}

Response Example

Success Response

{
"error_code": "0000",
"data": {
"txn_id": "CTX00000007",
"txn_cl_id": "test_payout_txn_1634396394",
"type": 1,
"network": "TRC-20",
"from_address": "TR1KMKNJAJRsPWuMVYnEkj1H3GaUdUe4wG",
"target_address": "TAkr13ZMWyPSpo7jvQ4ajgmm8X9EG4dEZK",
"amount": 500000,
"display_amount": 500000
}
}

Error Response Example

{
"error_code": "0018",
"error_msg": "Merchant余额不足!"
}

Response Parameter Description

ParameterTypeDescription
error_codeStringError Codes
error_msgStringError Message (error_code is not "0000" returned when )
txn_idString平台Order號
txn_cl_idStringMerchantOrder號
from_addressString平台發送URL
target_addressString目標接收URL
amountIntAmount

Remarks

  • Amountunit is 0.01 USDT, e.g. 500 USDT 應pass in 50000