查询订单状态
查询订单状态
#
RequestPOST
#
Parameterapplication/json
Field | Type | Description |
---|---|---|
merchantCode | string [5..50] characters | Unique merchant code |
queryType | string | Enum: "ORDER_QUERY" "REFUND_QUERY" "CASH_QUERY" query type: ORDER_QUERY : query pay order REFUND_QUERY : query refund order |
orderNum | string | This number should be unique for merchant. Dupliated numbers won't be accepted by platform. |
dateTime | string <date-time> | format yyyyMMddHHmmss |
appId | string Nullable | Application ID. Merchants can create their own applications according to the business. This field is optional. |
sign | string <=512 characters | Encrypted parameters. |
#
Request Example#
Response#
Success200
application/json
Field | Type | Description |
---|---|---|
platRespCode | string | result code: "SUCCESS" "FAIL" "UNKNOWN" "NOTEXIST" "ERROR" |
platRespMessage | string | description of resp code |
platOrderNum | string | unique order number in platform wide. |
orderNum | string | unique order number in merchant wide. Same as orderNum in request body. |
amount | number <int64> | The amount user has paid. |
fee | number <int64> | fee charged by platform |
status | string | Enum: "NO_PAY" "INIT_ORDER" "OPEN_PAY_URL" "SUCCESS" "PAY_CANCEL" "PAY_ERROR" order status. The value differs according to queryType. when queryType is ORDER_QUERY , the status can be:- INIT_ORDER : new order- NO_PAY or OPEN_PAY_URL : paying- SUCCESS : success- PAY_CANCEL : canceld- PAY_ERROR : failed to pay due to an errorwhen queryType is REFUND_QUERY , the status can be:- 0 : newly created order - 2 : refund successfully - 4 : fail to refund when queryType is CASH_QUERY , the status can be:- 0 : newly created order - 1 or 5 : platform is processing disbursement - 2 : disburse successfully - 3 : cancelled - 4 : fail |
msg | string | description for status. |
platSign | string | Encrypted response data |