简要描述:
| 版本号 |
制定人 |
制定日期 |
修订日期 |
| 1.0.0 |
kevin |
2026-01-27 |
|
请求URL:
请求方式:
请求头:
| 参数名 |
是否必须 |
类型 |
说明 |
| token |
是 |
string |
凭证 |
请求参数:
| 参数名 |
是否必须 |
类型 |
说明 |
| source |
是 |
string |
1=pos 2=线上点餐 3=Ubereats 4=Foodpanda 5=自助點餐 |
| order_id |
是 |
string |
订单id |
| no_login_tig |
否 |
string |
无登录标识,h5没有登录必填 |
返回示例:
正确时返回:
{
"status": 200,
"msg": "ok",
"data": {
"order_id": 1,
"order_num": "202601272006085885311954",
"order_type": 2,
"pickup_time": "2026-01-28 12:00:00",
"uid": 4,
"store_id": 2,
"mobile": "13113690000",
"username": "kevin",
"pay_method": "Cash",
"pay_type": "h5",
"remark": "",
"paid_at": "",
"expire_at": "2026-01-27 20:21:08",
"close_at": "",
"shipping_fee": 0,
"packaging_fee": 0,
"pay_order_amount": 12990,
"total_amount": 12990,
"refund_status": 0,
"refund_order_num": "",
"is_need_tableware": 1,
"created_at": "2026-01-27 20:06:08",
"status": 0,
"status_msg": "待支付",
"order_ticket_url": "http://ww.com/1.png",
"no_pay_order_amount": 1120,
"goods_list": [
{
"order_id": 110,
"good_id": 2,
"good_sku_ids": "",
"number": 1,
"good_name": "酸柑水",
"cover": "http://pos.com/uploads/cover/2026/01/22/6971de8747f66.jpg",
"remark": "",
"type": 1,
"rate": 0,
"price": 60,
"order_num": "260804202012171192",
"status": 2,
"order_count": 1,
"take_order_status": 2,
"item_option": [],
"item_id": 122
},
{
"order_id": 110,
"good_id": 4,
"good_sku_ids": "41,28",
"number": 1,
"good_name": "甘榜雞(全雞)",
"cover": "http://pos.com/uploads/cover/2026/01/22/69720285691e4.jpg",
"remark": "",
"type": 1,
"rate": 0,
"price": 1000,
"order_num": "260804202012171192",
"status": 2,
"order_count": 1,
"take_order_status": 2,
"item_option": [
{
"number": 1,
"price": 60,
"option_name": "高丽菜苗",
"is_good": 1,
"children": [
{
"number": 1,
"price": 0,
"option_name": "燙軟",
"is_good": 2
}
]
}
],
"item_id": 123
}
]
},
"other": []
}
错误时返回:
{
"status": 0,
"msg": "验证错误"
}
返回参数说明:
| 参数名 |
类型 |
说明 |
| order_id |
string |
订单id |
| order_num |
string |
订单号 |
| order_type |
string |
订单类型【1=内用,2=外带】 |
| order_type_msg |
string |
订单类型信息 |
| pickup_time |
string |
取货时间 |
| store_id |
string |
门店id |
| mobile |
string |
类型电话 |
| username |
string |
取货人名称 |
| remark |
string |
备注 |
| created_at |
string |
下单时间 |
| paid_at |
string |
支付时间 |
| expire_at |
string |
过期时间 |
| close_at |
string |
关闭时间 |
| shipping_fee |
string |
运费 |
| packaging_fee |
string |
打包费 |
| total_amount |
string |
总价格 |
| status |
string |
状态 |
| status_msg |
string |
状态信息 |
| goods_num |
string |
商品数量 |
| desk_name |
string |
桌号名称 |
| is_need_tableware |
string |
是否需要餐具【1=需要,2=不需要】 |
| pay_method |
string |
支付方式 ‘Cash’=现金, ‘LinePay’=LinePay, ‘Credit’=信用卡, |
| pay_method_msg |
string |
支付方式信息 |
| pay_type |
string |
请求类型 app=APP端,public=公众号,small=小程序, pc=电脑端 h5=h5 |
| refund_status |
string |
退款状态 |
| refund_order_num |
string |
退款订单号 |
| good_info |
string |
商品下单前信息 |
| store_name |
string |
门店名称 |
| store_logo |
string |
门店logo |
| store_start_time |
string |
门店营业时间 |
| store_mobile |
string |
门店电话 |
| store_address |
string |
门店地址 |
| user_avatar |
string |
用户头像 |
| order_ticket_url |
string |
订单商品小票 |
| no_pay_order_amount |
string |
未支付金额 |
| goods_list |
array |
订单商品明细 |
goods_list返回参数说明:
| 参数名 |
类型 |
说明 |
| order_id |
string |
订单id |
| good_id |
string |
商品id |
| good_sku_ids |
string |
商品选项ids |
| number |
string |
数量 |
| good_name |
string |
商品名称 |
| cover |
string |
商品方面 |
| remark |
string |
标准 |
| type |
string |
类型【1=元 2=折扣】 |
| rate |
string |
折扣元/折扣费率 |
| price |
string |
商品价格 |
| order_num |
string |
选项订单号 |
| status |
string |
状态【1=支付成功 2=未支付】 |
| order_count |
string |
下单次数 |
| take_order_status |
string |
接单【1=已接单 2=待接单】 |
| item_option.number |
string |
数量 |
| item_option.price |
string |
价格 |
| item_option.option_name |
string |
选项商品 |
| item_option.is_good |
string |
类型 1=商品,2=选项 |
| item_option.children.number |
string |
请数量求商品凭证 |
| item_option.children.price |
string |
请求商品凭证 |
| item_option.children.option_name |
string |
请求商品凭证 |
| item_option.children.is_good |
string |
类型 1=商品,2=选项 |
备注:
作者:admin 创建时间:2026-01-27 20:32
最后编辑:admin 更新时间:2026-08-12 13:10