文档
测试

商品列表

POST
/union/v1/bulk

接口描述

查询商品列表(主要按照经纬度查询)

请求头

参数名
类型
描述
必填
ACCESSTOKEN
string
登录注册放回的用户ppId
必填

请求参数

参数名
类型
描述
必填
platformId
int
平台 默认都传2 代表美团 必传
必填
promotionId
long
推广位 非必传
必填
cat0Id
int
一级类目ID 必传
必填
cat1Id
int
二级类目ID 非必传
必填
cat1Ids
array<int>
二级类目列表,必须都为同一一级类目下的二级类目,该条件优先级高于cat1Id,每个批次最多可以查询10个二级类目
必填
shopIds
array<int>
商户id,最多50个
必填
dealIds
array<int>
团单id,最多100个
必填
dealType
int
团单类型:1.套餐,2代金券
必填
sortType
int
必传默认1 排序类型:1-距离离我最近;6-团单销量升序;7-团单销量降序;8-券后价升序;9-券后价降序;10-优惠比例升序;11-优惠比例降序
必填
filters
array<object>
过滤条件
必填
filterType
int
过滤类型 1-代金劵 2-优惠比例 3-满减金额
必填
upper
long
上限 金额-单位:分 百分比:0-100
必填
lower
long
下限 金额-单位:分 百分比:0-100
必填
keyWords
string
搜索的关键词
必填
geo
object
位置信息 必传
必填
cityId
int
城市id
必填
regionId
int
商圈id
必填
districtId
int
行政区id
必填
lng
double
经度
必填
lat
double
纬度
必填
radii
int
半径 单位:米
必填
page
int
页码 不传默认为1
必填
size
int
每页条数 不传默认20
必填

响应参数

参数名
类型
描述
必填
code
int
返回结果码 1000-成功 非1000-未成功
必填
data
object
数据字典
必填
records
array
团购订单信息
必填
dealBaseInfo
object
团单基本信息
必填
marketPrice
int
市场价格,单位分
必填
dealTitle
string
团单标题
必填
description
string
团单描述
必填
finalPrice
int
券后价格,单位分
必填
defaultPic
string
团单头图
必填
dealGroupId
int
团单Id
必填
dealType
int
团单类型 1-套餐 2-代金券
必填
realPrice
int
团单实际价格,单位分
必填
shopInfo
object
商户信息
必填
brandName
string
品牌名称
必填
distanceToShow
string
当前距离
必填
address
string
门店地址
必填
cityName
string
门店城市名称
必填
distance
int
距离,单位米,未传geo信息则为空
必填
regionName
string
商圈名
必填
shopName
string
门店名称
必填
branchName
string
分店名称
必填
shopPower
int
星级,0-50,10为一星,45为四星
必填
shopUuid
string
暂时用不到
必填
shopId
int
门店id
必填
cateName
string
类目名
必填
couponInfo
object
优惠信息
必填
commissionRatio
float
分佣比例,两位小数
必填
discountPrice
int
满减金额,单位分
必填
priceLimit
int
满减门槛,单位分
必填
validStartDate
string
抵用券开始时间
必填
validEndDate
string
抵用券结束时间
必填
couponPageUrl
string
领券页面跳转链接
必填
dealDetail
object
团单详情
必填
halfYearSale
int
半年销量
必填
menuType
int
菜单内容类型 1-html 2-struct_json
必填
menu
string
菜单
必填
recordCount
int
数据总量
必填
limit
int
限制条数
必填
pageSize
int
每页展示条数
必填
page
int
页码
必填
size
int
每页展示条数
必填
message
string
返回结果信息
必填

说明 / 示例

{ "code": 1000, "data": { "offset": 0, "records": [ { "couponInfo": { "commissionRatio": 0.03, "discountPrice": 100, "priceLimit": 500, "validEndDate": 1623513600000, "validStartDate": 1622995200000 }, "dealBaseInfo": { "dealGroupId": 699842980, "dealTitle": "一人食套餐", "dealType": 1, "defaultPic": "https://p0.meituan.net/320.0/deal/51e8a9183b47b7e2415ffa638d5ae1a7154612.jpg%40320w_240h_1e_1c_1l%7Cwatermark%3D0", "description": "仅售23元!价值27元的一人食套餐。", "finalPrice": 2200, "marketPrice": 2700, "realPrice": 2300 }, "dealDetail": { "halfYearSale": 4, "menu": "[{\"content\":\"主菜 5 选 1\",\"itemId\":\"1\",\"parentId\":\"\",\"type\":\"0\"},{\"content\":\"一人食鸡爪煲\",\"itemId\":\"10001\",\"parentId\":\"1\",\"price\":\"25\",\"specification\":\"1 份\",\"total\":\"25\",\"type\":\"128\"},{\"content\":\"一人食鸡翅煲\",\"itemId\":\"10002\",\"parentId\":\"1\",\"price\":\"25\",\"specification\":\"1 份\",\"total\":\"25\",\"type\":\"128\"},{\"content\":\"一人食牛蛙煲\",\"itemId\":\"10003\",\"parentId\":\"1\",\"price\":\"25\",\"specification\":\"1 份\",\"total\":\"25\",\"type\":\"128\"},{\"content\":\"一人食仔排煲\",\"itemId\":\"10004\",\"parentId\":\"1\",\"price\":\"25\",\"specification\":\"1 份\",\"total\":\"25\",\"type\":\"128\"},{\"content\":\"一人食海鲜煲\",\"itemId\":\"10005\",\"parentId\":\"1\",\"price\":\"25\",\"specification\":\"1 份\",\"total\":\"25\",\"type\":\"128\"},{\"content\":\"主食\",\"itemId\":\"2\",\"parentId\":\"\",\"type\":\"0\"},{\"content\":\"米饭\",\"itemId\":\"10006\",\"parentId\":\"2\",\"price\":\"2\",\"specification\":\"1 份\",\"total\":\"2\",\"type\":\"128\"}]", "menuType": 2 }, "shopInfo": { "address": "杨浦区国权北路1688弄", "branchName": "", "brandName": "", "cateName": "鱼鲜", "cityName": "上海", "distance": 468, "distanceToShow": "468.54m", "regionName": "新江湾城", "shopId": 1469566704, "shopName": "蟹堡王肉蟹煲", "shopPower": 35, "shopUuid": "1469566704" } }, { "couponInfo": { "commissionRatio": 0.03, "discountPrice": 100, "priceLimit": 500, "validEndDate": 1623513600000, "validStartDate": 1622995200000 }, "dealBaseInfo": { "dealGroupId": 663603426, "dealTitle": "佛卡恰上星早餐", "dealType": 1, "defaultPic": "https://p0.meituan.net/320.0/deal/8b1350e78acefb0bc8cfc45bea6ce92667790.jpg%40320w_240h_1e_1c_1l%7Cwatermark%3D0", "description": "佛卡恰上星早餐", "finalPrice": 1400, "marketPrice": 4000, "realPrice": 1500 }, "dealDetail": { "halfYearSale": 15477, "menu": "[{\"content\":\"【上星早餐组合】\",\"itemId\":\"1\",\"parentId\":\"\",\"type\":\"0\"},{\"content\":\"食品2选1+可可/香草味蒸气奶\",\"itemId\":\"10001\",\"parentId\":\"1\",\"price\":\"40\",\"specification\":\"1 份\",\"total\":\"40\",\"type\":\"128\"},{\"content\":\"备注\",\"itemId\":\"2\",\"parentId\":\"\",\"type\":\"0\"},{\"content\":\"套餐内容:\",\"itemId\":\"10002\",\"parentId\":\"2\",\"type\":\"128\"},{\"content\":\"全新佛卡恰2选1【茄香火腿佛卡恰/肉松佛卡恰】\",\"itemId\":\"10003\",\"parentId\":\"2\",\"type\":\"128\"},{\"content\":\"现调蒸奶3选1【中杯可可蒸气奶(热/冷)/中杯香草味蒸气奶(热/冷)/中杯原味蒸气奶(热/冷)】\",\"itemId\":\"10004\",\"parentId\":\"2\",\"type\":\"128\"}]", "menuType": 2 }, "shopInfo": { "address": "杨浦区国权北路1688弄63号", "branchName": "", "brandName": "星巴克", "cateName": "饮品店", "cityName": "上海", "distance": 488, "distanceToShow": "488.70m", "regionName": "新江湾城", "shopId": 97104360, "shopName": "星巴克(湾谷科技园店)", "shopPower": 43, "shopUuid": "97104360" } }, { "couponInfo": { "commissionRatio": 0.03, "discountPrice": 100, "priceLimit": 500, "validEndDate": 1623513600000, "validStartDate": 1622995200000 }, "dealBaseInfo": { "dealGroupId": 664237799, "dealTitle": "椰汁白糯米M杯1份", "dealType": 1, "defaultPic": "https://p0.meituan.net/320.0/deal/5a8feff8a3e4ee960a30e2e6c6cf5b0935098.jpg%40320w_240h_1e_1c_1l%7Cwatermark%3D0", "description": "仅售13.6元!价值16元的椰汁白糯米M杯1份,提供免费WiFi。", "finalPrice": 1260, "marketPrice": 1600, "realPrice": 1360 }, "dealDetail": { "halfYearSale": 381, "menu": "[{\"content\":\"椰汁白糯米\",\"itemId\":\"1\",\"parentId\":\"\",\"type\":\"0\"},{\"content\":\"椰汁白糯米M杯\",\"itemId\":\"10001\",\"parentId\":\"1\",\"price\":\"16\",\"specification\":\"1 份\",\"total\":\"16\",\"type\":\"128\"}]", "menuType": 2 }, "shopInfo": { "address": "杨浦区国权北路1688号66号", "branchName": "", "brandName": "人在茶在", "cateName": "饮品店", "cityName": "上海", "distance": 508, "distanceToShow": "508.06m", "regionName": "新江湾城", "shopId": 185761635, "shopName": "人在茶在(湾谷店)", "shopPower": 40, "shopUuid": "185761635" } }, { "couponInfo": { "commissionRatio": 0.03, "discountPrice": 100, "priceLimit": 500, "validEndDate": 1623513600000, "validStartDate": 1622995200000 }, "dealBaseInfo": { "dealGroupId": 652255965, "dealTitle": "招牌单人餐,提供免费WiFi", "dealType": 1, "defaultPic": "https://p1.meituan.net/320.0/deal/69dac027def3aa06ea9aed04ab8cf27d70334.jpg%40320w_240h_1e_1c_1l%7Cwatermark%3D0", "description": "仅售35元!最高价值39元的招牌单人餐,提供免费WiFi。", "finalPrice": 3400, "marketPrice": 3900, "realPrice": 3500 }, "dealDetail": { "halfYearSale": 13, "menu": "[{\"content\":\"套餐内容\",\"itemId\":\"1\",\"parentId\":\"\",\"type\":\"0\"},{\"content\":\"酱香拌粉\",\"itemId\":\"10001\",\"parentId\":\"1\",\"price\":\"19\",\"specification\":\"1 份\",\"total\":\"19\",\"type\":\"128\"},{\"content\":\"鸭腿\",\"itemId\":\"10002\",\"parentId\":\"1\",\"price\":\"15\",\"specification\":\"1 份\",\"total\":\"15\",\"type\":\"128\"},{\"content\":\"饮品 2 选 1\",\"itemId\":\"2\",\"parentId\":\"\",\"type\":\"0\"},{\"content\":\"可乐\",\"itemId\":\"10003\",\"parentId\":\"2\",\"price\":\"5\",\"specification\":\"1 份\",\"total\":\"5\",\"type\":\"128\"},{\"content\":\"雪碧\",\"itemId\":\"10004\",\"parentId\":\"2\",\"price\":\"5\",\"specification\":\"1 份\",\"total\":\"5\",\"type\":\"128\"}]", "menuType": 2 }, "shopInfo": { "address": "杨浦区国权北路1688号湾谷科技园C6下沉式美食广场B1-09", "branchName": "", "brandName": "", "cateName": "小吃快餐", "cityName": "上海", "distance": 555, "distanceToShow": "555.44m", "regionName": "新江湾城", "shopId": 1212119978, "shopName": "越过三丘(湾谷店)", "shopPower": 42, "shopUuid": "1212119978" } } ], "recordCount": 5000, "limit": 20, "pageSize": 20, "page": 1 }, "message": "调用成功" }