文档中心 > API类目 > 电视淘宝

taobao.promotion.coupon.tv.search (查询用户优惠券列表)

查询电视淘宝绑定用户在该平台的领用优惠券列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
buyer_search_top_param BuyerCouponSearchTopParam 可选 参数
  • └ status
  • Number
  • 可选
  • 1
  • 状态
  • └ seller_nick
  • String
  • 可选
  • test
  • 昵称
  • └ page_size
  • Number
  • 可选
  • 1
  • 页数
  • └ current_page
  • Number
  • 可选
  • 1
  • 当前页数
  • └ buyer_id
  • Number
  • 可选
  • 1
  • 买家id
  • └ end_time_s
  • Date
  • 可选
  • 2015-12-23 00:34:43
  • 结束时间
appkey String 可选 1 appkey

响应参数

名称 类型 示例值 描述
result ResultSupport 1 result
  • └ module
  • String
  • 1
  • module
  • └ is_have_next_page
  • Boolean
  • 1
  • isHaveNextPage
  • └ total_count
  • Number
  • 1
  • totalCount
  • └ remark
  • String
  • 1
  • remark
  • └ search_request_id
  • String
  • 1
  • searchRequestId
  • └ exception
  • String
  • 1
  • exception
  • └ result_code
  • String
  • 1
  • resultCode
  • └ error_msg
  • String
  • 1
  • errorMsg
  • └ search_time
  • String
  • 2015-12-23 00:34:43
  • searchTime
  • └ need_interrupt
  • Boolean
  • 1
  • needInterrupt
  • └ success
  • Boolean
  • true
  • success
  • └ ext
  • String
  • error
  • ext

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
PromotionCouponTvSearchRequest req = new PromotionCouponTvSearchRequest();
PromotionCouponTvSearchRequest.BuyerCouponSearchTopParam obj1 = new PromotionCouponTvSearchRequest.BuyerCouponSearchTopParam();
obj1.setStatus(1L);
obj1.setSellerNick("test");
obj1.setPageSize(1L);
obj1.setCurrentPage(1L);
obj1.setBuyerId(1L);
obj1.setEndTimeS(StringUtils.parseDateTime("2015-12-23 00:34:43"));
req.setBuyerSearchTopParam(obj1);
req.setAppkey("1");
PromotionCouponTvSearchResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<promotion_coupon_tv_search_response>
    <result>
        <module>1</module>
        <is_have_next_page>1</is_have_next_page>
        <total_count>1</total_count>
        <remark>1</remark>
        <search_request_id>1</search_request_id>
        <exception>1</exception>
        <result_code>1</result_code>
        <error_msg>1</error_msg>
        <search_time>2015-12-23 00:34:43</search_time>
        <need_interrupt>1</need_interrupt>
        <success>true</success>
        <ext>error</ext>
    </result>
</promotion_coupon_tv_search_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

返回
顶部