Create Deposit Order (TRC20)
Create USDT-TRC20 DepositOrder接口.
Request Information
- **Request URL: **
/gateway/api/v1/tron/payment-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) |
| user_id | Yes | String(32) | 匯款人平台 ID |
| 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) |
| sign | Yes | String(32) | OrderSignature |
Request Example
{
"platform_id": "PF0001",
"user_id": "b929c18b83bf47809e1595ff6b28916a",
"txn_cl_id": "test_payment_txn_1755705625",
"amount": 12345,
"notify_url": "https://notify.com/payments",
"request_time": 1755705625,
"sign": "660b1bb75801bedd796d7b33ae089ef5"
}
Response Example
Success Response
{
"error_code": "0000",
"data": {
"txn_id": "CTX00000123",
"txn_cl_id": "test_payment_txn_1755705625",
"type": 0,
"network": "TRC-20",
"target_address": "TAkr13ZMWyPSpo7jvQ4ajgmm8X9EG4dEZK",
"amount": 12345,
"display_amount": 12345,
"pay_link": "http://localhost:8889/payment/index.html?token=eyJhbG"
}
}
Error Response Example
{
"error_code": "0004",
"error_msg": "Signature Verification Failed!"
}
Response Parameter Description
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error Codes |
| error_msg | String | Error Message (error_code is not "0000" returned when ) |
| pay_link | String | OrderPayment URL |
| amount | Int | SubmissionAmount |
| txn_id | String | 平台Order號 |
| txn_cl_id | String | MerchantOrder號 |
| target_address | String | 接收URL |
| user_id | String | 匯款人平台用戶名 (ID) |
Remarks
- Amountunit is 0.01 USDT, e.g. 500 USDT 應pass in 50000