订单详情
[TOC]
简要描述
- 获取订单详情接口
请求URL
https://food.taihuyun.vip/api/foodcash.order/detail?applet_id=1&shop_id=1&token=8014374705939b271a346001006d8aa5&order_id=1317
请求方式
- GET
参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
applet_id | 是 | string | 应用程序ID |
shop_id | 是 | string | 门店ID |
token | 是 | string | 用户身份验证的令牌 |
order_id | 是 | string | 订单ID |
返回示例
{
"code": 1,
"msg": "success",
"data": {
"detail": {
"order_id": 1317,
"order_no": "2023011199979953",
"source": {
"text": "前台收银端",
"value": 20
},
"order_mode": {
"text": "堂食",
"value": 10
},
"row_no": "",
"table_id": 38,
"people": 2,
"arrive_time": {
"text": "2023-01-11 17:31:24",
"value": 0
},
"flavor": "",
"message": "",
"server_message": "",
"total_price": "147.00",
"activity_price": "0.00",
"express_price": "0.00",
"pack_price": "0.00",
"ware_price": "0.00",
"divide_price": "0.00",
"pay_price": "147.00",
"pay_status": {
"text": "后付款",
"value": 30
},
"pay_mode": 2,
"transaction_id": "",
"pay_time": 1673429484,
"shop_status": {
"text": "已接单",
"value": 20
},
"shop_time": 1673429484,
"delivery_status": {
"text": "备餐中",
"value": 10
},
"delivery_time": 0,
"receipt_status": {
"text": "待完成",
"value": 10
},
"receipt_time": 0,
"order_status": {
"text": "进行中",
"value": 10
},
"refund_price": "0.00",
"refund_status": {
"text": "待退款",
"value": 10
},
"refund_time": 0,
"refund_desc": "",
"refund_id": "",
"is_cmt": {
"text": "待评价",
"value": 0
},
"is_order": 1,
"user_id": 26,
"shop_id": 1,
"applet_id": 1,
"book_date": "",
"book_time": {
"text": "",
"begin_end": "",
"value": 0
},
"book_place": {
"text": "",
"value": 0
},
"butie": 0,
"ticket_user_id": 0,
"pact_id": 420,
"order_type": 0,
"guadan_type": 0,
"guadan_id": 0,
"guadan_remark": "",
"order_team_id": 0,
"meal_id": 3,
"clerk_id": 8,
"create_time": "2023-01-11 17:31:24",
"update_time": "2023-01-11 17:31:24",
"goods": [
{
"order_goods_id": 2298,
"goods_id": 90,
"goods_name": "椒麻鸡",
"image_id": 10111,
"deduct_stock_type": 20,
"spec_type": 10,
"spec_sku_id": "",
"goods_spec_id": 674,
"goods_attr": "",
"content": "",
"goods_no": "",
"goods_price": "48.00",
"line_price": "50.00",
"goods_weight": 0,
"total_num": 1,
"total_price": "48.00",
"refund_num": 0,
"refund_price": "0.00",
"order_id": 1317,
"user_id": 26,
"applet_id": 1,
"create_time": "2023-01-11 17:31:24",
"image": {
"file_id": 10111,
"storage": "local",
"group_id": 0,
"domain": "",
"file_path": "20220829/8ce95b70d9194431a7511bb0cb93e5a4.jpg",
"file_size": 37490,
"file_type": "image",
"file_ext": "jpg",
"is_delete": 0,
"applet_id": 0,
"create_time": "2022-08-29 17:52:19",
"url": "https://food.taihuyun.vip/uploads/20220829/8ce95b70d9194431a7511bb0cb93e5a4.jpg"
},
"spec": {
"goods_spec_id": 6,
"spec_sku_id": "",
"goods_id": 4,
"image_id": 0,
"goods_no": "",
"goods_price": "2.00",
"line_price": "8.00",
"materials": null,
"stock_num": 0,
"goods_weight": 0,
"goods_sales": 0,
"applet_id": 1,
"create_time": "2022-05-31 11:01:33",
"update_time": "2022-05-31 11:01:33"
},
"goods": {
"goods_id": 90,
"goods_name": "椒麻鸡",
"selling_point": "",
"category_id": 14,
"spec_type": 10,
"deduct_stock_type": 20,
"content": "",
"sales_initial": 0,
"sales_actual": 102,
"goods_sort": 2,
"goods_status": {
"text": "已上架",
"value": 10
},
"audit_status": {
"text": "已通过审核",
"value": 10
},
"pack_price": 0,
"is_delete": 0,
"is_recommend": {
"text": "否",
"value": 0
},
"shop_id": 1,
"applet_id": 1,
"create_time": "2022-09-15 18:56:32",
"update_time": "2023-01-11 17:31:24",
"goods_sales": 102,
"stock": 0
}
}
],
"address": null,
"shop": {
"shop_id": 1,
"shop_name": "石化民族大食堂",
"shop_category_id": 0,
"logo": "https://food.taihuyun.vip/uploads/20220601/7c2648c6504b69c9bccafb7939060e81.png",
"front": "https://food.taihuyun.vip/uploads/20220530/44fbcb66ae95e40c87d24493edf8b2da.png",
"linkman": "sky",
"phone": "15358052238",
"shop_hours": "00:00 - 23:59",
"province": "新疆维吾尔自治区",
"city": "乌鲁木齐市",
"district": "米东区",
"address": "新疆乌鲁木齐市",
"coordinate": "43.975522,87.659912",
"poi_id": "656761524125795479",
"summary": "清真,美味",
"tang_mode": 1,
"is_order": {
"text": "开启",
"value": 1
},
"is_delivery": {
"text": "开启",
"value": 1
},
"delivery": "self",
"is_grab": {
"text": "开启",
"value": 1
},
"status": {
"text": "营业中",
"value": 1,
"status": 1
},
"out_show": {
"text": "显示",
"value": 1
},
"sort": 100,
"sf_shop_id": "",
"dada_shop_id": "",
"make_shop_id": "",
"applet_id": 1,
"is_team": 0,
"create_time": "2022-05-27 00:18:48",
"update_time": "2022-11-14 17:46:24"
},
"table": {
"table_id": 38,
"table_name": "散台1",
"people": 6,
"consume": "0.00",
"ware_price": "0.00",
"row_no": "0003",
"status": {
"text": "占用",
"value": 20,
"order_id": [],
"time": 0,
"pay_price": 0,
"pact": ""
},
"sort": 1,
"shop_id": 1,
"category_id": {
"text": "大厅",
"value": 2
},
"applet_id": 1,
"create_time": "2022-06-24 14:59:08",
"update_time": "2022-11-09 18:17:44"
},
"delivery": null,
"ticket": null,
"clerk": {
"shop_clerk_id": 8,
"shop_id": 1,
"real_name": "吴天宇",
"mobile": "17320038823",
"pwd": "625df02823082763d377dc21464e1ddb",
"status": {
"text": "店长",
"value": 20
},
"user_id": 6,
"applet_id": 1,
"last_login_datetime": "2023-01-11 18:11:46",
"create_time": "2022-06-14 18:56:41",
"update_time": "2023-01-11 18:11:46"
},
"user": {
"user_id": 26,
"user_type": 1,
"nickname": "刘小米",
"gender": "未知",
"country": "",
"province": "",
"city": "",
"phone": "15358092238",
"pay": "0.00",
"score": 0,
"converted": 0,
"v": 1,
"birthday": "",
"identity": {
"text": "工程造价部",
"value": 79,
"company_text": "工程造价部",
"company_value": 79
},
"details": {},
"usable": 0
}
}
}
}
返回参数说明
- 返回状态代码: 200
参数名 | 类型 | 说明 |
---|---|---|
detail.order_no | string | 订单编号 |
detail.source.value | int | 下单渠道;10.小程序;20.前台收银端 |
detail.order_mode | int | 业务类型;10:堂食;20.包厢;30.自取 |
detail.people | int | 人数 |
detail.message | string | 厨打备注 |
detail.server_message | string | 接待备注 |
detail.total_price | string | 总额 |
detail.activity_price | string | 活动价格 |
detail.ware_price | string | 打包费、餐具费 |
detail.pay_price | string | 待支付金额 |
detail.pay_status.value | int | 支付类型;10.待付款;20.已付款;30.后付款 |
detail.pay_mode | int | 支付方式 |
detail.transaction_id | string | 支付编号 |
detail.pay_time | int | 支付时间 |
detail.table.table_name | string | 桌台名称 |
detail.table.status.value | int | 桌台状态:10:空闲;20:已预订;30:待结账;40:待清台;50:锁定 |
detail.table.status.order_id | object | 订单ID |
detail.table.status.pay_price | string | 待支付金额 |
detail.table.consume | string | 最低消费 |
detail.table.ware_price | string | 打包费、餐具费 |
detail.table.status.time | int | 用时 |
detail.table.category_id.value | int | 餐桌类型; 0全部,2大厅;3包厢;5散台;6吧台;7宴会厅 |
detail.table.create_time | string | 创建时间 |
detail.butie | string | 补贴 |
detail.meal_id | int | 餐段,1早餐;2午餐;3晚餐;4夜宵 |
detail.goods.goods_name | string | 菜品名称 |
detail.goods.goods_attr | string | 菜品规格 |
detail.goods.total_num | string | 菜品数量 |
detail.goods.total_price | string | 菜品总价格 |
detail.goods.goods_price | string | 菜品价格 |
detail.clerk.real_name | string | 操作人 |
detail.clerk.mobile | string | 操作电话 |
detail.clerk.status.value | int | 操作身份 |
detail.user.nickname | string | 下单人姓名 |
detail.user.phone | string | 下单人电话 |
detail.user.identity.text | string | 下单人的部门名称 |
备注
-
支付途径: 0:微信, 1:余额(目前不用) 2:后付 3:现金 小程序端:6:一卡通 小程序 pc端:8 一卡通扫码,9:一卡通实体卡 支付宝:11 银联: 21 单位挂单:50 房间挂单:51
- 更多返回错误代码请看基本参数中的参数说明