taobao.mobile.promotion.coupon.seller.search (查询绑定卖家优惠券相关信息(手淘专用))

查询绑定卖家相关优惠券信息 如isv 百川 等外部业务方

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
trace_id String 可选 demo 请求id 排查线索 需保证单次调用唯一
spread_ids String 可选 demo 券id集合
page_size Number 可选 123 每页数据 最大20左右
current_page Number 可选 123 当前第几页 从第一页开始

响应参数

名称 类型 示例值 描述
coupon_search_result CouponSearchResult 优惠券查询结果
  • └ total_count
  • Number
  • 123
  • 符合条件总数量,用于分页等判断
  • └ trace_id
  • String
  • demo
  • 排查调用id
  • seller_coupon_details
  • AllsparkSellerCouponDetail []
  • 优惠券详情列表
  • └ coupon_type
  • Number
  • 123
  • 券类型
  • └ status
  • Number
  • 123
  • 状态信息
  • └ status_name
  • String
  • demo
  • 状态名称
  • └ end_time
  • Date
  • 2015-11-18 18:23:41
  • 券失效时间
  • └ url
  • String
  • demo
  • mtop 店铺链接
  • └ amount
  • Number
  • 123
  • 面额
  • └ start_time
  • Date
  • 2015-11-18 18:23:41
  • 券生效时间
  • └ spread_id
  • String
  • demo
  • 券对外ID
  • └ title
  • String
  • demo
  • 券名称
  • └ coupon_type_name
  • String
  • demo
  • 券类型
  • └ seller_nick
  • String
  • demo
  • 卖家昵称
  • └ total_count
  • String
  • demo
  • 设置发券数量总数
  • └ seller_id
  • Number
  • 123
  • 卖家ID
  • └ shop_name
  • String
  • demo
  • 店铺名称
  • └ start_fee
  • Number
  • 123
  • 满足金额阀值 如订单满多少元才可用
  • └ item_ids
  • Number []
  • [123,456]
  • 商品优惠券会有商品id集合
  • └ person_limit_count
  • Number
  • 123
  • 模板限领数量
  • └ reserve_count
  • Number
  • 123
  • 保留数量
  • └ apply_count
  • Number
  • 123
  • 已领取数量

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
MobilePromotionCouponSellerSearchRequest req = new MobilePromotionCouponSellerSearchRequest();
req.setTraceId("demo");
req.setSpreadIds("demo");
req.setPageSize(123L);
req.setCurrentPage(123L);
MobilePromotionCouponSellerSearchResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<mobile_promotion_coupon_seller_search_response>
    <coupon_search_result>
        <total_count>123</total_count>
        <trace_id>demo</trace_id>
        <seller_coupon_details>
            <allspark_seller_coupon_detail>
                <coupon_type>123</coupon_type>
                <status>123</status>
                <status_name>demo</status_name>
                <end_time>2015-11-18 18:23:41</end_time>
                <url>demo</url>
                <amount>123</amount>
                <start_time>2015-11-18 18:23:41</start_time>
                <spread_id>demo</spread_id>
                <title>demo</title>
                <coupon_type_name>demo</coupon_type_name>
                <seller_nick>demo</seller_nick>
                <total_count>demo</total_count>
                <seller_id>123</seller_id>
                <shop_name>demo</shop_name>
                <start_fee>123</start_fee>
                <item_ids>
                    <number>[123</number>
                    <number>456]</number>
                </item_ids>
                <person_limit_count>123</person_limit_count>
                <reserve_count>123</reserve_count>
                <apply_count>123</apply_count>
            </allspark_seller_coupon_detail>
        </seller_coupon_details>
    </coupon_search_result>
</mobile_promotion_coupon_seller_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>

错误码解释

错误码 错误描述 解决方案
isp.NO_DATA 没有优惠券数据 检查卖家优惠券是否勾选“微淘”渠道

API工具

如何获得此API

FAQ

返回
顶部