文档中心 > API类目 > 本地生活联盟平台-饿了么单店推广API

alibaba.alsc.union.eleme.promotion.storepromotion.batch.get (本地联盟饿了么单店推广批量店铺查询)

本地联盟饿了么单店推广批量店铺查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
query_request BatchQueryStorePromotionRequest 必须 查询rquest
  • └ pid
  • String
  • 必须
  • alsc_xxx_xxx_xxx
  • 渠道PID
  • └ shop_id
  • String
  • 必须
  • xxxxxxxx|axxxx
  • 门店ID,支持多值,'|'分隔
  • └ activity_id
  • String
  • 可选
  • 2
  • 活动ID
  • └ media_activity_id
  • String
  • 可选
  • 111
  • 媒体出资活动ID
  • └ sid
  • String
  • 可选
  • 11111
  • 三方扩展id

响应参数

名称 类型 示例值 描述
data StorePromotionDto [] {} 门店数据
  • └ title
  • String
  • 淘客导购站专属店铺(分店名)
  • 门店名称
  • └ shop_logo
  • String
  • https://xxx.jpeg
  • 门店logo
  • └ indistinct_monthly_sales
  • String
  • 400+
  • 模糊销量
  • └ commission_rate
  • String
  • 0.2
  • 佣金比例
  • └ biz_type
  • String
  • activityCps
  • 店铺类型("activityCps":活动cps,"ordinaryCps":基础cps)
  • activity
  • PromotionActivity
  • {}
  • 活动数据
  • └ activity_id
  • String
  • 2
  • 活动Id
  • └ service_fee_cent
  • Number
  • 500
  • 营销计划服务费(分)
  • └ bonus_cent
  • Number
  • 500
  • 奖励金红包面额(分)
  • └ daily_quantity
  • Number
  • 100
  • 活动的日库存
  • └ daily_sellable_quantity
  • Number
  • 80
  • 活动日剩余库存
  • └ start_time
  • Number
  • 1639065600
  • 起始时间(秒)
  • └ end_time
  • Number
  • 1640880000
  • 结束时间(秒)
  • └ bounty_min_limit_cent
  • Number
  • 400
  • 奖励金门槛 (分)
  • link
  • PromotionLink
  • {}
  • 推广链接
  • └ wx_appid
  • String
  • wxxxxxxxx
  • 小程序appId
  • └ wx_path
  • String
  • xxxxx
  • 微信小程序path链接
  • └ picture
  • String
  • https://xxx
  • 推广图片地址,图片上展示店铺小程序二维码
  • └ reduce_wx_appid
  • String
  • wxxxxxxxx
  • 小程序appId-立减活动
  • └ reduce_wx_path
  • String
  • xxxxx
  • 微信小程序path链接-立减活动
  • └ reduce_picture
  • String
  • https://xxx
  • 推广图片地址-立减活动,图片上展示店铺小程序二维码
  • └ mini_qrcode
  • String
  • https://xxx
  • 独立微信二维码
  • └ media_activity_wx_appid
  • String
  • wxxxxxxxx
  • 小程序appId-媒体出资活动
  • └ media_activity_wx_path
  • String
  • xxxxx
  • 微信小程序path链接-媒体出资活动
  • └ category_1_id
  • String
  • 260
  • 一级类目ID,高级字段
  • └ delivery_price
  • String
  • 10.0
  • 起送价(元),高级字段
  • └ recommend_reasons
  • String []
  • ["酱油无骨炸鸡性价比很高","韩国炸鸡中的热卖餐厅"]
  • 推荐理由,高级字段
  • └ service_rating
  • String
  • 4.7
  • 服务评级,高级字段
  • items
  • PromotionItem []
  • 推荐商品,高级字段
  • └ title
  • String
  • 孜然炒肉夹馍
  • 标题
  • └ origin_price
  • String
  • 原价
  • └ price
  • String
  • 11.0
  • 现价
  • └ picture
  • String
  • https://xxx
  • 图片
  • └ category_1_name
  • String
  • 全球美食
  • 一级类目名称,高级字段
  • └ discount_tags
  • String []
  • 满减标签,高级字段
  • └ delivery_fee
  • String
  • 5
  • 配送费(元)
  • └ delivery_distance
  • Number
  • 105
  • 配送距离(米),高级字段
  • └ delivery_time
  • Number
  • 34
  • 配送时间(分),高级字段
  • └ shop_id
  • String
  • xxxxxxxxx
  • 店铺ID(加密)
  • └ commission
  • Number
  • 1345
  • 预估佣金(分)
result_code Number 0 返回码
message String success 返回消息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscUnionElemePromotionStorepromotionBatchGetRequest req = new AlibabaAlscUnionElemePromotionStorepromotionBatchGetRequest();
AlibabaAlscUnionElemePromotionStorepromotionBatchGetRequest.BatchQueryStorePromotionRequest obj1 = new AlibabaAlscUnionElemePromotionStorepromotionBatchGetRequest.BatchQueryStorePromotionRequest();
obj1.setPid("alsc_xxx_xxx_xxx");
obj1.setShopId("xxxxxxxx|axxxx");
obj1.setActivityId("2");
obj1.setMediaActivityId("111");
obj1.setSid("11111");
req.setQueryRequest(obj1);
AlibabaAlscUnionElemePromotionStorepromotionBatchGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_union_eleme_promotion_storepromotion_batch_get_response>
    <data>
        <store_promotion_dto>
            <title>淘客导购站专属店铺(分店名)</title>
            <shop_logo>https://xxx.jpeg</shop_logo>
            <indistinct_monthly_sales>400+</indistinct_monthly_sales>
            <commission_rate>0.2</commission_rate>
            <biz_type>activityCps</biz_type>
            <activity>
                <activity_id>2</activity_id>
                <service_fee_cent>500</service_fee_cent>
                <bonus_cent>500</bonus_cent>
                <daily_quantity>100</daily_quantity>
                <daily_sellable_quantity>80</daily_sellable_quantity>
                <start_time>1639065600</start_time>
                <end_time>1640880000</end_time>
                <bounty_min_limit_cent>400</bounty_min_limit_cent>
            </activity>
            <link>
                <wx_appid>wxxxxxxxx</wx_appid>
                <wx_path>xxxxx</wx_path>
                <picture>https://xxx</picture>
                <reduce_wx_appid>wxxxxxxxx</reduce_wx_appid>
                <reduce_wx_path>xxxxx</reduce_wx_path>
                <reduce_picture>https://xxx</reduce_picture>
                <mini_qrcode>https://xxx</mini_qrcode>
                <media_activity_wx_appid>wxxxxxxxx</media_activity_wx_appid>
                <media_activity_wx_path>xxxxx</media_activity_wx_path>
            </link>
            <category_1_id>260</category_1_id>
            <delivery_price>10.0</delivery_price>
            <recommend_reasons>
                <string>[&quot;酱油无骨炸鸡性价比很高&quot;</string>
                <string>&quot;韩国炸鸡中的热卖餐厅&quot;]</string>
            </recommend_reasons>
            <service_rating>4.7</service_rating>
            <items>
                <promotion_item>
                    <title>孜然炒肉夹馍</title>
                    <origin_price></origin_price>
                    <price>11.0</price>
                    <picture>https://xxx</picture>
                </promotion_item>
            </items>
            <category_1_name>全球美食</category_1_name>
            <delivery_distance>105</delivery_distance>
            <delivery_time>34</delivery_time>
            <shop_id>xxxxxxxxx</shop_id>
            <commission>1345</commission>
        </store_promotion_dto>
    </data>
    <result_code>0</result_code>
    <message>success</message>
</alibaba_alsc_union_eleme_promotion_storepromotion_batch_get_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部