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
| Parameter | Required | Type | Description |
|---|---|---|---|
| platform_id | Yes | String(7) | Merchant ID |
| txn_cl_id | Yes | String(32) | MerchantOrder號 (長度 1~32) |
| amount | Yes | Integer(10) | OrderAmount (單位: 0.01 USDT) e.g. : 50000 表示Submission 500 USDT |
| notify_url | Yes | String(256) | Transaction ResultNotificationURL |
| request_time | Yes | Integer(10) | Request Time (Seconds) |
| target_address | Yes | String | DepositURL (需is TRC-20 網絡) |
| sign | Yes | String(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
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error Codes |
| error_msg | String | Error Message (error_code is not "0000" returned when ) |
| txn_id | String | 平台Order號 |
| txn_cl_id | String | MerchantOrder號 |
| from_address | String | 平台發送URL |
| target_address | String | 目標接收URL |
| amount | Int | Amount |
Remarks
- Amountunit is 0.01 USDT, e.g. 500 USDT 應pass in 50000