# 推送訂單
## 1、基本信息
請求API名稱:orderCreate
接口描述:調用接口,向啦啦外賣系統推送訂單
## 2、請求參數
| 字段名 | 類型 | 是否必填 | 示例 | 描述 |
| --- | --- | --- | --- | --- |
|ordersn_third| String | 是 | 2020103012000012345678 | 接入方訂單編號 |
|addtime| String | 是 | 1604027239 | 訂單創建的秒級時間戳 |
|order_final_fee| String | 是 | 12.5 | 美團外賣等訂單金額 |
|order_channel| String | 是 | songjianxia | 訂單來源(songjianxia:送件俠,maiyatian:麥芽田)|
|order_plateform| String | 是 | meituan| 訂單來源(meituan:美團外賣, eleme:餓了么, baidu:百度外賣, ebai:餓百零售, daojia:京東到家, youzan:有贊, youzan2:有贊, weidian:微店, tuangou:美團團購, taobao' => "淘寶, dianping' => "點評管家, shengri:生日管家,)|
|serial_sn|String| 否 | 3 | 訂單流水號(或門店取貨碼,不超過6位) |
|note|String| 否 | 不要辣椒 | 訂單備注 |
|buyaddress| Array | 是 | |取貨地址信息 |
| acceptaddress | Array | 是 | | 收貨人信息 |
| delivery_time | String | 是 | 2020-10-30 12:00 | 預計送達時間 |
| delivery_tips | String | 否 | 0 | 配送小費|
| goodsweight | String | 是| 1.5 | 物品重量 單位千克|
| goods_type | String | 否 | 快餐食物 | 物品類型 |
|goods|Array|否||物品信息列表|
|notify_url|String|是|http://abc.com|回調地址,用于接收訂單狀態變更消息|
buyaddress、acceptaddress字段包含信息
| 字段名 | 類型 | 是否必填 | 示例 | 描述 |
| --- | --- | --- | --- | --- |
| realname | String | 是 | 張三 | 姓名|
| mobile | String | 是 | 15364810000 | 手機號 |
| address | String | 是 | 山西省太原市 | 具體地址 |
| sex | String | 是 | 1 | 性別 1男 0女 |
| location_x | String | 是 | 37.87059 | 緯度坐標.(坐標系為高德地圖坐標系,又稱火星坐標)|
| location_y | String | 是 | 112.548879 | 經度坐標.(坐標系為高德地圖坐標系,又稱火星坐標)|
goods字段包含信息
| 字段名 | 類型 | 是否必填 | 示例 | 描述 |
| --- | --- | --- | --- | --- |
|title|String| 是 | 西紅柿炒雞蛋 |商品名稱|
|num| String | 是 | 1 | 商品數量 |
| unitname | String | 是 | 份 |商品單位|
| price| String | 是 | 10.5 | 商品價格 |
請求示例:
{
"ordersn_third": "2020103012000012345678",
"addtime": "1604027239",
"order_final_fee": 12.5,
"serial_sn": 3,
"note": "不要辣椒",
"buyaddress": {
"realname": "張三",
"mobile": "15364810001",
"sex": 1,
"address": "太原市小店區",
"location_x": "37.87059",
"location_y": "112.56619"
},
"acceptaddress": {
"realname": "李四",
"mobile": "15364810000",
"sex": 1,
"address": "太原高新技術產業開發區山投大廈",
"location_x": "37.87059",
"location_y": "112.56619"
},
"goods_weight": 1.5,
"delivery_time": "2020-10-30 12:00",
"delivery_tips": 0,
"goods_type": "快餐食品",
"goods": [{
"title": "西紅柿炒雞蛋",
"num": 1,
"unitname": "份",
"price": 10.5
}, {
"title": "米飯",
"num": 1,
"unitname": "份",
"price": 2
}],
"notify_url": "http://abc.com"
}
## 3、響應結果
| 字段名 | 類型 | 示例 | 描述 |
| --- | --- | --- | --- | --- |
| ordersn|String| 20200728144905060634|啦啦外賣訂單編號|
| final_fee|String| 10|商戶最終支付的配送費|
正確響應結果示例:
{
"errno": 0,
"message": {
"ordersn": "20200728144905060634",
"final_fee": "10",
}
}
錯誤響應結果示例:
{
"errno": -1,
"message": "配送地址信息不完善"
}