全域收单订单查询接口,用于查询订单状态和详情
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
storeId | String | 必须 | 100004 | 门店ID | |
tradeNo | String | 可选 | 20180111000001595051 | 零售核心订单号,和外部订单号不能同时为空 | |
outTradeNo | String | 可选 | OT39472389645 | 业务方自有订单号,和零售核心订单号不能同时为空 | |
refundNo | String | 可选 | 2343342454 | 零售核心退款单号,如需查询退款信息则和外部业务方退款单号不能同时为空 | |
outRefundNo | String | 可选 | RF43654676 | 外部业务方退款单号,如需查询退款信息则和零售核心退款单号不能同时为空 | |
queryDetail | Boolean | 必须 | false |
|
是否要查询订单详情,默认false,仅返回订单的状态。如仅关心订单状态请设置为false |
storeIdType | String | 必须 | RPLUS | 门店Id类型,RPLUS:零售+门店ID; PLACE:商户中心门店ID; CUSTOM:自有门店ID,须在商户中心有映射关系 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
success | Boolean | true | 业务成功标识 true|false |
errCode | String | 601 | 错误码 |
errMsg | String | 无效参数 | 错误描述 |
data | RcTradeQueryDTO | 业务数据 | |
|
1 2 3 4 5 6 7 8 9 10 11 | QimenCloudClient client = new DefaultQimenCloudClient(url, appkey, secret); AlibabaUniTradeQueryRequest req = new AlibabaUniTradeQueryRequest(); req.setStoreId( "100004" ); req.setTradeNo( "20180111000001595051" ); req.setOutTradeNo( "OT39472389645" ); req.setRefundNo( "2343342454" ); req.setOutRefundNo( "RF43654676" ); req.setQueryDetail( false ); req.setStoreIdType( "RPLUS" ); AlibabaUniTradeQueryResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | < success >true</ success > < errCode >601</ errCode > < errMsg >无效参数</ errMsg > < data > < tradeStatus >success</ tradeStatus > < refundStatus >success</ refundStatus > < totalAmount >15000</ totalAmount > < actualPayAmount >10000</ actualPayAmount > < gmtPay >2018-01-12 12:34:23</ gmtPay > < gmtRefund >2018-01-13 12:34:23</ gmtRefund > < gmtCreate >2018-01-12 12:34:23</ gmtCreate > < tradeNo >4326546457</ tradeNo > < outTradeNo >OT5324543</ outTradeNo > < goodsList > < rc_goods_param > < goodsId >GB54377673</ goodsId > < idType >CUSTOM</ idType > < quantity >2.0</ quantity > < price >1000</ price > < guider >GD001</ guider > < outSubTradeNo >OT5437345</ outSubTradeNo > </ rc_goods_param > </ goodsList > < customFundBillList > < rc_custom_fund_bill > < fundBillId >3242345</ fundBillId > < fundBillName >满百减十</ fundBillName > < amount >1000</ amount > </ rc_custom_fund_bill > </ customFundBillList > < refundDetailList > < refund_detail > < refundNo >326457856</ refundNo > < outRefundNo >OT357435</ outRefundNo > < refundAmount >1000</ refundAmount > < gmtRefund >2017-01-01 12:00:00</ gmtRefund > </ refund_detail > </ refundDetailList > </ data > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|