taobao.promotionmisc.common.item.detail.list.get (查询通用单品优惠详情列表)

查询通用单品优惠详情列表。

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
activity_id Number 必须 12345 优惠活动ID
page_no Number 必须 1 分页页码,页码从1开始
page_size Number 必须 20 分页大小,不能超过50

响应参数

名称 类型 示例值 描述
detail_list CommonItemDetail [] 活动详情列表
  • └ activity_id
  • Number
  • 12345
  • 优惠活动ID
  • └ detail_id
  • Number
  • 123456
  • 优惠详情ID
  • └ item_id
  • Number
  • 112233
  • 商品ID
  • └ promotion_type
  • Number
  • 1
  • 优惠类型,只有两种可选值:0-减钱;1-打折
  • └ promotion_value
  • Number
  • 900
  • 优惠力度,其值的解释方式由promotion_type定义:当为减钱时解释成减钱数量,如:900表示减9元;当为打折时解释成打折折扣,如:900表示打9折
is_success Boolean true 是否查询成功
total_count Number 94 数据总数量

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
PromotionmiscCommonItemDetailListGetRequest req = new PromotionmiscCommonItemDetailListGetRequest();
req.setActivityId(12345L);
req.setPageNo(1L);
req.setPageSize(20L);
PromotionmiscCommonItemDetailListGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<promotionmisc_common_item_detail_list_get_response>
    <detail_list>
        <common_item_detail>
            <activity_id>12345</activity_id>
            <detail_id>123456</detail_id>
            <item_id>112233</item_id>
            <promotion_type>1</promotion_type>
            <promotion_value>900</promotion_value>
        </common_item_detail>
    </detail_list>
    <is_success>true</is_success>
    <total_count>94</total_count>
</promotionmisc_common_item_detail_list_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>

错误码解释

错误码 错误描述 解决方案
isv.invalid-parameter:xxx 参数无效 修正调用参数后重试
isv.activity-not-exist 优惠活动不存在 确认优惠活动ID是否正确

API工具

如何获得此API

FAQ

返回
顶部