简要描述:

  • 用户已结账订单列表

订单列表请求:

GET/&route=plugin.store-scan-code-meals.frontend.order.list.index

请求参数说明:

参数名 类型 是否必需 说明
page int 分页 - 页码
order_sn string 按订单编号搜索

订单详情请求:

GET/&route=plugin.store-scan-code-meals.frontend.order.detail

请求参数说明:

参数名 类型 是否必需 说明
order_id int 订单ID

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "list",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 993,
                "order_sn": "SN250819151973EC13",
                "price": "848.00",
                "goods_price": "836.00",
                "goods_total": 10,
                "status": 3,
                "create_time": "2025-08-19 15:19:35",
                "finish_time": "2025-08-19 15:19:37",
                "pay_time": "2025-08-19 15:19:36",
                "send_time": "2025-08-19 15:19:36",
                "cancel_pay_time": "1970-01-01 08:00:00",
                "cancel_send_time": "1970-01-01 08:00:00",
                "dispatch_type_id": 0,
                "dispatch_price": "0.00",
                "discount_price": "0.00",
                "pay_type_id": 8,
                "order_goods_price": "836.00",
                "deduction_price": "0.00",
                "refund_id": 32,
                "is_plugin": 42,
                "change_price": "0.00",
                "change_dispatch_price": "0.00",
                "comment_status": 0,
                "order_pay_id": "58482",
                "plugin_id": 32,
                "is_virtual": 1,
                "mark": "",
                "is_pending": 0,
                "note": null,
                "cost_amount": "844.00",
                "shop_name": "门店-顺通石化测试站",
                "no_refund": 0,
                "need_address": 1,
                "invoice_type": null,
                "rise_type": null,
                "collect_name": null,
                "company_number": null,
                "invoice": null,
                "auto_receipt": 0,
                "fee_amount": "12.00",
                "service_fee_amount": "0.00",
                "is_all_send_goods": 0,
                "close_reason": null,
                "vip_order_goods_price": "836.00",
                "initial_freight": "0.00",
                "tax_fee": "0.00",
                "created_type": 0,
                "dispatch_type_name": "",
                "status_name": "交易完成",
                "pay_type_name": "现金",
                "button_models": [
                    {
                        "name": "售后中",
                        "value": 18,
                        "api": "refund.detail",
                        "type": ""
                    },
                    {
                        "name": "删除订单",
                        "value": 12,
                        "api": "order.operation.delete",
                        "type": ""
                    }
                ],
                "process": [],
                "has_one_pay_type": {
                    "id": 8,
                    "name": "现金",
                    "plugin_id": 0,
                    "code": "cashPay",
                    "type": 1,
                    "unit": "元",
                    "updated_at": "2019-04-15 12:07:20",
                    "created_at": null,
                    "deleted_at": null,
                    "setting_key": "",
                    "need_password": 0,
                    "group_id": 5
                },
                "store_meals_order": {
                    "id": 1,
                    "uniacid": 6,
                    "store_id": 8,
                    "table_id": 3,
                    "order_id": 993,
                    "creator_id": 2455,
                    "buy_way": "2",
                    "payer_id": 2455,
                    "people_num": 3,
                    "tea_table_fee": "6.00",
                    "tableware_fee": "6.00",
                    "other_info": null,
                    "status": 5,
                    "created_at": "2025-08-08 09:58:28",
                    "status_name": "结账"
                },
            }
        ],
        "last_page": 1,
        "per_page": 15,
        "total": 1
    }
}

返回参数说明:

参数名 类型 说明
id int 订单 ID
order_sn string 订单号
price int 订单金额(实际支付)
goods_price int 商品金额
status_name string 订单状态
button_models array 按钮
button_models['name'] string 按钮文字
button_models['api'] string 按钮关联的 API 路径
button_models['value'] int 显示在 HTML 表单的 Value 值
has_many_order_goods array 该订单下的商品列表
has_many_order_goods['goods_id'] int 商品 ID
has_many_order_goods['goods_price'] int 商品价格
has_many_order_goods['total'] int 订单中该商品的数量
has_many_order_goods['price'] int 实际支付的该商品的总价
has_many_order_goods['title'] string 商品名称
has_many_order_goods['thumb'] string 商品图片
address.address string 订单地址
address.mobile string 收货人电话
address.realname string 收货人姓名
dispatch_type_name string 配方方式名称
shop_name string 店铺名称
plugin_id int 订单类型 0自营 92供应商 31、32门店
is_all_send_goods int 订单已发货判断这个 0 正常全部发货 1部分发货 2多包裹全部发货