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

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

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

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
query_request SingleStorePromotionRequest 必须 查询rquest
  • └ pid
  • String
  • 必须
  • alsc_xxx_xxx_xxx
  • 渠道PID
  • └ shop_id
  • String
  • 必须
  • Exxxxxxxx
  • 门店ID(加密,具有时效性,建议每天更新一次)
  • └ activity_id
  • String
  • 可选
  • 2
  • 活动ID
  • └ sid
  • String
  • 可选
  • 11111
  • 三方扩展id
  • └ include_wx_img
  • Boolean
  • 可选
  • false
  • 是否返回微信推广图片
  • └ media_activity_id
  • String
  • 可选
  • 111
  • 媒体出资活动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链接-媒体出资活动
  • └ taobao_scheme_url
  • String
  • https://m.duanqu.com/?_ariver_appid=8251537&page=xxxxxxx
  • 淘宝饿了么小程序推广页
  • └ taobao_qrcode
  • String
  • https://xxx
  • 淘宝二维码
  • └ h5_url
  • String
  • https://xxx
  • h5店铺详情页地址
  • └ 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
  • 配送费(元)
result_code Number 0 返回码
message String success 返回消息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscUnionElemePromotionStorepromotionGetRequest req = new AlibabaAlscUnionElemePromotionStorepromotionGetRequest();
AlibabaAlscUnionElemePromotionStorepromotionGetRequest.SingleStorePromotionRequest obj1 = new AlibabaAlscUnionElemePromotionStorepromotionGetRequest.SingleStorePromotionRequest();
obj1.setPid("alsc_xxx_xxx_xxx");
obj1.setShopId("Exxxxxxxx");
obj1.setActivityId("2");
obj1.setSid("11111");
obj1.setIncludeWxImg(false);
obj1.setMediaActivityId("111");
req.setQueryRequest(obj1);
AlibabaAlscUnionElemePromotionStorepromotionGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_union_eleme_promotion_storepromotion_get_response>
    <data>
        <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>
            <taobao_scheme_url>https://m.duanqu.com/?_ariver_appid=8251537&amp;page=xxxxxxx</taobao_scheme_url>
            <taobao_qrcode>https://xxx</taobao_qrcode>
            <h5_url>https://xxx</h5_url>
        </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>
    </data>
    <result_code>0</result_code>
    <message>success</message>
</alibaba_alsc_union_eleme_promotion_storepromotion_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

返回
顶部