查询订单信息
查询订单
请求地址
/api/v2/trade/query
公共请求参数
请求参数
| 参数 | 必填 | 类型 | 说明 |
|---|---|---|---|
| order_no | 否 | string | 订单号, 特殊选填 |
| third_order_no | 否 | string | 商家订单号, 特殊选填 |
响应参数
| 名称 | 类型 | 说明 |
|---|---|---|
| title | string | 订单标题 |
| order_no | string | 订单号 |
| user_no | string | 用户编号 |
| member_name | string | 会员名称 |
| third_order_no | string | 商家订单号, 商家端唯一 |
| total_fee | int | 订单总额, 单位分 |
| un_discountable_fee | int | 订单不可优惠金额, 单位分 |
| sub_label | string | 业务标签 |
| biz_data | string | 业务数据 |
| shop_id | long | 门店id |
| shop_name | string | 门店名称 |
| create_time | string | 创建时间 |
| update_time | string | 更新时间 |
| status | int | 订单状态, 1: 待支付, 2: 已支付, 3:进行中, 4:已完成, 5: 已取消 |
请求示例
:::: tabs
::: tab biz_content
{
"order_no": "10117377461794304"
}
:::
::: tab 原始数据
{
"open_app_id": "kd100020191120",
"open_mch_id": "60882970237033",
"timestamp": 1574929001,
"sign_type": "MD5",
"token": "087c96a2-5557-4237-a09b-4ca0bcedbdbf",
"biz_content": "{\"order_no\": \"10117377461794304\"}",
"sign": "162edf3a15493a95597276020e974f45"
}
:::
::::
响应示例
:::: tabs
::: tab result
{
"code": 0,
"data": {
"biz_data": "下午茶",
"create_time": "2019-11-28 16:10",
"customer_name": "Janus",
"member_name": "",
"shop_id": 0,
"shop_name": "",
"status": 1,
"sub_label": "点餐",
"third_order_no": "1234567",
"title": "测试订单",
"total_fee": 100,
"un_discountable_fee": 100,
"update_time": "2019-11-28 16:10",
"user_no": "484643086096"
},
"msg": "success",
"succeed": true
}
:::
::: tab 原始数据
{
"result": "{\"code\":0,\"data\":{\"biz_data\":\"下午茶\",\"create_time\":\"2019-11-28 16:10\",\"customer_name\":\"Janus\",\"member_name\":\"\",\"shop_id\":0,\"shop_name\":\"\",\"status\":1,\"sub_label\":\"点餐\",\"third_order_no\":\"1234567\",\"title\":\"测试订单\",\"total_fee\":100,\"un_discountable_fee\":100,\"update_time\":\"2019-11-28 16:10\",\"user_no\":\"484643086096\"},\"msg\":\"success\",\"succeed\":true}",
"sign": "b19c673e045db5f5c3cc63bdabc65271"
}
::: ::::