Skip to main content

Create Withdraw (TRC20)

Create USDT-TRC20 withdrawal order interface.

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)Merchant order number (length 1~32)
amountYesInteger(10)Order amount (unit: 0.01 USDT)
Example: 50000 represents 500 USDT
notify_urlYesString(256)Transaction result notification URL
request_timeYesInteger(10)Request time (seconds)
target_addressYesStringReceiving address (must be TRC-20 network)
signYesString(32)Order Signature

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
}
}

Error Response Example

{
"error_code": "0018",
"error_msg": "Insufficient merchant balance!"
}

Response Parameters

ParameterTypeDescription
error_codeStringError code
error_msgStringError message (returned when error_code is not "0000")
txn_idStringPlatform order number
txn_cl_idStringMerchant order number
from_addressStringPlatform sending address
target_addressStringTarget receiving address
amountIntAmount

Notes

  • Amount unit is 0.01 USDT, for example, 500 USDT should be passed as 50000