友好单位挂帐订单消费记录
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>友好单位挂帐订单消费记录接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>https://food.taihuyun.vip/api/foodcash.base/friendCompanyOrders?applet_id=1&shop_id=1&token=9ee02f4eca649e8c2ee711ebe8f2957a&id=1&page=2</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>GET</li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">applet_id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>应用程序ID</td>
</tr>
<tr>
<td style="text-align: left;">shop_id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>门店ID</td>
</tr>
<tr>
<td style="text-align: left;">token</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>用户身份验证的令牌</td>
</tr>
<tr>
<td style="text-align: left;">id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>单位的ID</td>
</tr>
<tr>
<td style="text-align: left;">page</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>页码</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
"code": 1,
"msg": "success",
"data": {
"total": 2,
"per_page": 15,
"current_page": 1,
"last_page": 1,
"data": [
{
"order_id": 66,
"order_no": "2023011449535410",
"source": {
"text": "前台收银端",
"value": 20
},
"order_mode": {
"text": "堂食",
"value": 10
},
"row_no": "",
"table_id": 18,
"people": 5,
"arrive_time": {
"text": "2023-01-14 11:34:41",
"value": 0
},
"flavor": "",
"message": "",
"server_message": "",
"total_price": "99.00",
"activity_price": "0.00",
"express_price": "0.00",
"pack_price": "0.00",
"ware_price": "0.00",
"divide_price": "0.00",
"pay_price": "99.00",
"pay_status": {
"text": "后付款",
"value": 30
},
"pay_mode": 50,
"transaction_id": "",
"pay_time": 1673667281,
"shop_status": {
"text": "已接单",
"value": 20
},
"shop_time": 1673667281,
"delivery_status": {
"text": "上餐完毕",
"value": 30
},
"delivery_time": 1673667334,
"receipt_status": {
"text": "已完成",
"value": 20
},
"receipt_time": 1673667334,
"order_status": {
"text": "已完成",
"value": 30
},
"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": 19,
"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": 54,
"order_type": 2,
"guadan_type": 1,
"guadan_id": "1",
"guadan_remark": "测试",
"guadan_order_id": "",
"order_team_id": 0,
"meal_id": 1,
"clerk_id": 3,
"create_time": "2023-01-14 11:34:41",
"update_time": "2023-01-14 11:35:34",
"user": {
"user_id": 19,
"user_type": 3,
"nickname": "金*3",
"gender": "未知",
"country": "",
"province": "",
"city": "",
"phone": "18742045357",
"pay": "0.00",
"score": 0,
"converted": 0,
"v": 0,
"birthday": "",
"identity": {
"text": "游客",
"value": 0,
"company_text": "无",
"company_value": 0
},
"details": {},
"usable": 0
}
}
]
}
}</code></pre>
<h5>返回参数说明</h5>
<ul>
<li>返回状态代码: 200</li>
</ul>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">data.order_no</td>
<td style="text-align: left;">string</td>
<td>订单号</td>
</tr>
<tr>
<td style="text-align: left;">data.order_mode.value</td>
<td style="text-align: left;">int</td>
<td>订单类型;10.堂食;20.包厢;30.自取</td>
</tr>
<tr>
<td style="text-align: left;">data.pay_price</td>
<td style="text-align: left;">string</td>
<td>支付金额</td>
</tr>
<tr>
<td style="text-align: left;">data.butie</td>
<td style="text-align: left;">string</td>
<td>补贴</td>
</tr>
<tr>
<td style="text-align: left;">data.ticket_money</td>
<td style="text-align: left;">string</td>
<td>抵扣金额</td>
</tr>
<tr>
<td style="text-align: left;">data.ticket_type</td>
<td style="text-align: left;">string</td>
<td>是否使用卡券</td>
</tr>
<tr>
<td style="text-align: left;">data.recent_pay</td>
<td style="text-align: left;">string</td>
<td>消费金额</td>
</tr>
<tr>
<td style="text-align: left;">data.create_type</td>
<td style="text-align: left;">string</td>
<td>下单类型</td>
</tr>
<tr>
<td style="text-align: left;">data.create_time</td>
<td style="text-align: left;">string</td>
<td>下单时间</td>
</tr>
<tr>
<td style="text-align: left;">total</td>
<td style="text-align: left;">int</td>
<td>总页数</td>
</tr>
<tr>
<td style="text-align: left;">per_page</td>
<td style="text-align: left;">int</td>
<td>一页有几条</td>
</tr>
<tr>
<td style="text-align: left;">current_page</td>
<td style="text-align: left;">int</td>
<td>当前页码</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看基本参数中的参数说明</li>
</ul>