Transaction Result Notification (TRC20)
System將 USDT-TRC20 Transaction Result發送至Merchant提供的回調URL.
Request Information
- **Request URL: ** Merchant於申請時填入之
notify_urlURL - **Request Method: **
POST - **Content-Type: **
application/json;charset=utf-8
Request Parameters (由System發送給Merchant)
| Parameter | Required | Type | Description |
|---|---|---|---|
| txn_id | Yes | String(11) | SystemOrder號 |
| txn_cl_id | Yes | String(32) | MerchantOrder號 |
| amount | Yes | Integer(10) | OrderAmount (單位: 0.01 USDT) |
| fee | Yes | int | MerchantTransaction Fee (單位: 0.01 USDT) |
| status | Yes | int | OrderStatus (見下表) |
| from_address | Yes | string | 轉出URL |
| target_address | Yes | string | 轉入URL |
| create_time | Yes | String(7) | Create時間 (unix timestamp, 單位: Seconds) |
| update_time | Yes | int | Update Time (unix timestamp, 單位: Seconds) |
| sign | Yes | String(32) | Transaction Signature |
Request Example
{
"txn_id": "CTX00000007",
"txn_cl_id": "test_payout_txn_1634396394",
"amount": 50000000,
"fee": 0,
"status": 1,
"from_address": "TR1KMKNJAJRsPWuMVYnEkj1H3GaUdUe4wG",
"target_address": "TAkr13ZMWyPSpo7jvQ4ajgmm8X9EG4dEZK",
"create_time": 1634396394,
"update_time": 0,
"sign": "d373360cd44e420863b1ced04bc9efe0"
}
MerchantResponse Example
Merchant收到Notification後, 需Return JSON 格式數據以確認收到Notification.
{
"error_code": "0000"
}
TRC-20 Ordertransaction status
| Status | 數Value |
|---|---|
| 初始 | 0 |
| 等待中 | 1 |
| 執行中 | 2 |
| 成功 | 3 |
| 取消 | 4 |
| 失敗 | 5 |
Remarks
- 此接口由Merchant實現, 本System將於Order成功時消費此接口
- 建議Merchant實現驗簽流程, 以確認內容沒被竄改