订单查询
访问路径:api/1/wxpay/query
接口说明:订单查询接口
URL结构
https://api.17wanxiao.com/api/1/wxpay/query
接口协议:HTTPS
HTTP请求方式:POST
请求参数
参数 | 必选 | 类型 | 说明 |
access_token | true | string | 访问令牌,请妥善保管,泄漏会导致用户信息泄漏 |
merchant_olid | true | string | 商户账号 (需要第三方申请,参考:申请方式) |
order_no | true | string | 商户订单号 |
norce_str | true | string | 随机数,保证签名不可预测 |
请求示例
换行和缩进只是为了更好的展示:
http://api.17wanxiao.com/api/1/wxpay/query?access_token =ACCESS_TOKEN&merchant_id=24&order_no=1459919885137123&norce_str=1459937535137123
返回参数
参数 | 必选 | 类型 | 说明 |
code | true | string | 操作结果:success为成功 |
msg | true | string | 失败信息 |
norce_str | true | string | 随机数,保证签名唯一 |
body | true | string | 节点,JSON数组 |
business_no | true | string | 支付平台在三方支付平台上的商户订单号 |
order_paytime | true | string | 资金来源类型 |
order_createdt | true | string | 资金来源名称 |
subject | true | string | 资金来源logo |
total_fee | true | float | 支付金额,单位:分 |
merchant_olid | true | int | 商户帐号 |
bill_no | true | string | 支付账单号(内部唯一) |
order_status | true | int | 0-未付款 1-已付款 2-已通知到 商户 4-已关闭 |
order_no | true | string | 商户订单号 |
返回示例
{
"body": "测试",
"business_no": "2016040600642202",
"order_paytime": "",
"order_createdt": "2016/3/31 9:42:11",
"subject": "lhf测试",
"total_fee": 10.00,
"code": "success",
"norce_str": 1459919897770,
"merchant_olid": 24,
"bill_no": "2016040600640884",
"msg": "获取账单详细信息成功",
"order_status": 0,
"order_no": "1459919885137123"
}