关于我们

饿了么开放平台商品结构化套餐场景接入方案

发布时间:2025-05-28

 

个人零费用代理店+,日收入3000+,可兼职做

一、文档说明

本文档适用于希望对饿了么店铺中的商品进行管理的第三方开发者或自研商家。文档详细的介绍了已接入商品管理的应用如何迭代升级为支持结构化套餐的方案,之前未接入商品管理能力的应用也可以根据此方案接入商品管理能力。

二、背景说明

以下几个典型场景中,由于平台现有接口能力只支持创建单品,不支持创建结构化套餐,会导致以下场景体验不佳:

品牌在商家版上创建结构化套餐后,无法映射到ERP或者自研系统中,只能手动新建品

使用商家版创建半结构化套餐后,使用第三方打印机无法打印出套餐明细

使用ERP或者自研系统的商家,无法创建结构化套餐,只能使用文本套餐或者基于配料去创建套餐

三、改造范围

以下范围内的应用需配合平台完成能力升级改造并上线,如至截止时间(2023.3.15)未完成改造并上线,影响较大的平台将按照违规管理规范进行处罚

不在下述改造范围内的应用可以根据自身业务特性选择是否接入

要改造的应用业务描述 对应接口/消息推送 改造备注
有增改商品能力的应用(发品) eleme.product.item.createItem、eleme.product.item.batchCreateItems、eleme.product.item.updateItem、eleme.product.item.batchUpdateItems 改造后商家可以创建结构化套餐
有订单处理能力的应用(订单履约、小票打印、) eleme.order.confirmOrderLite、eleme.order.getOrder、eleme.order.mgetOrders、type=217 改造后商家能查看、处理包含结构化套餐的订单
有退款相关能力的应用(逆向能力) eleme.order.refundPart 改造后商家能查看、处理包含结构化套餐的逆向订单

 

四、对接优势

4.1 从消费者角度:

帮助顾客快速下单: 缩短用户的选购时效,减少下单时的犹豫,提升下单转化率;

让顾客感觉便宜:套餐有一定的优惠力度,用户普遍认知中,套餐商品比单独售卖的商品更经济实惠,性价比更高;

增加产品比价难度:很多顾客喜爱同款产品进行多家比价,但设定套餐后多数顾客将失去比价的心理。

4.2 对商户价值:

提升客单价和毛利:顾客对单独商品的价格敏感度比较高,套餐组合涵盖主食、小吃、饮料等多种餐食,只有一个整体价格,菜品丰富,顾客会感觉实惠,通过不同毛利的产品进行拼搭, 可以有效控制毛利率。

套餐其实就是一种捆绑销售模式,顾客在选择套餐时看到的是整体价格,对单个商品价格的敏感度会降低,从而达到提高客单价的目的,而增加客单价,那利润也随之越高。而高毛利+低毛利的套餐设置方式,能分摊成本,平衡毛利率。

有很多商家堂食的价格是很固定的,所以在外卖平台上就不敢做太大的活动,怕对堂食的生意造成影响。而且同样的菜品也不能先提个价再做活动,所以建套餐可以成为一个间接涨价的方法,通过建套餐的形式做比较大的满减或其他促销,且不会对原有的堂食产品造成明显的影响。

提高转化率:套餐可以有效缩短顾客下单决策时间,迎合“宅经济” 的“懒人思维”,总体性价高,且能提高复购率。

顾客下单时间越短,成交概率越高,通过合理设置套餐,能一次性满足客户需求,减少顾客决策时间,让顾客更快速的下单。

让顾客有占便宜的感觉,玲琅满目的商品,套餐的出现会让顾客潜意识觉得套餐价格会比单品的价格低很多更加合适,顾客更愿意通过套餐下单。

用合理的套餐来报名平台活动,相比普通单品和不合理套餐来说,转化率有明显的差距。

带动新品销量:爆款老品+新品的组合可以促进顾客尝试新品,短时间提升新品销量。

提高出餐效率:套餐具有固定性,店铺更易备餐,减少门店出餐压力。

提升店铺流量:客单价增长的同时,门店优质高售价爆品从而产生,此阶段更易获取平台给予的自然流量。

提升曝光:

平台专门的套餐流量入口。通过设计套餐,而且该套餐符合平台相关的抓取规则,就能被平台的套餐流量入口抓取,从而能占据该流量入口,获得更多流量。

平台还会不定时的针对早中晚等不同时段的活动招商,报名后即可尊享站内外亿万流量曝光,不花钱就可以免费享受。

子品与套餐可以共享销量。可以自由搭配店内商品,套餐售卖后,单品销量也会增加,套餐内商品下架导致套餐无法售卖时,套餐会自动下架。

五、名词解释

商品(单品) 一个或多个规格、属性和配料的商品集合,比如咖啡拿铁
配料 配料也是一种商品,因此是有价格的,但是不能单独售卖,是为了主商品的补充,比如奶茶中的珍珠、椰果
属性 商品可以有多层属性,但是不决定价格和库存,每个SKU都有对应的属性,例如:热饮、常温
套餐 套餐相当于店内商品的组合,套餐中的商品选择具体到规格,套餐价格由商品价格决定。套餐商品只有一个规格,且没有规格名称,不支持本身有属性和配料
套餐分组 即套餐下的具体分组(类似配料组),如主食组、饮料组等
固定分组 即商户已经确定好商品以及商品数量的分组,用户不可在C端自由选择
可选分组 商户只设置此分组下包含的商品,由用户在C端具体选择哪些子品进行购买,可设置子商品是否必选
固定套餐 由一个固定分组组成的套餐,用户不可选择
可选套餐 由多个固定分组或可选分组组成的套餐,至少有一个可选套餐
基础价模式 套餐设置基础价,子品可以设置加价,子品不设置加价的情况下,认为是不加价即0。最终由套餐价格+子品加价确定最终的金额
子品价模式 套餐本身不设置价格,最终价格由子商品原价组成,子商品也可以设置在套餐下的售卖价

 

六、套餐发展史

套餐主要分为三类:文本套餐,半结构化套餐,结构化套餐,配料能力组套餐是通过配料能力变相实现套餐功能。

6.1 文本套餐

定义:新建是使用创建普通商品链路,而非“新建套餐”,且不需要录入套餐子品内容,等同于一个普通的商品。文本套餐支持属性&配料的配置。可选套餐能力则是基于“属性能力” 和“配料能力”(配料能力用于加价)。

开放平台是否支持:是。本质是普通品,一般在name字段上直接体现套餐包含的内容,数据示例:

foodType=0

name:单人汉堡套餐-鸡腿堡-大可-小薯

originalName:单人汉堡套餐-鸡腿堡-大可-小薯

mealPreparation:

6.2 半结构化套餐

定义:新建是使用创建普通商品链路,而非“新建套餐”,且需要录入套餐子品内容(此处的子品为文本信息),等同于一个普通的商品。半结构化套餐支持属性&配料的配置(目前已经迁移到商家版后台的“新建套餐”-“固定搭配套餐”-“手动录入商品”)。

开放平台是否支持:否,不支持创建和更新。本质是普通品,在订单上有mealPreparation字段描述套餐包含的内容,数据示例:

foodType=0

name:单人汉堡套餐

originalName:单人汉堡套餐

mealPreparation:[鸡腿堡 + 大可 + 小薯]

   

6.3 结构化套餐(旧)

定义:新建是通过“新建套餐”入口,且套餐规格下挂载的子品均为店内的单品。套餐类型可以设置为:固定套餐、分组可选套餐(连锁店铺无此能力,单店的旧版套餐能力,已下线)。
注意:

结构化套餐本身不支持属性&配料的配置

开放平台是否支持:否

foodType=7
     

6.4 配料能力组套餐(搭售)

定义:新建是使用创建普通商品链路,而非“新建套餐”,通过配料和属性字段添加套餐子品,可实施变价能力;

开放平台是否支持:是

6.5 结构化套餐(新,对应本次改造内容)

定义:新建是通过“新建套餐”入口,且套餐规格下挂载的子品均为店内的单品。套餐类型可以设置为:固定搭配套餐、分组可选套餐,套餐内容可以设置为:手动录入商品、选择店内商品。
注意:

结构化套餐本身不支持属性&配料的配置(比如牛肉汉堡+可乐套餐,不支持配置属性&配料,但是牛肉汉堡作为套餐的子品,可以支持不同的配料和属性)。

开放平台是否支持:是。本质是套餐,数据示例:

foodType=7

itemType= PACKAGE_V3

name:单人汉堡套餐[鸡腿堡/大可/小薯]

originalName:单人汉堡套餐

mealPreparation:[鸡腿堡/大可/小薯]

七、新旧方案能力对比

7.1 改造前

OpenAPI 无法创建结构化套餐,只能创建普通商品,商家在商家版(napos)创建套餐那商品后,三方系统无法处理;

7.2 改造后

一期(已发布):支持 OpenAPI 创建结构化套餐、套餐子品销量打通,即套餐销量+1,子品销量+1(本质是复用配料能力,通过挂载到某个商品下面当做子品)

二期(已发布):套餐中的子品支持三层结构,也就是套餐子品支持配料和属性。支持三层结构的结构化套餐示意图如下,以豪华汉堡套餐为例进行说明:
当前:两层。套餐-子品
对接后:三层。套餐-子品-配料/属性

具体示例:
一层:主食分组、小食分组、饮料分组
二层:鸡腿汉堡、薯条、可乐
三层:鸡腿汉堡加生菜、中薯条、常温可乐

八、涉及接口及变更

新增接口权限申请路径:管理中心-我的应用-权限升级-店铺综合-菜品工具

SDK依赖版本:Java SDK ≥ V1.30.51

口名称 更新类别 更新内容 备注
eleme.product.item.batchGetShopCanSupportAbility 新增 新增接口 用于打印前判断该店铺是否支持三层结构套餐。supportCode不仅有结构化套餐,也会有搭售,随着后续的迭代,值也会增多。
eleme.product.item.createIngredientGroup、eleme.product.item.batchCreateIngredientGroups 更新 入参新增 selectType、ingredientSkus.quantity、ingredientSkus.customPriceInfo 暂无
eleme.product.item.createItem 更新 入参新增:specs.priceType、specs.packageType、specs.groupRelations itemType为已有字段,增加枚举值:PACKAGE_V3;setMeal为已有字段,结构化套餐为必填字段;
eleme.order.getOrder、eleme.order.mgetOrders、eleme.order.getAllOrders 更新 出参新增:groups.items.originalName、groups.items. mealPreparation、groups.items.foodGroup .subFoodGroupItem 暂无
type=217 更新 新增:groups.items.originalName、groups.items.mealPreparation、groups.items.foodGroup.subFoodGroupItem 暂无

 

九、涉及推送消息及变更

9.1 需要兼容
type = 217,会在groups.items下的每一项下新增如下两个字段:

参数名称 参数类型 参数描述
originalName String 原始商品名称
mealPreparation String 备餐描述(当商品为半结构化套餐和结构化套餐会有值,拼接规则:[属性按照+号拼接][半结构化套餐包含的商品按照+号拼接][结构化套餐包含的商品按照/号拼接])
foodGroup.subFoodGroupItem List 套餐子商品子项。注:结构与套餐子商品保持一致(支持三层结构能力的字段)

 

十、一句话概述

发品和打印需要注意数据结构的变更以及兼容;

注意菜品库存管理,套餐商品则关注子品的库存,涉及下单后的库存扣减以及订单取消后的库存回补;

后续只需要消费 originname 和 mealPreparation 即可;

foodType = 0(文本套餐、半结构化套餐),name不一定等于originName ,打印等展示可以用: originName+mealPreparation

foodType = 7(新结构化套餐),name = originname+mealPreparation,打印等展示可以用: originName+mealPreparation

有两种方案可以支持结构化套餐, 建议是使用 方案一 兼容存量数据(如有),然后使用 方案二 去创建增量菜品,最后全部迁移到 方案二:

方案一:分步骤创建套餐商品,适用于有对接过搭售场景的应用,使用配料组模型代替结构化套餐模型;

方案二:推荐。直接创建套餐商品,适用于所有场景;

结构化套餐对接完成后,小票中的套餐明细商品打印设置需设置为默认开启;

十一、开发联调

11.1 完成时间

请务必于2024年3月15日前改造完毕,如逾期未完成改造,影响较大的平台将按照违规管理规范进行处罚。

11.2 灰度策略

沙箱门店默认加入白名单内,现在即可进行功能测试。商家版-商品列表-新建套餐-分组可选套餐,如果右上角有【切换定价方式】则表示可以创建新版本套餐,已在灰度中。

十二、验收标准

整体流程:保障宝申请技术支持 -> 开发者进入开发阶段 -> 开发完成 -> 联系保障宝 daily 进行平台验收 -> 验收通过 -> 次月激励发放(如有)

12.1 申请技术支持

在保障宝的「集成项目」入口进行提交,选择商品场景-商品结构化套餐场景接入,提交后如需要技术支持,提供【对接ID】给保障宝daily后,会有专人拉群进行技术支持;

平台验收通过后,生产门店方可使用新版本结构化套餐,操作方法:集成项目使用说明。

12.2 验收所需信息

需要验收时,联系保障宝daily提供集成项目对接工单 ID + 接口请求 requestId,操作方法:集成项目使用说明。

有增改商品能力的应用(发品)能力的应用:需要提供创建、更新固定搭配套餐、分组可选套餐接口请求的 requestId;

有订单处理能力的应用(订单履约、小票打印)能力的应用: 需要提供接单,查询订单和打印出的小票图片(小票打印内容参考【15.1 小票打印报文】);

有退款相关能力的应用(逆向能力)能力的应用: 需要提供发起退款接口请求的 requestId;

十三、注意事项

套餐子品限制:

一旦某个子品被包含在套餐内,那么这个子品就不能被删除。会返回:要覆盖/删除的[“xx”]属于套餐子商品,如要覆盖/删除,请先删除套餐或者将商品从套餐中移除

 

十四、处理流程时序图

文字版

方案一:分步骤创建套餐商品(适用于有对接过搭售场景的应用)

开发者调用 eleme.product.item.batchGetShopCanSupportAbility 接口向开放平台发送请求,判断店铺是否支持套餐打印(如果已经确认支持可以省略这一步);

开放平台返回支持结果,开发者做后续判断;

如果支持的话,开发者调用eleme.product.item.createIngredientGroup 接口创建套餐组,
也就是复用搭售中创建配料组的接口;

套餐组下的子商品需要提前创建,子商品需要为店内的普通商品;

新增分组选择方式(selectType,FIXED-固定分组;CUSTOM-可选分组,套餐场景默认可选分组)字段,当为套餐时必填;

创建成功,接口返回套餐组信息;

开发者调用 eleme.product.item.createItem 接口创建套餐商品

将商品类型修改为套餐(itemType = PACKAGE_V3);

新增价格模式(specs.priceType,BASE_PRICE:基础价模式;SUB_PRICE:子品价模式;固定套餐强制赋值为BASE_PRICE;可选套餐默认为SUB_PRICE)字段,默认为子品价模式,与含配料商品价格计算逻辑一致;

新增套餐类型(specs.packageType,FIXED:固定套餐;GROUP_CHOOSE:可选套餐)字段,默认为可选套餐;

另外套餐商品只能有一个规格;

创建成功,接口返回套餐信息;

开发者调用 eleme.product.item.bindSkuIngredientGroups 接口绑定套餐组与套餐商品至规格维度;

创建结构化套餐成功。

方案二:直接创建套餐商品(推荐)

开发者调用 eleme.product.item.batchGetShopCanSupportAbility 接口向开放平台发送请求,判断店铺是否支持套餐打印(如果已经确认支持可以省略这一步);

开放平台返回支持结果,开发者做后续判断;

如果支持的话,开发者调用 eleme.product.item.createItem 接口创建套餐商品

将商品类型修改为套餐(itemType= PACKAGE_V3);

将套餐组信息写入 specs.groupRelations 字段;

其余字段同上;

创建结构化套餐成功。

十五、结构体示例

15.1 小票打印模拟报文与样式参考

type=217消息

{ "signature": "C90F62CBC99307DD28B94C2166D41FB7", "requestId": "6110000054457509021", "appId": 45618821, "shopId": 1184782337, "type": 217, "message": "{\"address\":\"石排湾郊野公园301\",\"book\":false,\"consignee\":\"测**\",\"consigneePhones\":[\"114****6198\"],\"createdAt\":\"2024-01-31T14:48:25\",\"daySn\":2,\"deliverTime\":null,\"deliveryGeo\":\"113.562928,22.123025\",\"deliveryPackageFee\":5.0,\"deliveryProductId\":0,\"description\":\"依据餐量提供餐具\",\"downgraded\":false,\"extraJson\":\"{\\\"originalDeliverFee\\\":\\\"2.0\\\",\\\"deliveryActivityFee\\\":\\\"0.0\\\"}\",\"fulfillServiceFee\":0.0,\"groups\":[{\"items\":[{\"activities\":[],\"additions\":[],\"attributes\":[],\"barCode\":\"\",\"categoryId\":1,\"couponIds\":[],\"coupons\":[],\"extendCode\":\"\",\"foodGroup\":[[{\"attrs\":null,\"groupId\":150000384528701154,\"id\":2800704146,\"name\":\"汉堡\",\"newSpecs\":[],\"quantity\":1.0,\"skuId\":\"100001154483818210\"}],[{\"attrs\":null,\"groupId\":150000384528703202,\"id\":2800392325,\"name\":\"可乐\",\"newSpecs\":[],\"quantity\":1.0,\"skuId\":\"100001154159402722\"}],[{\"attrs\":null,\"groupId\":150000384528702178,\"id\":2800600376,\"name\":\"薯条-大份\",\"newSpecs\":[{\"extCode\":null,\"name\":\"规格\",\"value\":\"大份\"}],\"quantity\":2.0,\"skuId\":\"100001154377557730\"},{\"attrs\":null,\"groupId\":150000384528702178,\"id\":2800431977,\"name\":\"鸡块\",\"newSpecs\":[],\"quantity\":1.0,\"skuId\":\"100001154205107938\"}]],\"foodType\":7,\"id\":2803219279,\"ingredients\":[],\"mealPreparation\":\"[汉堡/可乐/薯条-大份x2/鸡块]\",\"name\":\"新版结构化套餐-分组可选-子品分别定价[汉堡/可乐/薯条-大份x2/鸡块]\",\"newSpecs\":[],\"originalName\":\"新版结构化套餐-分组可选-子品分别定价\",\"price\":14.0,\"quantity\":1,\"shopPrice\":0.0,\"skuId\":100001157059314402,\"textPackage\":null,\"total\":14.0,\"uniqueId\":\"328660474-734d-4fd0-a464-c0be8def92f3\",\"userPrice\":0.0,\"vfoodId\":2362608798,\"weight\":1.0},{\"activities\":[],\"additions\":[],\"attributes\":[],\"barCode\":\"\",\"categoryId\":1,\"couponIds\":[],\"coupons\":[],\"extendCode\":\"\",\"foodGroup\":[[{\"attrs\":null,\"groupId\":150000384681141986,\"id\":2800600376,\"name\":\"薯条-大份\",\"newSpecs\":[{\"extCode\":null,\"name\":\"规格\",\"value\":\"大份\"}],\"quantity\":1.0,\"skuId\":\"100001154377557730\"},{\"attrs\":null,\"groupId\":150000384681141986,\"id\":2800288709,\"name\":\"雪碧\",\"newSpecs\":[],\"quantity\":1.0,\"skuId\":\"100001154058410722\"},{\"attrs\":null,\"groupId\":150000384681141986,\"id\":2800704146,\"name\":\"汉堡\",\"newSpecs\":[],\"quantity\":1.0,\"skuId\":\"100001154483818210\"}]],\"foodType\":7,\"id\":2803100452,\"ingredients\":[],\"mealPreparation\":\"[薯条-大份/雪碧/汉堡]\",\"name\":\"新版结构化套餐-固定搭配[薯条-大份/雪碧/汉堡]\",\"newSpecs\":[],\"originalName\":\"新版结构化套餐-固定搭配\",\"price\":17.0,\"quantity\":1,\"shopPrice\":0.0,\"skuId\":100001156937635554,\"textPackage\":null,\"total\":17.0,\"uniqueId\":\"10f1b72af-8497-4081-9d0a-c44fd8428392\",\"userPrice\":0.0,\"vfoodId\":2362817458,\"weight\":1.0},{\"activities\":[],\"additions\":[],\"attributes\":[],\"barCode\":\"\",\"categoryId\":1,\"couponIds\":[],\"coupons\":[],\"extendCode\":\"\",\"foodGroup\":null,\"foodType\":0,\"id\":2808268833,\"ingredients\":[],\"mealPreparation\":\"[汉堡+可乐+炸鸡腿]\",\"name\":\"半结构化套餐- 固定搭配-手动录入商品\",\"newSpecs\":[],\"originalName\":\"半结构化套餐- 固定搭配-手动录入商品\",\"price\":15.0,\"quantity\":1,\"shopPrice\":0.0,\"skuId\":100001162224939746,\"textPackage\":\"{\\\"suitablyNum\\\":1,\\\"subItemNames\\\":[\\\"汉堡\\\",\\\"可乐\\\",\\\"炸鸡腿\\\"]}\",\"total\":15.0,\"uniqueId\":\"009ec8a8f-642e-4e84-b0cd-cad919d44f48\",\"userPrice\":0.0,\"vfoodId\":2365538515,\"weight\":1.0},{\"activities\":[],\"additions\":[],\"attributes\":[],\"barCode\":\"\",\"categoryId\":1,\"couponIds\":[],\"coupons\":[],\"extendCode\":\"\",\"foodGroup\":null,\"foodType\":0,\"id\":2807983504,\"ingredients\":[],\"mealPreparation\":\"\",\"name\":\"文本套餐-普通商品\",\"newSpecs\":[],\"originalName\":\"文本套餐-普通商品\",\"price\":10.0,\"quantity\":1,\"shopPrice\":0.0,\"skuId\":100001161937880802,\"textPackage\":null,\"total\":10.0,\"uniqueId\":\"493294d79-a336-4c47-a5ea-b5ee09214086\",\"userPrice\":0.0,\"vfoodId\":2365833271,\"weight\":500.0},{\"activities\":[],\"additions\":[],\"attributes\":[],\"barCode\":\"\",\"categoryId\":1,\"couponIds\":[],\"coupons\":[],\"extendCode\":\"\",\"foodGroup\":null,\"foodType\":3,\"id\":2784341089,\"ingredients\":[],\"mealPreparation\":\"\",\"name\":\"荷包蛋\",\"newSpecs\":[],\"originalName\":\"荷包蛋\",\"price\":1.0,\"quantity\":1,\"shopPrice\":0.0,\"skuId\":100001137728039650,\"textPackage\":null,\"total\":1.0,\"uniqueId\":\"51cfa390a-87a6-42dc-bdff-ff3595e63b07\",\"userPrice\":0.0,\"vfoodId\":2352228876,\"weight\":1.0},{\"activities\":[],\"additions\":[],\"attributes\":[],\"barCode\":\"\",\"categoryId\":1,\"couponIds\":[],\"coupons\":[],\"extendCode\":\"\",\"foodGroup\":null,\"foodType\":3,\"id\":2784311157,\"ingredients\":[],\"mealPreparation\":\"\",\"name\":\"狮子头\",\"newSpecs\":[],\"originalName\":\"狮子头\",\"price\":5.0,\"quantity\":1,\"shopPrice\":0.0,\"skuId\":100001137692286690,\"textPackage\":null,\"total\":5.0,\"uniqueId\":\"5b11250cc-7b2e-479a-bb17-93a8c58e4d64\",\"userPrice\":0.0,\"vfoodId\":2352194041,\"weight\":1.0},{\"activities\":[],\"additions\":[],\"attributes\":[],\"barCode\":\"\",\"categoryId\":1,\"couponIds\":[],\"coupons\":[],\"extendCode\":\"\",\"foodGroup\":null,\"foodType\":3,\"id\":2784281409,\"ingredients\":[],\"mealPreparation\":\"\",\"name\":\"鸡腿\",\"newSpecs\":[],\"originalName\":\"鸡腿\",\"price\":2.0,\"quantity\":1,\"shopPrice\":0.0,\"skuId\":100001137666935522,\"textPackage\":null,\"total\":2.0,\"uniqueId\":\"5d5113881-de60-4d4d-9bd3-de34e031181e\",\"userPrice\":0.0,\"vfoodId\":2352463168,\"weight\":1.0},{\"activities\":[],\"additions\":[],\"attributes\":[],\"barCode\":\"\",\"categoryId\":1,\"couponIds\":[],\"coupons\":[],\"extendCode\":\"\",\"foodGroup\":null,\"foodType\":3,\"id\":2784281409,\"ingredients\":[],\"mealPreparation\":\"\",\"name\":\"鸡腿\",\"newSpecs\":[],\"originalName\":\"鸡腿\",\"price\":2.0,\"quantity\":1,\"shopPrice\":0.0,\"skuId\":100001137666935522,\"textPackage\":null,\"total\":2.0,\"uniqueId\":\"6875c3b3d-5c74-4973-afd1-8062ac4a3c2e\",\"userPrice\":0.0,\"vfoodId\":2352463168,\"weight\":1.0},{\"activities\":[],\"additions\":[],\"attributes\":[],\"barCode\":\"\",\"categoryId\":1,\"couponIds\":[],\"coupons\":[],\"extendCode\":\"\",\"foodGroup\":[[{\"attrs\":null,\"groupId\":150000384574387938,\"id\":2800704146,\"name\":\"汉堡\",\"newSpecs\":[],\"quantity\":1.0,\"skuId\":\"100001154483818210\"}],[{\"attrs\":null,\"groupId\":150000384574389986,\"id\":2800600376,\"name\":\"薯条-大份\",\"newSpecs\":[{\"extCode\":null,\"name\":\"规格\",\"value\":\"大份\"}],\"quantity\":1.0,\"skuId\":\"100001154377557730\"},{\"attrs\":null,\"groupId\":150000384574389986,\"id\":2800431977,\"name\":\"鸡块\",\"newSpecs\":[],\"quantity\":1.0,\"skuId\":\"100001154205107938\"}],[{\"attrs\":null,\"groupId\":150000384574388962,\"id\":2800288709,\"name\":\"雪碧\",\"newSpecs\":[],\"quantity\":1.0,\"skuId\":\"100001154058410722\"},{\"attrs\":null,\"groupId\":150000384574388962,\"id\":2800392325,\"name\":\"可乐\",\"newSpecs\":[],\"quantity\":1.0,\"skuId\":\"100001154159402722\"}]],\"foodType\":7,\"id\":2802991528,\"ingredients\":[],\"mealPreparation\":\"[汉堡/薯条-大份/鸡块/雪碧/可乐]\",\"name\":\"新版结构化套餐-分组可选-基础价+子商品加价[汉堡/薯条-大份/鸡块/雪碧/可乐]\",\"newSpecs\":[],\"originalName\":\"新版结构化套餐-分组可选-基础价+子商品加价\",\"price\":20.0,\"quantity\":1,\"shopPrice\":0.0,\"skuId\":100001156826095330,\"textPackage\":null,\"total\":20.0,\"uniqueId\":\"2e5c6d1ec-f95e-4c88-81fb-a5f739a267bd\",\"userPrice\":0.0,\"vfoodId\":2362777485,\"weight\":1.0},{\"activities\":[],\"additions\":[],\"attributes\":[{\"extCode\":null,\"name\":\"辣度\",\"value\":\"不辣\"}],\"barCode\":\"\",\"categoryId\":1,\"couponIds\":[],\"coupons\":[],\"extendCode\":\"\",\"foodGroup\":null,\"foodType\":0,\"id\":2814995335,\"ingredients\":[{\"id\":2784281409,\"name\":\"鸡腿\",\"quantity\":1,\"skuCode\":\"\",\"uniqueId\":\"6875c3b3d-5c74-4973-afd1-8062ac4a3c2e\"}],\"mealPreparation\":\"[不辣]\",\"name\":\"单品-牛肉盖浇饭+餐盒费-小份[不辣]\",\"newSpecs\":[{\"extCode\":null,\"name\":\"规格\",\"value\":\"小份\"}],\"originalName\":\"单品-牛肉盖浇饭+餐盒费-小份\",\"price\":5.0,\"quantity\":1,\"shopPrice\":0.0,\"skuId\":100001169112880866,\"textPackage\":null,\"total\":5.0,\"uniqueId\":\"6d8ec0574-8499-4d98-a86a-e0fba0f35b8a\",\"userPrice\":0.0,\"vfoodId\":2369354181,\"weight\":100.0},{\"activities\":[],\"additions\":[],\"attributes\":[{\"extCode\":null,\"name\":\"辣度\",\"value\":\"不辣\"}],\"barCode\":\"\",\"categoryId\":1,\"couponIds\":[],\"coupons\":[],\"extendCode\":\"\",\"foodGroup\":null,\"foodType\":0,\"id\":2814995334,\"ingredients\":[{\"id\":2784341089,\"name\":\"荷包蛋\",\"quantity\":1,\"skuCode\":\"\",\"uniqueId\":\"51cfa390a-87a6-42dc-bdff-ff3595e63b07\"},{\"id\":2784311157,\"name\":\"狮子头\",\"quantity\":1,\"skuCode\":\"\",\"uniqueId\":\"5b11250cc-7b2e-479a-bb17-93a8c58e4d64\"},{\"id\":2784281409,\"name\":\"鸡腿\",\"quantity\":1,\"skuCode\":\"\",\"uniqueId\":\"5d5113881-de60-4d4d-9bd3-de34e031181e\"}],\"mealPreparation\":\"[不辣]\",\"name\":\"单品-牛肉盖浇饭+餐盒费-大份[不辣]\",\"newSpecs\":[{\"extCode\":null,\"name\":\"规格\",\"value\":\"大份\"}],\"originalName\":\"单品-牛肉盖浇饭+餐盒费-大份\",\"price\":10.0,\"quantity\":1,\"shopPrice\":0.0,\"skuId\":100001169112879842,\"textPackage\":null,\"total\":10.0,\"uniqueId\":\"5e7ec6c6d-bac1-4298-a48b-68c436c216cf\",\"userPrice\":0.0,\"vfoodId\":2369354181,\"weight\":200.0}],\"name\":\"1号篮子\",\"relatedItems\":[],\"type\":\"normal\"},{\"items\":[{\"activities\":[],\"additions\":[],\"attributes\":null,\"barCode\":\"\",\"categoryId\":102,\"couponIds\":[],\"coupons\":[],\"extendCode\":\"\",\"foodGroup\":null,\"foodType\":0,\"id\":-70000,\"ingredients\":[],\"mealPreparation\":\"\",\"name\":\"餐盒\",\"newSpecs\":null,\"originalName\":null,\"price\":3.0,\"quantity\":1,\"shopPrice\":0.0,\"skuId\":-1,\"textPackage\":null,\"total\":3.0,\"uniqueId\":null,\"userPrice\":0.0,\"vfoodId\":0,\"weight\":null}],\"name\":\"其它费用\",\"relatedItems\":[],\"type\":\"extra\"}],\"id\":\"8017990064460563721\",\"income\":96.46,\"instantOrderDeliverTime\":\"2024-01-31T15:18:25\",\"invoice\":null,\"invoiceEmail\":null,\"invoiceType\":null,\"invoiced\":false,\"openId\":\"\",\"orderBusinessType\":0,\"phoneList\":[\"11405186198\"],\"pickUpNumber\":0,\"pickUpTime\":\"1970-01-01T08:00:00\",\"shopId\":1184782337,\"shopName\":\"开放平台验收专用(仅供测试)\",\"skuId\":null,\"specUserPart\":0.0,\"spuId\":null,\"status\":\"unprocessed\",\"superVip\":\"NOT_VIP\",\"taxpayerId\":\"\",\"totalActivityAmount\":0.0,\"totalAmount\":106.0,\"totalPrice\":106.0,\"userExtraInfo\":{\"giverPhone\":\"\",\"greeting\":\"\"},\"userMarketingDescription\":null,\"xyPackFlag\":false}", "userId": "6179136777960887059", "timestamp": 1706683706324 }

eleme.order.getOrder 接口返回数据

{ "id": "4022c376-0f8e-4240-9511-4ba559531d35", "result": { "activeAt": "2024-01-31T14:48:25", "activityTotal": 0, "additionServicePrice": 0, "address": "石排湾郊野公园301", "allowanceServiceFee": 0, "baiduWaimai": false, "baseLogisticsServiceFee": 0, "book": false, "brandMemberInfo": null, "cancelOrderCreatedAt": null, "cancelOrderDescription": null, "cityId": 216, "cityName": "澳门特别行政区", "coldBoxFee": 0, "confirmCookingTime": null, "consignee": "测**", "consigneePhones": [ "114****6198" ], "contributionAmount": 0, "cpcAmount": 0, "createdAt": "2024-01-31T14:48:25", "dateIncreaseFee": 0, "daySn": 2, "deliverFee": 2, "deliverTime": null, "deliveryGeo": "113.562928,22.123025", "deliveryPackageFee": 5, "deliveryPoiAddress": "石排湾郊野公园301", "deliveryProductId": 0, "description": "依据餐量提供餐具", "distanceBetweenMerchantsAndConsignee": "7", "distanceIncreaseFee": 0, "downgraded": false, "elemePart": 0, "extraJson": "{\"originalDeliverFee\":\"2.0\",\"deliveryActivityFee\":\"0.0\"}", "fulfillServiceFee": 0, "grayOrder": false, "groups": [ { "items": [ { "activities": [], "additions": [], "attributes": [], "barCode": "", "categoryId": 1, "couponIds": [], "coupons": [], "extendCode": "", "foodGroup": [ [ { "attrs": null, "groupId": 150000384528701150, "id": 2800704146, "name": "汉堡", "newSpecs": [], "quantity": 1, "skuId": "100001154483818210" } ], [ { "attrs": null, "groupId": 150000384528703200, "id": 2800392325, "name": "可乐", "newSpecs": [], "quantity": 1, "skuId": "100001154159402722" } ], [ { "attrs": null, "groupId": 150000384528702180, "id": 2800600376, "name": "薯条-大份", "newSpecs": [ { "extCode": null, "name": "规格", "value": "大份" } ], "quantity": 2, "skuId": "100001154377557730" }, { "attrs": null, "groupId": 150000384528702180, "id": 2800431977, "name": "鸡块", "newSpecs": [], "quantity": 1, "skuId": "100001154205107938" } ] ], "foodType": 7, "id": 2803219279, "ingredients": [], "mealPreparation": "[汉堡/可乐/薯条-大份x2/鸡块]", "name": "新版结构化套餐-分组可选-子品分别定价[汉堡/可乐/薯条-大份x2/鸡块]", "newSpecs": [], "originalName": "新版结构化套餐-分组可选-子品分别定价", "price": 14, "quantity": 1, "shopPrice": 14, "skuId": 100001157059314400, "total": 14, "uniqueId": "328660474-734d-4fd0-a464-c0be8def92f3", "userPrice": 14, "vfoodId": 2362608798, "weight": 1 }, { "activities": [], "additions": [], "attributes": [], "barCode": "", "categoryId": 1, "couponIds": [], "coupons": [], "extendCode": "", "foodGroup": [ [ { "attrs": null, "groupId": 150000384681141980, "id": 2800600376, "name": "薯条-大份", "newSpecs": [ { "extCode": null, "name": "规格", "value": "大份" } ], "quantity": 1, "skuId": "100001154377557730" }, { "attrs": null, "groupId": 150000384681141980, "id": 2800288709, "name": "雪碧", "newSpecs": [], "quantity": 1, "skuId": "100001154058410722" }, { "attrs": null, "groupId": 150000384681141980, "id": 2800704146, "name": "汉堡", "newSpecs": [], "quantity": 1, "skuId": "100001154483818210" } ] ], "foodType": 7, "id": 2803100452, "ingredients": [], "mealPreparation": "[薯条-大份/雪碧/汉堡]", "name": "新版结构化套餐-固定搭配[薯条-大份/雪碧/汉堡]", "newSpecs": [], "originalName": "新版结构化套餐-固定搭配", "price": 17, "quantity": 1, "shopPrice": 17, "skuId": 100001156937635550, "total": 17, "uniqueId": "10f1b72af-8497-4081-9d0a-c44fd8428392", "userPrice": 17, "vfoodId": 2362817458, "weight": 1 }, { "activities": [], "additions": [], "attributes": [], "barCode": "", "categoryId": 1, "couponIds": [], "coupons": [], "extendCode": "", "foodGroup": null, "foodType": 0, "id": 2808268833, "ingredients": [], "mealPreparation": "[汉堡+可乐+炸鸡腿]", "name": "半结构化套餐- 固定搭配-手动录入商品", "newSpecs": [], "originalName": "半结构化套餐- 固定搭配-手动录入商品", "price": 15, "quantity": 1, "shopPrice": 15, "skuId": 100001162224939740, "total": 15, "uniqueId": "009ec8a8f-642e-4e84-b0cd-cad919d44f48", "userPrice": 15, "vfoodId": 2365538515, "weight": 1 }, { "activities": [], "additions": [], "attributes": [], "barCode": "", "categoryId": 1, "couponIds": [], "coupons": [], "extendCode": "", "foodGroup": null, "foodType": 0, "id": 2807983504, "ingredients": [], "mealPreparation": "", "name": "文本套餐-普通商品", "newSpecs": [], "originalName": "文本套餐-普通商品", "price": 10, "quantity": 1, "shopPrice": 10, "skuId": 100001161937880800, "total": 10, "uniqueId": "493294d79-a336-4c47-a5ea-b5ee09214086", "userPrice": 10, "vfoodId": 2365833271, "weight": 500 }, { "activities": [], "additions": [], "attributes": [], "barCode": "", "categoryId": 1, "couponIds": [], "coupons": [], "extendCode": "", "foodGroup": null, "foodType": 3, "id": 2784341089, "ingredients": [], "mealPreparation": "", "name": "荷包蛋", "newSpecs": [], "originalName": "荷包蛋", "price": 1, "quantity": 1, "shopPrice": 1, "skuId": 100001137728039650, "total": 1, "uniqueId": "51cfa390a-87a6-42dc-bdff-ff3595e63b07", "userPrice": 1, "vfoodId": 2352228876, "weight": 1 }, { "activities": [], "additions": [], "attributes": [], "barCode": "", "categoryId": 1, "couponIds": [], "coupons": [], "extendCode": "", "foodGroup": null, "foodType": 3, "id": 2784311157, "ingredients": [], "mealPreparation": "", "name": "狮子头", "newSpecs": [], "originalName": "狮子头", "price": 5, "quantity": 1, "shopPrice": 5, "skuId": 100001137692286690, "total": 5, "uniqueId": "5b11250cc-7b2e-479a-bb17-93a8c58e4d64", "userPrice": 5, "vfoodId": 2352194041, "weight": 1 }, { "activities": [], "additions": [], "attributes": [], "barCode": "", "categoryId": 1, "couponIds": [], "coupons": [], "extendCode": "", "foodGroup": null, "foodType": 3, "id": 2784281409, "ingredients": [], "mealPreparation": "", "name": "鸡腿", "newSpecs": [], "originalName": "鸡腿", "price": 2, "quantity": 1, "shopPrice": 2, "skuId": 100001137666935520, "total": 2, "uniqueId": "5d5113881-de60-4d4d-9bd3-de34e031181e", "userPrice": 2, "vfoodId": 2352463168, "weight": 1 }, { "activities": [], "additions": [], "attributes": [], "barCode": "", "categoryId": 1, "couponIds": [], "coupons": [], "extendCode": "", "foodGroup": null, "foodType": 3, "id": 2784281409, "ingredients": [], "mealPreparation": "", "name": "鸡腿", "newSpecs": [], "originalName": "鸡腿", "price": 2, "quantity": 1, "shopPrice": 2, "skuId": 100001137666935520, "total": 2, "uniqueId": "6875c3b3d-5c74-4973-afd1-8062ac4a3c2e", "userPrice": 2, "vfoodId": 2352463168, "weight": 1 }, { "activities": [], "additions": [], "attributes": [], "barCode": "", "categoryId": 1, "couponIds": [], "coupons": [], "extendCode": "", "foodGroup": [ [ { "attrs": null, "groupId": 150000384574387940, "id": 2800704146, "name": "汉堡", "newSpecs": [], "quantity": 1, "skuId": "100001154483818210" } ], [ { "attrs": null, "groupId": 150000384574389980, "id": 2800600376, "name": "薯条-大份", "newSpecs": [ { "extCode": null, "name": "规格", "value": "大份" } ], "quantity": 1, "skuId": "100001154377557730" }, { "attrs": null, "groupId": 150000384574389980, "id": 2800431977, "name": "鸡块", "newSpecs": [], "quantity": 1, "skuId": "100001154205107938" } ], [ { "attrs": null, "groupId": 150000384574388960, "id": 2800288709, "name": "雪碧", "newSpecs": [], "quantity": 1, "skuId": "100001154058410722" }, { "attrs": null, "groupId": 150000384574388960, "id": 2800392325, "name": "可乐", "newSpecs": [], "quantity": 1, "skuId": "100001154159402722" } ] ], "foodType": 7, "id": 2802991528, "ingredients": [], "mealPreparation": "[汉堡/薯条-大份/鸡块/雪碧/可乐]", "name": "新版结构化套餐-分组可选-基础价+子商品加价[汉堡/薯条-大份/鸡块/雪碧/可乐]", "newSpecs": [], "originalName": "新版结构化套餐-分组可选-基础价+子商品加价", "price": 20, "quantity": 1, "shopPrice": 20, "skuId": 100001156826095330, "total": 20, "uniqueId": "2e5c6d1ec-f95e-4c88-81fb-a5f739a267bd", "userPrice": 20, "vfoodId": 2362777485, "weight": 1 }, { "activities": [], "additions": [], "attributes": [ { "name": "辣度", "value": "不辣" } ], "barCode": "", "categoryId": 1, "couponIds": [], "coupons": [], "extendCode": "", "foodGroup": null, "foodType": 0, "id": 2814995335, "ingredients": [ { "id": 2784281409, "name": "鸡腿", "quantity": 1, "skuCode": "", "uniqueId": "6875c3b3d-5c74-4973-afd1-8062ac4a3c2e" } ], "mealPreparation": "[不辣]", "name": "单品-牛肉盖浇饭+餐盒费-小份[不辣]", "newSpecs": [ { "extCode": null, "name": "规格", "value": "小份" } ], "originalName": "单品-牛肉盖浇饭+餐盒费-小份", "price": 5, "quantity": 1, "shopPrice": 5, "skuId": 100001169112880860, "total": 5, "uniqueId": "6d8ec0574-8499-4d98-a86a-e0fba0f35b8a", "userPrice": 5, "vfoodId": 2369354181, "weight": 100 }, { "activities": [], "additions": [], "attributes": [ { "name": "辣度", "value": "不辣" } ], "barCode": "", "categoryId": 1, "couponIds": [], "coupons": [], "extendCode": "", "foodGroup": null, "foodType": 0, "id": 2814995334, "ingredients": [ { "id": 2784341089, "name": "荷包蛋", "quantity": 1, "skuCode": "", "uniqueId": "51cfa390a-87a6-42dc-bdff-ff3595e63b07" }, { "id": 2784311157, "name": "狮子头", "quantity": 1, "skuCode": "", "uniqueId": "5b11250cc-7b2e-479a-bb17-93a8c58e4d64" }, { "id": 2784281409, "name": "鸡腿", "quantity": 1, "skuCode": "", "uniqueId": "5d5113881-de60-4d4d-9bd3-de34e031181e" } ], "mealPreparation": "[不辣]", "name": "单品-牛肉盖浇饭+餐盒费-大份[不辣]", "newSpecs": [ { "extCode": null, "name": "规格", "value": "大份" } ], "originalName": "单品-牛肉盖浇饭+餐盒费-大份", "price": 10, "quantity": 1, "shopPrice": 10, "skuId": 100001169112879840, "total": 10, "uniqueId": "5e7ec6c6d-bac1-4298-a48b-68c436c216cf", "userPrice": 10, "vfoodId": 2369354181, "weight": 200 } ], "name": "1号篮子", "relatedItems": [], "type": "normal" }, { "items": [ { "activities": null, "additions": [], "attributes": null, "barCode": "", "categoryId": 102, "couponIds": null, "coupons": null, "extendCode": "", "foodGroup": null, "foodType": 0, "id": -70000, "ingredients": [], "mealPreparation": "", "name": "餐盒", "newSpecs": null, "originalName": "餐盒", "price": 3, "quantity": 1, "shopPrice": 0, "skuId": -1, "total": 3, "uniqueId": null, "userPrice": 0, "vfoodId": 0, "weight": null } ], "name": "其它费用", "relatedItems": [], "type": "extra" } ], "hongbao": 0, "id": "8017990064460563721", "income": 96.46, "instantOrderDeliverTime": "2024-01-31T15:18:25", "invoice": null, "invoiceEmail": null, "invoiceType": null, "invoiced": false, "isBusinessOrder": false, "logisticsActivity": null, "merchantDeliverySubsidy": 0, "onlinePaid": true, "openId": "", "orderActivities": [], "orderActivityParts": [], "orderBusinessType": 0, "orderCommissions": [], "orderId": "8017990064460563721", "orderSourceTag": "ELEME", "originalPrice": 106, "packageFee": 3, "phoneList": [ "11405186198" ], "pickUpNumber": 0, "pickUpTime": "1970-01-01T08:00:00", "pinTuanOrder": false, "pricePremiums": 0, "publicWelfareGoodsFee": 0, "refundStatus": "noRefund", "secretPhoneExpireTime": "2024-01-31T11:51:47", "serviceFee": -9.54, "serviceRate": 0.09, "shopBrandId": 0, "shopId": 1184782337, "shopName": "开放平台验收专用(仅供测试)", "shopPart": 0, "skuId": null, "specUserPart": 0, "spuId": null, "status": "valid", "superVip": "NOT_VIP", "svcPart": 0, "taxpayerId": "", "tianmaoPart": 0, "timeIntervalMarkUpFee": 0, "timeSlice": null, "timeSliceEnd": null, "timeSliceStart": null, "totalActivityAmount": 0, "totalAmount": 106, "totalPrice": 106, "umpOrder": 0, "userExtraInfo": { "giverPhone": "", "greeting": "" }, "userId": -902633805, "userIdStr": "3100063753907", "userMarketingDescription": null, "userPart": 0, "vipDeliveryFeeDiscount": 0, "xyPackFlag": false }, "error": null }

15.2 套餐 - 分组可选套餐,基础价+子商品加价,eleme.product.item.getItem接口获取信息

{ "result": { "description": "", "id": 2362777485, "name": "汉堡小吃套餐-分组可选-基础价+子商品加价", "isValid": 1, "recentPopularity": 0, "fuzzyRecentPopularity": "0", "categoryId": 1760072745, "shopId": 1184783333, "shopName": "饿了么开放平台", "imageUrl": "https://cube.elemecdn.com/1/7c/90c37efbfc391e163737b4a10cfa3jpeg.jpeg", "labels": null, "specs": [ { "specId": 2802991528, "name": "", "price": 20, "priceType": "BASE_PRICE", "packageType": "GROUP_CHOOSE", "stock": 10000, "maxStock": 10000, "stockStatus": 0, "packingFee": 0, "onShelf": 1, "extendCode": "", "barCode": "", "weight": 0, "activityLevel": 0, "supplyLink": null, "propertyList": null, "pid": null, "calorie": null, "specAttribute": { "weight": "0", "unit": "克", "packageShare": 1, "maxSelectNum": null, "minSelectNum": null }, "lockIds": null, "photoHash": "", "selectPhotoHash": "", "groupRelations": [ { "ingredientGroupId": 150000384574387940, "name": "主食", "ingredientRequired": true, "skus": [ { "skuId": 2800704146, "required": true, "selected": true, "minSelectNum": 1, "maxSelectNum": 1, "defaultSelectNum": 1, "customPriceInfo": { "unitPrice": null, "stepPriceList": [] }, "quantity": 1 } ], "subGroups": null, "multiSelected": true, "maxMultiSelected": 0, "minMultiSelected": 0, "bigImage": null, "selectType": "FIXED" }, { "ingredientGroupId": 150000384574388960, "name": "饮品", "ingredientRequired": true, "skus": [ { "skuId": 2800288709, "required": true, "selected": true, "minSelectNum": 1, "maxSelectNum": 1, "defaultSelectNum": 1, "customPriceInfo": { "unitPrice": null, "stepPriceList": [] }, "quantity": 1 }, { "skuId": 2800392325, "required": true, "selected": true, "minSelectNum": 1, "maxSelectNum": 1, "defaultSelectNum": 1, "customPriceInfo": { "unitPrice": null, "stepPriceList": [] }, "quantity": 1 } ], "subGroups": null, "multiSelected": true, "maxMultiSelected": 0, "minMultiSelected": 0, "bigImage": null, "selectType": "FIXED" }, { "ingredientGroupId": 150000384574389980, "name": "小吃", "ingredientRequired": true, "skus": [ { "skuId": 2800431977, "required": false, "selected": false, "minSelectNum": 0, "maxSelectNum": 1, "defaultSelectNum": 1, "customPriceInfo": { "unitPrice": null, "stepPriceList": [] }, "quantity": null }, { "skuId": 2800600376, "required": true, "selected": true, "minSelectNum": 1, "maxSelectNum": 1, "defaultSelectNum": 1, "customPriceInfo": { "unitPrice": null, "stepPriceList": [] }, "quantity": null } ], "subGroups": null, "multiSelected": true, "maxMultiSelected": 1, "minMultiSelected": 1, "bigImage": null, "selectType": "CUSTOM" } ], "attributes": [], "mutexSpecIds": [] } ], "sellingTime": null, "attributes": [], "backCategoryId": 0, "minPurchaseQuantity": 1, "unit": "份", "setMeal": 1, "materials": null, "stdCategoryId": 0, "mainMaterials": null, "categoryProperties": null, "imageLinkageType": 0, "imageUrls": null, "descImageUrls": null, "video": null, "itemType": "PACKAGE_V3", "subItemIds": [], "ingredientGroup": { "name": null, "ingredients": null }, "onShelf": 1, "specProperties": null, "groupRelations": null, "itemFeature": { "deliverAlone": true, "saleAlone": true, "joinHotGoods": false, "hideMutexSkus": null, "foldNotRequiredGroup": null, "maxSelectNum": null, "minSelectNum": null }, "rankWeight": 3, "channel": null, "extCode": "", "opackages": null } }

15.3 套餐 - 固定搭配,eleme.product.item.getItem接口获取信息

{ "result": { "description": "", "id": 2362817458, "name": "汉堡小吃套餐-固定搭配", "isValid": 1, "recentPopularity": 0, "fuzzyRecentPopularity": "0", "categoryId": 1760072745, "shopId": 1184783333, "shopName": "饿了么开放平台", "imageUrl": "https://cube.elemecdn.com/7/e1/6766dc035d2c459966a0264709fa8jpeg.jpeg", "labels": null, "specs": [ { "specId": 2803100452, "name": "", "price": 20, "priceType": "BASE_PRICE", "packageType": "FIXED", "stock": 10000, "maxStock": 10000, "stockStatus": 0, "packingFee": 0, "onShelf": 1, "extendCode": "", "barCode": "", "weight": 0, "activityLevel": 0, "supplyLink": null, "propertyList": null, "pid": null, "calorie": null, "specAttribute": { "weight": "0", "unit": "克", "packageShare": 1, "maxSelectNum": null, "minSelectNum": null }, "lockIds": null, "photoHash": "", "selectPhotoHash": "", "groupRelations": [ { "ingredientGroupId": 150000384681141980, "name": "默认", "ingredientRequired": true, "skus": [ { "skuId": 2800704146, "required": true, "selected": true, "minSelectNum": 1, "maxSelectNum": 1, "defaultSelectNum": 1, "customPriceInfo": { "unitPrice": null, "stepPriceList": [] }, "quantity": 1 }, { "skuId": 2800600376, "required": true, "selected": true, "minSelectNum": 1, "maxSelectNum": 1, "defaultSelectNum": 1, "customPriceInfo": { "unitPrice": null, "stepPriceList": [] }, "quantity": 1 }, { "skuId": 2800288709, "required": true, "selected": true, "minSelectNum": 1, "maxSelectNum": 1, "defaultSelectNum": 1, "customPriceInfo": { "unitPrice": null, "stepPriceList": [] }, "quantity": 1 } ], "subGroups": null, "multiSelected": true, "maxMultiSelected": 0, "minMultiSelected": 0, "bigImage": null, "selectType": "FIXED" } ], "attributes": [], "mutexSpecIds": [] } ], "sellingTime": null, "attributes": [], "backCategoryId": 0, "minPurchaseQuantity": 1, "unit": "份", "setMeal": 1, "materials": null, "stdCategoryId": 201835802, "mainMaterials": [], "categoryProperties": [], "imageLinkageType": 0, "imageUrls": null, "descImageUrls": null, "video": null, "itemType": "PACKAGE_V3", "subItemIds": [], "ingredientGroup": { "name": null, "ingredients": null }, "onShelf": 1, "specProperties": null, "groupRelations": null, "itemFeature": { "deliverAlone": true, "saleAlone": true, "joinHotGoods": false, "hideMutexSkus": null, "foldNotRequiredGroup": null, "maxSelectNum": null, "minSelectNum": null }, "rankWeight": 2, "channel": null, "extCode": "", "opackages": null } }

15.4 汉堡小吃套餐-分组可选-子品分别定价,eleme.product.item.getItem接口获取信息

{ "result": { "description": "", "id": 2362608798, "name": "汉堡小吃套餐-分组可选-子品分别定价", "isValid": 1, "recentPopularity": 0, "fuzzyRecentPopularity": "0", "categoryId": 1760072745, "shopId": 1184783333, "shopName": "饿了么开放平台验收专用", "imageUrl": "https://cube.elemecdn.com/1/55/ef30948c259a7b1e51a1b5e9b0b3djpg.jpg", "labels": null, "specs": [ { "specId": 2803219279, "name": "", "price": 0, "priceType": "SUB_PRICE", "packageType": "GROUP_CHOOSE", "stock": 10000, "maxStock": 10000, "stockStatus": 0, "packingFee": 0, "onShelf": 1, "extendCode": "", "barCode": "", "weight": 0, "activityLevel": 0, "supplyLink": null, "propertyList": null, "pid": null, "calorie": null, "specAttribute": { "weight": "0", "unit": "克", "packageShare": 1, "maxSelectNum": null, "minSelectNum": null }, "lockIds": null, "photoHash": "", "selectPhotoHash": "", "groupRelations": [ { "ingredientGroupId": 150000384528701150, "name": "主食", "ingredientRequired": true, "skus": [ { "skuId": 2800704146, "required": true, "selected": true, "minSelectNum": 1, "maxSelectNum": 1, "defaultSelectNum": 1, "customPriceInfo": { "unitPrice": null, "stepPriceList": [] }, "quantity": 1 } ], "subGroups": null, "multiSelected": true, "maxMultiSelected": 0, "minMultiSelected": 0, "bigImage": null, "selectType": "FIXED" }, { "ingredientGroupId": 150000384528702180, "name": "小吃", "ingredientRequired": true, "skus": [ { "skuId": 2800431977, "required": false, "selected": true, "minSelectNum": 0, "maxSelectNum": 1, "defaultSelectNum": 1, "customPriceInfo": { "unitPrice": null, "stepPriceList": [] }, "quantity": null }, { "skuId": 2800600376, "required": false, "selected": false, "minSelectNum": 0, "maxSelectNum": 1, "defaultSelectNum": 1, "customPriceInfo": { "unitPrice": null, "stepPriceList": [] }, "quantity": null } ], "subGroups": null, "multiSelected": true, "maxMultiSelected": 1, "minMultiSelected": 1, "bigImage": null, "selectType": "CUSTOM" }, { "ingredientGroupId": 150000384528703200, "name": "饮品", "ingredientRequired": true, "skus": [ { "skuId": 2800392325, "required": true, "selected": true, "minSelectNum": 1, "maxSelectNum": 1, "defaultSelectNum": 1, "customPriceInfo": { "unitPrice": null, "stepPriceList": [] }, "quantity": null }, { "skuId": 2800288709, "required": false, "selected": false, "minSelectNum": 0, "maxSelectNum": 1, "defaultSelectNum": 1, "customPriceInfo": { "unitPrice": null, "stepPriceList": [] }, "quantity": null } ], "subGroups": null, "multiSelected": true, "maxMultiSelected": 1, "minMultiSelected": 1, "bigImage": null, "selectType": "CUSTOM" } ], "attributes": [], "mutexSpecIds": [] } ], "sellingTime": null, "attributes": [], "backCategoryId": 0, "minPurchaseQuantity": 1, "unit": "份", "setMeal": 1, "materials": null, "stdCategoryId": 201835802, "mainMaterials": [], "categoryProperties": [], "imageLinkageType": 0, "imageUrls": null, "descImageUrls": null, "video": null, "itemType": "PACKAGE_V3", "subItemIds": [], "ingredientGroup": { "name": null, "ingredients": null }, "onShelf": 1, "specProperties": null, "groupRelations": null, "itemFeature": { "deliverAlone": true, "saleAlone": true, "joinHotGoods": false, "hideMutexSkus": null, "foldNotRequiredGroup": null, "maxSelectNum": null, "minSelectNum": null }, "rankWeight": 3, "channel": null, "extCode": "", "opackages": null } }

在线帮助

如您有任何疑问,欢迎加入保障宝平台,随时联系我们的保障宝daily进行咨询和反馈,让您的在线解答体验更加顺畅,我们将竭尽所能,不断改进和优化服务,为您提供更加贴心、高效的支持和服务,让您的体验更加美好!

FAQ

Q:当前套餐不支持含有加料和属性的子品挂载,那我改造后,平台支持后还需要改造么

A:不需要的,开发者只需要改造一次,平台上线后当前方案即可支持,不需要额外改造。

Q:结构化套餐的不同类型,比如固定套餐,可选套餐加价模式等,packageType和priceType如何入参呢?

A:固定套餐: packageType = FIXED,priceType 为空;可选套餐加价模式: packageType = GROUP_CHOOSE ,priceType = BASE_PRICE;可选套餐变价模式: packageType = GROUP_CHOOSE ,priceType = SUB_PRICE。

 

更新记录

V1.0(2024-01-11)

新增文档

V1.1(2024-01-29)

【六、套餐发展史】新增 foodType、name、originalName和mealPreparation示例说明。

V1.2(2024-04-23)

三层结构已发布,修改对应描述

V1.3(2024-05-17)

订单接口中商品拼接规则变更之前统一用+拼接,变更为:半结构化套餐用+拼接,结构化套餐用的/拼接

/template/Home/AllNew/PC/Static