Transaction Endpoints
Query transaction details and status for payment orders.
Query Transaction Details
Transaction information is included in the order status response. Use the Query Payment Order Status endpoint to retrieve transaction details.
Endpoint: POST /api/v3.0.0/pay/queryPayOrderWithAccessSign
Request
Headers:
Content-Type: application/json
Note: This endpoint does NOT require signature authentication (uses accessSign instead).
Body:
{
"merchantOrderId": "string",
"payOrderId": "string",
"accessSign": "string"
}
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
merchantOrderId | string | ✅ Yes | Your merchant order ID |
payOrderId | string | ✅ Yes | HashNut platform order ID |
accessSign | string | ✅ Yes | Access signature from create order response |
Response
Success Response (200 OK):
{
"code": 0,
"msg": "success",
"data": {
"merchantOrderId": "e30ff306-5552-497d-9083-fd6e943dfd73",
"payOrderId": "01KBZ292SK2GKFK97916F5EC3B",
"payTxId": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
"confirmCount": "12",
"state": 4,
"chainCode": "erc20",
"coinCode": "usdt",
"amount": 0.01,
"tokenAddress": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"receiptAddress": "0x5678...",
"createTime": "2024-01-01T00:00:00Z"
}
}
Transaction Fields
| Field | Type | Description |
|---|---|---|
payTxId | string | Transaction hash on the blockchain (available after payment is sent) |
confirmCount | string | Number of blockchain confirmations received |
state | integer | Order/transaction state (see Order States) |
chainCode | string | Chain code (e.g., "erc20", "bsc-erc20") |
coinCode | string | Currency code (e.g., "usdt", "usdc") |
amount | decimal | Transaction amount |
tokenAddress | string | Token contract address |
receiptAddress | string | Receiving address |
createTime | string | Transaction creation timestamp (ISO format) |