Trades Query API
Trades Query API refers the API that merchant requests for the status of an order.
URL: https://domain/trade/query
Method: POST
Content-Type: application/x-www-form-urlencoded
Parameters:
name | opt | type | DESC | e.g. |
---|---|---|---|---|
merchant | N | string | Merchant uid | e7b8ba3bdbf6ee68adc... |
outtradeno | N | string | Merchant order number | 202002020123ABC |
sign | N | string | Signature | e10adc3949bae20f883e... |
Results of parameters returned:
Based on global responsescode=0 if successfuly. Results show the body of request with below parameters.
name | type | DESC | e.g. |
---|---|---|---|
tradeno | string | Order number | e7b8ba3bdbf6ee68adc... |
outtradeno | string | Merchant order number | 20200202123ABC... |
amount | string | Amount | 20.68 |
ramount | string | Net amount | 20.58 |
endtime | string | Payment time | 2020-01-01 02:02:03 |
status | string | Order status: 0 Unpaid; 1 Paid; 2 Timeout; 4 Cancel | 1 |
remark | string | Remarks | 测试订单 |
sign | string | Signature | e10adc3949bae20f883e... |