# 查看訂單詳情
-----------------------------
接口: /open/waimai/order/query_get_order
參數:
| 參數 | 名稱 |
| --- | --- |
| app_id | 開發者ID |
| timestamp | 請求時間戳 |
| access_token | 授權訪問的access_token |
| order_number | 訂單編號 |
響應:
| 參數 | 名稱 |
| --- | --- |
| head | 狀態信息 |
| body | 響應信息 |
head字段說明:
| 參數 | 名稱 |
| --- | --- |
| code | 狀態碼 200=成功 |
| msg | 狀態說明 |
body字段說明:
| 參數 | 名稱 |
| --- | --- |
| shop_id | 微播餐飲店id |
| data | 消息數據 |
data字段說明:
| 參數 | 名稱 |
| --- | --- |
| number | 訂單號 |
| type | 訂單類型 1=堂食 2=外賣 3=自提 |
| order_type | 訂單狀態 1=新訂單 2=已接單 3=配送中 4=已完成 5=訂單取消 |
| status | 訂單支付狀態 1=未付款 2=已付款 3=用戶申請退款 4=已完成 7=支付超時 8=商家已退款 |
| price | 訂單金額 |
| real_price | 訂單實付金額 |
| business_price | 商家實收金額 |
| box_price | 餐盒費 |
| delivery_price | 配送費 |
| user_note | 用戶備注 |
| record_number | 門店當天的訂單流水號(每天流水號從1開始) |
| delivery_name | 收貨人姓名 |
| delivery_mobile | 收貨人聯系電話 |
| delivery_address | 北京市東城區正義路2號 |
| delivery_latitude | 配送緯度 |
| delivery_longitude | 配送經度 |
| created_at | 下單時間 |
| detail | 訂單商品詳情 |
| delivery_type | 可選配送方式 0=商家配送 1=達達配送 2=閃送 3=微播專送 |
| is_invoice | 是否需要發票 1=是 0=否 |
| invoice_desc | 發票抬頭 |
| tax_no | 發票稅號 |
| dm_name | 騎手名稱 |
| dm_mobile | 騎手電話 |
| xklj_discount | 新客立減活動金額 |
| food_discount | 折扣商品減免總金額 |
| discount_price | 訂單折扣金額 |
| coupon_price | 優惠券金額 |
| less_price | 滿減活動金額 |
detail字段說明:
| 參數 | 名稱 |
| --- | --- |
| food_id | 商品id |
| name | 商品名稱 |
| img | 商品圖片 |
| specification | 商品規格 |
| attribute | 商品屬性 |
| price | 商品單價 |
| count | 商品數量 |
| category_id | 分類id |
| group_name | 分組名稱 |
| category_name | 分類名稱 |
| sku_id | 規格id |
響應示例:
~~~
{
"head":{
"code":200,
"msg":"success"
},
"body":{
"shop_id":0,
"data":{
"number":"18012717393401368485737714",
"type":"2",
"order_type":"5",
"status":"2",
"price":"7601",
"real_price":"5321",
"business_price":"5321",
"box_price":"0",
"delivery_type":"1",
"delivery_price":"1",
"user_note":"",
"record_number":"6",
"delivery_name":"齊 (先生)",
"delivery_mobile":"13666666666",
"delivery_address":"北京市西城區 西直門內大街132號 A座三層",
"delivery_latitude":null,
"delivery_longitude":null,
"is_invoice":"0",
"invoice_desc":"",
"tax_no":"",
"dm_name":null,
"dm_mobile":null,
"created_at":"2018-01-27 17:39:34",
"xklj_discount":"0",
"food_discount":"5320",
"discount_price":"2280",
"coupon_price":"0",
"less_price":"0",
"detail":[
{
"food_id":"80190",
"name":"榛果拿鐵咖啡",
"img":null,
"specification":"榛果拿鐵咖啡",
"attribute":"熱飲",
"price":"2500",
"count":"1",
"category_id":"8945",
"group_name":null,
"sku_id":"485",
"category_name":"咖啡"
},
{
"food_id":"80193",
"name":"可可拿鐵",
"img":null,
"specification":"可可拿鐵",
"attribute":"熱飲,十分",
"price":"1800",
"count":"1",
"category_id":"8945",
"group_name":null,
"sku_id":"487",
"category_name":"咖啡"
},
{
"food_id":"80200",
"name":"經典原味奶茶",
"img":null,
"specification":"經典原味奶茶",
"attribute":"熱飲,十分",
"price":"1500",
"count":"1",
"category_id":"8576",
"group_name":null,
"sku_id":"497",
"category_name":"奶茶.奶蓋茶"
},
{
"food_id":"80197",
"name":"奶蓋金萱烏龍",
"img":null,
"specification":"奶蓋金萱烏龍",
"attribute":"無糖,熱飲",
"price":"1800",
"count":"1",
"category_id":"8576",
"group_name":null,
"sku_id":"494",
"category_name":"奶茶.奶蓋茶"
}
]
}
}
}
~~~
**測試一下**
```bash
curl -d "timestamp=1533051543&app_id=10001999&order_number=18071711432501381808810726&access_token=11d38e2d0122096d2d41c82c0978ac48962cade6" https://apib7.wboll.com/open/waimai/order/query_get_order
```
- 開放平臺簡介
- 一、快速開始
- 1.1 數據交互
- 1.2 簽名方式
- 1.3 商戶授權
- 1.4 刷新token
- 1.5 常見問題
- 二、消息推送服務
- 2.1 消息推送介紹
- 2.2 新訂單推送
- 2.3 堂食新訂單
- 2.4 堂食加菜
- 2.5 堂食退菜
- 2.6 訂單已取消
- 2.7 訂單完成
- 2.8 發生部分退款
- 2.9 訂單配送中
- 2.10 訂單已送達
- 2.11 訂單配送異常
- 2.12 直接買單
- 2.13 待自提
- 2.14 已接單
- 三、訂單管理
- 3.1 查看訂單詳情
- 3.2 取消訂單
- 3.3 配送訂單
- 3.4 確認送達/自提訂單
- 3.5 接單
- 四、門店管理
- 4.1 獲取門店列表
- 4.2 獲取門店信息
- 五、商品管理
- 5.1 新增分類信息
- 5.2 更新分類信息
- 5.3 查詢分類信息
- 5.4 刪除分類信息
- 5.5 查詢商戶所有分類信息
- 5.6 新增商品信息
- 5.7 更新商品信息
- 5.8 查詢商品信息
- 5.9 刪除商品信息
- 5.10 查詢分類下所有商品
- 5.11 查詢商戶所有分類及其商品
- 5.12 上傳圖片
- 六、餐單管理
- 6.1 新增品牌餐單
- 6.2 更新品牌餐單
- 6.3 獲取餐單列表
- 6.4 刪除餐單
- 6.5 餐單推送
- 八、附錄
- 九、OpenAPI更新記錄