# 订单查询
根据订单号查询⽀付订单信息,请求扣费超时时可以调该接⼝查询订单状态
# 请求方法
POST(application/json)
# 请求地址
https://payapi.weixiao.qq.com/mixpay/order_query
# 参数说明
{
"order_id":"20200402_mix_0001"
}
参数 | 是否必填 | 类型 | 实例 | 说明 |
---|---|---|---|---|
order_id | 是 | string | 2402295006361551869 | 订单号 |
# 响应说明
{
"code": 0,
"message": "",
"data": {
"order_id": "20200402_mix_0001",
"user_id": "",
"amount": "0",
"order_state": "2",
"order_time": "0",
"pay_time": "",
"transaction_id": ""
}
}
参数名 | 类型 | 必填 | 描述 | |
---|---|---|---|---|
code | int | Y | 业务状态 0 为成功 其他为失败 | |
message | string | Y | 业务提示 | |
data | order_id | string | Y | 订单号 |
user_id | string | N | 电子卡号/学工号 | |
amount | int | Y | 代扣总额 | |
order_state | int | Y | 订单状态,0 支付中;1 支付成功;2 支付失败 | |
order_time | datetime | Y | 下单时间 | |
pay_time | datetime | Y | 支付时间 | |
transaction_id | string | Y | 渠道订单号 |