注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > 本地生活联盟平台-卡券API

alibaba.alsc.union.eleme.coupon.detail.get (本地联盟卡券详情)

本地联盟卡券详情

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
query_request CouponDetailRequest 必须 查询rquest
  • └ item_id
  • String
  • 必须
  • 0DE2606D93414EE8ECD84D49995A66D8
  • 商品ID
  • └ item_type
  • Number
  • 可选
  • 1
  • 商品类型(1-商品券;2-代金券; 3 - 特价菜)

响应参数

名称 类型 示例值 描述
data CouponDetailDto 数据
  • └ 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
  • 售价(分)
  • └ activity_price_cent
  • Number
  • 6000
  • 活动价(分)
  • └ start_time
  • Number
  • 1690375813
  • 起始时间(秒)
  • └ end_time
  • Number
  • 1693054213
  • 结束时间(秒)
  • └ discount
  • String
  • 0.5
  • 折扣
  • └ commission_rate
  • String
  • 0.1
  • 佣金比例
  • └ commission
  • Number
  • 1000
  • 预估佣金(分)
  • └ apply_city_count
  • Number
  • 12
  • 适用城市数量
  • └ apply_shop_count
  • Number
  • 212
  • 适用门店数量
  • services
  • ItemContentDto []
  • 服务
  • └ type
  • String
  • text
  • 内容类型(text-文本;image-图片)
  • └ contents
  • String []
  • 内容
  • └ title
  • String
  • 标题
  • 标题
  • usage_method
  • ItemContentDto []
  • 使用方法
  • └ type
  • String
  • text
  • 内容类型(text-文本;image-图片)
  • └ contents
  • String []
  • 内容
  • └ title
  • String
  • 标题
  • 标题
  • item_rules
  • ItemContentDto []
  • 商品规则
  • └ type
  • String
  • text
  • 内容类型(text-文本;image-图片)
  • └ contents
  • String []
  • 内容
  • └ title
  • String
  • 退款规则
  • 标题
  • purchase_limit
  • PurchaseLimit
  • 限购信息
  • └ item_daily_limit_per_user
  • Number
  • 1
  • 商品限购-每人每天限购(-1表示不限购)
  • └ item_limit_per_user
  • Number
  • 2
  • 商品限购-每人终身限购(-1表示不限购)
  • └ activity_daily_limit_per_user
  • Number
  • 1
  • 活动限购-每人每天限购(-1表示不限购)
  • └ activity_limit_per_user
  • Number
  • 2
  • 活动限购-每人活动限购(-1表示不限购)
  • └ promo_start_time
  • Number
  • 1695018073
  • 优惠开始时间(秒)
  • └ promo_end_time
  • Number
  • 1696089599
  • 优惠结束时间(秒)
  • └ activity_price_type
  • Number
  • 1
  • 活动价格类型(1-普通;2-CRM)
  • └ item_material_pictures
  • String []
  • 商品素材图片
  • └ item_type
  • Number
  • 1
  • 商品类型(1-商品券;2-代金券)
  • ticket
  • ItemTicket
  • 凭证信息
  • └ price
  • Number
  • 5000
  • 价格(分)
  • └ quantity
  • Number
  • 2
  • 数量
  • └ threshold
  • Number
  • 8000
  • 使用门槛(分)
  • └ suit_city
  • String
  • 上海(50家)、杭州(10家)
  • 城市可核销门店数汇总
  • └ suit_province
  • String
  • 上海(50家)、浙江(10家)
  • 省份直辖市可核销门店数汇总
  • specification
  • SuitShopNum
  • 商品规格补充说明
  • └ brand_name
  • String
  • xxx
  • 商品品牌名称
  • └ par_value
  • String
  • xxxx
  • 商品面值说明
  • └ exchange_desc
  • String
  • xxxx
  • 兑换方式描述
  • └ item_desc
  • String
  • xxx
  • 商品描述
  • └ ingredient
  • String
  • xxx
  • 原料
  • └ item_weight
  • String
  • xxx
  • 份量
biz_error_code String 0 错误码
biz_error_message String xxx不正确 错误消息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscUnionElemeCouponDetailGetRequest req = new AlibabaAlscUnionElemeCouponDetailGetRequest();
AlibabaAlscUnionElemeCouponDetailGetRequest.CouponDetailRequest obj1 = new AlibabaAlscUnionElemeCouponDetailGetRequest.CouponDetailRequest();
obj1.setItemId("0DE2606D93414EE8ECD84D49995A66D8");
obj1.setItemType(1L);
req.setQueryRequest(obj1);
AlibabaAlscUnionElemeCouponDetailGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_union_eleme_coupon_detail_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>
        <activity_price_cent>6000</activity_price_cent>
        <start_time>1690375813</start_time>
        <end_time>1693054213</end_time>
        <discount>0.5</discount>
        <commission_rate>0.1</commission_rate>
        <commission>1000</commission>
        <apply_city_count>12</apply_city_count>
        <apply_shop_count>212</apply_shop_count>
        <services>
            <item_content_dto>
                <type>text</type>
                <title>标题</title>
            </item_content_dto>
        </services>
        <usage_method>
            <item_content_dto>
                <type>text</type>
                <title>标题</title>
            </item_content_dto>
        </usage_method>
        <item_rules>
            <item_content_dto>
                <type>text</type>
                <title>退款规则</title>
            </item_content_dto>
        </item_rules>
        <purchase_limit>
            <item_daily_limit_per_user>1</item_daily_limit_per_user>
            <item_limit_per_user>2</item_limit_per_user>
            <activity_daily_limit_per_user>1</activity_daily_limit_per_user>
            <activity_limit_per_user>2</activity_limit_per_user>
        </purchase_limit>
        <promo_start_time>1695018073</promo_start_time>
        <promo_end_time>1696089599</promo_end_time>
        <activity_price_type>1</activity_price_type>
        <item_type>1</item_type>
        <ticket>
            <price>5000</price>
            <quantity>2</quantity>
            <threshold>8000</threshold>
        </ticket>
        <suit_city>上海(50家)、杭州(10家)</suit_city>
        <suit_province>上海(50家)、浙江(10家)</suit_province>
        <specification>
            <brand_name>xxx</brand_name>
            <par_value>xxxx</par_value>
            <exchange_desc>xxxx</exchange_desc>
            <item_desc>xxx</item_desc>
            <ingredient>xxx</ingredient>
            <item_weight>xxx</item_weight>
        </specification>
    </data>
    <biz_error_code>0</biz_error_code>
    <biz_error_message>xxx不正确</biz_error_message>
</alibaba_alsc_union_eleme_coupon_detail_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

返回
顶部