文档中心 > API类目 > 淘宝闪购联盟-单店推广API

alibaba.alsc.union.eleme.promotion.itempromotion.get (淘宝闪购联盟单品推广详情(餐饮))

淘宝闪购联盟单品推广详情(餐饮)

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
query_request SingleItemPromotionRequest 必须 查询rquest
  • └ biz_type
  • String
  • 必须
  • hot_item
  • 商品类型(hot_item-爆品券,union_item-热卖商品)
  • └ pid
  • String
  • 必须
  • alsc_123_131_1313
  • 推广位
  • └ item_id
  • String
  • 必须
  • 0DE2606D93414EE8ECD84D49995A66D8
  • 商品ID
  • └ sid
  • String
  • 可选
  • 1313
  • 会员ID(需要联系运营申请)
  • └ include_wx_img
  • Boolean
  • 可选
  • true
  • 是否返回微信推广图片

响应参数

名称 类型 示例值 描述
data ItemPromotionDto 数据
  • └ item_id
  • String
  • 0DE2606D93414EE8ECD84D49995A66D8
  • 商品ID
  • └ item_name
  • String
  • 37店通用|鲜蔬乌冬面套餐|5折限量抢购
  • 名称
  • └ picture
  • String
  • https://img.alicdn.com/i4/2200801151512/O1CN01xvUYrB1N2XYk7esnL_!!2200801151512-0-koubei.jpg
  • 图片
  • └ biz_type
  • String
  • hoard_coupon
  • 商品类型
  • └ original_price_cent
  • Number
  • 10000
  • 原价(分)
  • └ sell_price_cent
  • Number
  • 8000
  • 售价(分)
  • └ discount
  • String
  • 0.5
  • 折扣
  • └ start_ime
  • Number
  • 1690375813
  • 起始时间(秒)
  • └ end_time
  • Number
  • 1693054213
  • 结束时间(秒)
  • └ commission_rate
  • String
  • 0.1
  • 佣金比例
  • └ commission
  • Number
  • 1000
  • 预估佣金(分)
  • └ stock
  • Number
  • 122
  • 库存
  • └ apply_city_count
  • Number
  • 12
  • 适用城市数量
  • └ apply_shop_count
  • Number
  • 212
  • 适用门店数量
  • link
  • PromotionLink
  • 分享链接
  • └ wx_appid
  • String
  • wxxxxxxxx
  • 微信小程序appId
  • └ wx_path
  • String
  • xxxxx
  • 微信小程序path链接
  • └ wx_mini_qrcode
  • String
  • xxxxx
  • 微信小程序二维码
  • └ wx_picture
  • String
  • https://xxxxx.jpg
  • 微信推广图片
  • └ alipay_scheme_url
  • String
  • xxxxx
  • 支付宝小程序链接
  • h5_promotion
  • TopH5PromotionDto
  • h5推广链接
  • └ h5_url
  • String
  • http://xxx
  • 长连接
  • └ short_link
  • String
  • http://xxx
  • 短连接
  • └ h5_qr_code
  • String
  • http://xxx
  • 推广二维码
  • └ h5_img_url
  • String
  • http://xxx
  • 推广海报
  • taobao_promotion
  • TopTaobaoPromotionDto
  • 淘宝链接
  • └ h5_url
  • String
  • http://xxx
  • 推广链接
  • └ h5_short_url
  • String
  • http://xxx
  • 短连接
  • └ tb_qr_code
  • String
  • http://xxx
  • 二维码
  • └ img_url
  • String
  • http://xxx
  • 海报
  • └ scheme_url
  • String
  • tbopen://m.taobao.com/tb
  • schemeurl
  • └ tb_watchword
  • String
  • xxx
  • 淘口令
  • └ tb_watchword_suggest
  • String
  • xxx
  • 淘口令完整版
  • wx_promotion
  • TopWxPromotionDto
  • 微信链接
  • └ wx_app_id
  • String
  • 123
  • appid
  • └ wx_path
  • String
  • bdlm/pages/guide/index?
  • apppath
  • └ wx_qr_code
  • String
  • http://xxx
  • 二维码
  • └ img_url
  • String
  • http://xxx
  • 海报
  • alipay_promotion
  • TopAlipayPromotionDto
  • 支付宝链接
  • └ alipay_scheme_url
  • String
  • alipays://platformapi/star
  • scheme唤端地址
  • └ alipay_watchword
  • String
  • 123
  • 支付宝口令
  • └ alipay_watchword_suggest
  • String
  • 123
  • 支付宝完整口令
  • └ img_url
  • String
  • http://xxx
  • 海报地址
  • └ alipay_qr_code
  • String
  • http://xxx
  • 二维码
  • app_promotion
  • TopAppPromotionDto
  • app链接
  • └ deep_link
  • String
  • eleme://
  • deeplink地址
  • └ eleme_word
  • String
  • 1234
  • 饿口令
  • └ word_valid_date
  • String
  • 1792222
  • 饿口令有效期
  • └ item_type
  • Number
  • 1
  • 商品类型(1-商品券;2-代金券)
  • ticket
  • ItemTicket
  • 凭证信息
  • └ price
  • Number
  • 5000
  • 价格(分)
  • └ quantity
  • Number
  • 2
  • 数量
  • └ threshold
  • Number
  • 8000
  • 使用门槛(分)
  • └ total_sales
  • String
  • 800+
  • 销量
result_code Number 0 返回码
message String success 返回消息
error_message String xxx不正确 错误消息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscUnionElemePromotionItempromotionGetRequest req = new AlibabaAlscUnionElemePromotionItempromotionGetRequest();
AlibabaAlscUnionElemePromotionItempromotionGetRequest.SingleItemPromotionRequest obj1 = new AlibabaAlscUnionElemePromotionItempromotionGetRequest.SingleItemPromotionRequest();
obj1.setBizType("hot_item");
obj1.setPid("alsc_123_131_1313");
obj1.setItemId("0DE2606D93414EE8ECD84D49995A66D8");
obj1.setSid("1313");
obj1.setIncludeWxImg(true);
req.setQueryRequest(obj1);
AlibabaAlscUnionElemePromotionItempromotionGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_union_eleme_promotion_itempromotion_get_response>
    <data>
        <item_id>0DE2606D93414EE8ECD84D49995A66D8</item_id>
        <item_name>37店通用|鲜蔬乌冬面套餐|5折限量抢购</item_name>
        <picture>https://img.alicdn.com/i4/2200801151512/O1CN01xvUYrB1N2XYk7esnL_!!2200801151512-0-koubei.jpg</picture>
        <biz_type>hoard_coupon</biz_type>
        <original_price_cent>10000</original_price_cent>
        <sell_price_cent>8000</sell_price_cent>
        <discount>0.5</discount>
        <start_ime>1690375813</start_ime>
        <end_time>1693054213</end_time>
        <commission_rate>0.1</commission_rate>
        <commission>1000</commission>
        <stock>122</stock>
        <apply_city_count>12</apply_city_count>
        <apply_shop_count>212</apply_shop_count>
        <link>
            <wx_appid>wxxxxxxxx</wx_appid>
            <wx_path>xxxxx</wx_path>
            <wx_mini_qrcode>xxxxx</wx_mini_qrcode>
            <wx_picture>https://xxxxx.jpg</wx_picture>
            <alipay_scheme_url>xxxxx</alipay_scheme_url>
            <h5_promotion>
                <h5_url>http://xxx</h5_url>
                <short_link>http://xxx</short_link>
                <h5_qr_code>http://xxx</h5_qr_code>
                <h5_img_url>http://xxx</h5_img_url>
            </h5_promotion>
            <taobao_promotion>
                <h5_url>http://xxx</h5_url>
                <h5_short_url>http://xxx</h5_short_url>
                <tb_qr_code>http://xxx</tb_qr_code>
                <img_url>http://xxx</img_url>
                <scheme_url>tbopen://m.taobao.com/tb</scheme_url>
                <tb_watchword>xxx</tb_watchword>
                <tb_watchword_suggest>xxx</tb_watchword_suggest>
            </taobao_promotion>
            <wx_promotion>
                <wx_app_id>123</wx_app_id>
                <wx_path>bdlm/pages/guide/index?</wx_path>
                <wx_qr_code>http://xxx</wx_qr_code>
                <img_url>http://xxx</img_url>
            </wx_promotion>
            <alipay_promotion>
                <alipay_scheme_url>alipays://platformapi/star</alipay_scheme_url>
                <alipay_watchword>123</alipay_watchword>
                <alipay_watchword_suggest>123</alipay_watchword_suggest>
                <img_url>http://xxx</img_url>
                <alipay_qr_code>http://xxx</alipay_qr_code>
            </alipay_promotion>
            <app_promotion>
                <deep_link>eleme://</deep_link>
                <eleme_word>1234</eleme_word>
                <word_valid_date>1792222</word_valid_date>
            </app_promotion>
        </link>
        <item_type>1</item_type>
        <ticket>
            <price>5000</price>
            <quantity>2</quantity>
            <threshold>8000</threshold>
        </ticket>
        <total_sales>800+</total_sales>
    </data>
    <result_code>0</result_code>
    <message>success</message>
    <error_message>xxx不正确</error_message>
</alibaba_alsc_union_eleme_promotion_itempromotion_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

返回
顶部