Skip to main content

商品信息变更订阅

接口描述

用于订阅客房送物商品变更事件

请求scene参数

Hotel.goods.sync

请求bizData参数

[{
"goodsId":"1231",
"eventType":0,
"name":"可乐",
"unit":"瓶",
"imageUrl":"www.beyondh.com",
"imageUris":["www.beyondh.com", "www.beyondh.com"],
"categoryName":"饮料",
"count":1,
"price":12,
"purchaseLimitQuantity":2,
"order":1,
"sellTimeList":[{
"sellStartTime":"00:00",
"sellEndTime":"23:59",
"sellDaysInWeek":[0,1,2,3]
}]
}]

bizData参数说明

参数示例值参数类型参数描述
goodsId1231String商品Id
eventType0int商品变更事件类型(0:修改,1:新增,2:删除)
name可乐String商品名称
unitString单位,如:瓶(500ml)
imageUrlwww.beyondh.comString商品图片地址
imageUriswww.meituan.comString Array商品图片地址集合
categoryName日常用品String分类名称
count3int该商品的总库存
price100int商品单价,单位为分
purchaseLimitQuantity2Integer单次下订单时该商品限购的数量,为0或为空则不限制购买数量
order1Integer商品排序
sellTimeList-Array商品可售卖时间列表
sellTimeList.sellStartTime00:00String售卖开始时间
sellTimeList.sellEndTime23:59String售卖结束时间
sellTimeList.sellDaysInWeek[0,1,2,3]Array对应的每周可售卖日期,周日(0)-周六(6)