简要描述:

  • 接口版本:

版本号 制定人 制定日期 修订日期
1.0.0 kevin 2026-01-27

请求URL:

请求方式:

  • POST

请求头:

参数名 是否必须 类型 说明
token string 凭证

请求参数:

参数名 是否必须 类型 说明
source string 1=pos 2=线上点餐 3=Ubereats 4=Foodpanda 5=自助點餐
store_id string 凭证
desk_id string 桌号 order_type=1
person_num string 大人人数 order_type=1
children_num string 小孩人数 order_type=1
is_in_tinyint string 是否在店 order_type=1
order_type string 订单类型【1=内用,2=外带】
pickup_time string 取货时间 order_type=2;2026-01-28 12:00
username string 取货人姓名 order_type=2
mobile string 联系电话 order_type=2
remark string 备注 order_type=2
is_need_tableware string 是否需要餐具【1=需要,2=不需要】
pay_method string 支付方式 Cash=现金 LinePay=LinePay Credit=信用卡
pay_type string ‘pc’, ‘public’, ‘small’, ‘app’, ‘h5’
unified_number string 统一编号
vehicle_id string 载具id
vehicle_code string 载具代码
no_login_tig string 无登录标识,h5没有登录必填
ids string 线上点餐-购物车部分id
pos_json.request_good_content_id string pos
pos_json.number string pos 数量
pos_json.remark string pos备注
pos_json.type string pos类型【1=元 2=折扣】
pos_json.rate string pos【100=100元,86=86折】
pos_json.price string pos 最后价格
pos_json.option_json.sub_options.attr_id string 品项ID[无关联商品]
pos_json.option_json.sub_options.option_id string 选项ID[无关联商品]
pos_json.option_json.attr_id string 商品层-品项ID[有关联商品]
pos_json.option_json.option_id string 商品层-选项ID[有关联商品]
pos_json.option_json.good_id string 商品层-商品ID[有关联商品]
pos_json.option_json.sub_options.attr_id string 商品关联的品项ID[有关联商品]
pos_json.option_json.sub_options.option_id string 商品关联的选项ID[有关联商品]

参数示例:

{
    "source":"5",
    "store_id":"2",
    "order_type":"1",
    "desk_id":"2",
    "person_num":"1",
    "children_num":"1",
    "is_in_tinyint":"1",
    "is_need_tableware":"1",
    "pay_method":"Cash",
    "pay_type":"app",
    "unified_number":"",
    "vehicle_id":"",
    "vehicle_code":"",
    "no_login_tig":"ff286caec2775898608ad41f9fa16631",
    "pos_json":[
        {
        "request_good_content_id":"26",
        "option_ids":"",
        "option_json": [
        {
            "attr_id": 11,
            "option_id": 41,
            "good_id": 6,
            "sub_options": [
                {
                "attr_id": 10,
                "option_id": 27
                },
                {
                "attr_id": 10,
                "option_id": 26
                }
            ]
        },
        {
            "sub_options": [
                {
                    "attr_id": 2,
                    "option_id": 3
                }
            ]
        }
    ],
        "number":1,
        "type":1,
        "rate":0,
        "price":1379
    }
    ]

}

返回示例:

正确时返回:

{
    "status": 200,
    "msg": "下单成功",
    "data": {
        "order_id": 1,
        "order_num": "202601272006085885311954",
        "get_order_num": "85311954",
        "pay_status": false,
        "order_ticket_url": "http://xxx.com/order.png",
        "item_order_num": "12312",
    },
    "other": []
}

错误时返回:

{
    "status": 0,
    "msg": "验证错误"
}

返回参数说明:

参数名 类型 说明
order_id string 订单id
order_num string 订单号
get_order_num string 取餐号
pay_status string false=未支付/下单成功
order_ticket_url string 订单小票图片路径
item_order_num string 选项订单号

备注:

作者:admin  创建时间:2026-07-08 14:25
最后编辑:admin  更新时间:2026-08-12 13:10
上一篇:
下一篇: