# 订单查询
根据订单号查询支付订单信息,请求扣费超时时可以调该接口查询订单状态
# 请求方法
POST(application/json)
# 请求地址
https://payapi.weixiao.qq.com/v2/orderquery
注:旧版接口https://payapi.weixiao.qq.com/orderquery 已经停止维护,已接入并正在使用的客户不受影响
此外下单用的旧版接口,退款和查单也必须用旧版接口
# 参数说明
{
"order_id":"2402295006361551869"
}
参数 | 是否必填 | 类型 | 实例 | 说明 |
---|---|---|---|---|
order_id | 是 | string | 2402295006361551869 | 订单号 |
# 响应说明
{
"code": 0,
"message": "",
"data": {
"order_id": "2400574947596436477",
"user_id": "",
"amount": "1",
"order_state": "1",
"order_time": "2020-11-11 15:23:37",
"pay_time": "2020-11-11 15:23:37",
"sub_orders": [
{
"order_id": "2400574947596436477_rcg",
"amount": "1",
"channel": "recharge",
"account": "1589960652_1941253516",
"order_state": "8",
"channel_name": "",
"balance": "0"
}
],
"transaction_id": ""
}
}
参数名 | 类型 | 必填 | 描述 | ||
---|---|---|---|---|---|
code | int | Y | 业务状态 0 为成功 其他为失败 | ||
message | string | Y | 业务提示 | ||
data | order_id | string | Y | 订单号 | |
user_id | string | Y | 电子卡号/学工号 | ||
amount | int | Y | 代扣总额 | ||
order_state | int | Y | 订单状态,0 支付中;1 支付成功;2 支付失败 | ||
order_time | datetime | Y | 下单时间 | ||
pay_time | datetime | Y | 支付时间 | ||
sub_orders | order_id | string | Y | 子单号 | |
amount | int | Y | 子单金额 | ||
channel | string | Y | 渠道 | ||
account | string | Y | 子商户号 | ||
order_state | int | Y | 订单状态 | ||
channel | string | Y | 渠道名称 | ||
balance | int | Y | 余额 | ||
transaction_id | string | Y | 渠道订单号 |