Query Order (TRC20)
Query USDT-TRC20 Order詳情接口.
Request Information
- **Request URL: **
/gateway/api/v1/tron/txns - **Request Method: **
GET - **Content-Type: **
application/json;charset=utf-8
Request Headers (Headers)
| Parameter | Type | Description |
|---|---|---|
| Authorization | String | {authorization} System分配給平台之授權識別 |
Request Parameters
uses Query String 將Query參數帶在請求網址後, txn_id 與 txn_cl_id 至少需填入一個.
| Parameter | Required | Type | Description |
|---|---|---|---|
| txn_cl_id | No | string | MerchantOrder號 |
| txn_id | No | string | SystemOrder號 |
Request Example
/gateway/api/v1/tron/txns?txn_cl_id=test_payout_txn_163439639
Response Example
Success Response
{
"error_code": "0000",
"data": {
"amount": 50000000,
"fee": 0,
"txn_id": "CTX00000007",
"txn_cl_id": "test_payout_txn_1634396394",
"status": 1,
"from_address": "TR1KMKNJAJRsPWuMVYnEkj1H3GaUdUe4wG",
"target_address": "TAkr13ZMWyPSpo7jvQ4ajgmm8X9EG4dEZK",
"create_time": 1634396394,
"update_time": 0
}
}
Error Response Example
{
"error_code": "0050",
"error_msg": "查无Order!"
}
Response Parameter Description
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error Codes |
| error_msg | String | Error Message (error_code is not "0000" returned when ) |
| amount | Int | 轉帳Amount |
| from_address | String | 發送方 |
| target_address | String | 接收方 |
| status | Int | OrderStatus (見下表) |
TRC-20 Ordertransaction status
| Status | 數Value |
|---|---|
| 初始 | 0 |
| 等待中 | 1 |
| 執行中 | 2 |
| 成功 | 3 |
| 取消 | 4 |
| 失敗 | 5 |