Skip to main content

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

ParameterTypeDescription
AuthorizationString{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.

ParameterRequiredTypeDescription
txn_cl_idNostringMerchant order number
txn_idNostringSystem 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

ParameterTypeDescription
error_codeStringError code
error_msgStringError message (returned when error_code is not "0000")
amountIntTransfer amount
from_addressStringSender
target_addressStringReceiver
statusIntOrder status (see table below)

TRC-20 Order Transaction Status

StatusValue
Initial0
Pending1
Processing2
Success3
Cancelled4
Failed5