Query Order (TRC20)
Query USDT-TRC20 order details interface.
Request Information
- Request URL:
/gateway/api/v1/tron/txns - Request Method:
GET - Content-Type:
application/json;charset=utf-8
Request Headers
| Parameter | Type | Description |
|---|---|---|
| Authorization | String | {authorization} Authorization token assigned by the system to the platform |
Request Parameters
Use Query String to include query parameters in the request URL. At least one of txn_id or txn_cl_id must be provided.
| Parameter | Required | Type | Description |
|---|---|---|---|
| txn_cl_id | No | string | Merchant order number |
| txn_id | No | string | System order number |
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 not found!"
}
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code |
| error_msg | String | Error message (returned when error_code is not "0000") |
| amount | Int | Transfer amount |
| from_address | String | Sender |
| target_address | String | Receiver |
| status | Int | Order status (see table below) |
TRC-20 Order Transaction Status
| Status | Value |
|---|---|
| Initial | 0 |
| Pending | 1 |
| Processing | 2 |
| Success | 3 |
| Cancelled | 4 |
| Failed | 5 |