After making a payment, refund, or cancellation request, merchants can use the transaction enquiry API to retrieve the latest transaction status. This API supports querying by:Documentation Index
Fetch the complete documentation index at: https://sdk.qfapi.com/llms.txt
Use this file to discover all available pages before exploring further.
syssn(QFPay transaction number)out_trade_no(merchant-side order number)start_time/end_time(time-based filtering)
origssn, which refers to the original transaction’s syssn.
HTTP Request
- Endpoint:
/trade/v1/query - Method:
POST
Request Headers
HTTP
Request Parameters
Full details are documented in Common API Request Format. Key parameters include:| Parameter | Type | Required | Description |
|---|---|---|---|
mchid | String(16) | Conditional | Required if assigned to the merchant. |
syssn | String(128) | No | QFPay transaction number(s), comma-separated. |
out_trade_no | String(128) | No | Merchant order number(s), comma-separated. |
pay_type | String(6) | No | Payment type(s), comma-separated. |
respcd | String(4) | No | Filter by specific response code (e.g. 0000). |
start_time | String(20) | No | Format: YYYY-MM-DD hh:mm:ss. Required for cross-month queries. |
end_time | String(20) | No | Format: YYYY-MM-DD hh:mm:ss. Required for cross-month queries. |
page | Integer | No | Default = 1. |
page_size | Integer | No | Default = 10. Max = 100. |
For cross-month queries,
start_time and end_time are required.Example Request Body
Form Example
Sample Code (Multi-language)
Sample Response
JSON

