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

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

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
seller_nick String 可选 test 卖家昵称
current_page Number 可选 1
  • 默认值:1
  • 最小值:1
  • 当前第几页 从第一页开始
    page_size Number 可选 20
  • 默认值:20
  • 最小值:1
  • 最大值:20
  • 每页数据 最大20左右
    spread_ids String [] 可选 2342,234234
  • 最大列表长度:20
  • 券id集合

    响应参数

    名称 类型 示例值 描述
    result_code String isv.error-unauthorized 调用错误码,只有调用失败的时候才会有
    error_msg String ISV没有相应权限 失败详细描述
    invoke_result Boolean true 接口调用结果,调用成功为true,否则为false
    seller_coupon_details SellerCouponDetail [] 结果
    • └ title
    • String
    • demo
    • 券名称
    • └ seller_id
    • String
    • 2323
    • 卖家ID
    • └ status_name
    • String
    • 可用
    • 状态名称
    • └ coupon_type_name
    • String
    • demo
    • 券类型
    • └ amount
    • Number
    • 100
    • 面额
    • └ total_count
    • Number
    • 100
    • 设置发券数量总数
    • └ start_time
    • Date
    • 2015-01-01 00:00:00
    • 券生效时间
    • └ end_time
    • Date
    • 2015-01-01 00:00:00
    • 券失效时间
    • └ start_fee
    • Number
    • 100
    • 满足金额阀值 如订单满多少元才可用
    • └ url
    • String
    • demo
    • mtop 店铺链接
    • └ seller_nick
    • String
    • demo
    • 卖家名称
    • └ item_ids
    • Number []
    • 234,234234
    • 商品优惠券会有商品id集合
    • └ spread_id
    • String
    • 3453453
    • 券对外ID
    • └ coupon_type
    • Number
    • 100
    • 券类型
    • └ shop_name
    • String
    • demo
    • 店铺名称
    • └ status
    • Number
    • 100
    • 状态信息
    total_count Number 500 符合条件总数量,用于分页等判断

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    PromotionCouponSellerSearchRequest req = new PromotionCouponSellerSearchRequest();
    req.setSellerNick("test");
    req.setCurrentPage(1L);
    req.setPageSize(20L);
    req.setSpreadIds("2342,234234");
    PromotionCouponSellerSearchResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <promotion_coupon_seller_search_response>
        <result_code>isv.error-unauthorized</result_code>
        <error_msg>ISV没有相应权限</error_msg>
        <invoke_result>true</invoke_result>
        <seller_coupon_details>
            <seller_coupon_detail>
                <title>demo</title>
                <seller_id>2323</seller_id>
                <status_name>可用</status_name>
                <coupon_type_name>demo</coupon_type_name>
                <amount>100</amount>
                <total_count>100</total_count>
                <start_time>2015-01-01 00:00:00</start_time>
                <end_time>2015-01-01 00:00:00</end_time>
                <start_fee>100</start_fee>
                <url>demo</url>
                <seller_nick>demo</seller_nick>
                <item_ids>
                    <number>234</number>
                    <number>234234</number>
                </item_ids>
                <spread_id>3453453</spread_id>
                <coupon_type>100</coupon_type>
                <shop_name>demo</shop_name>
                <status>100</status>
            </seller_coupon_detail>
        </seller_coupon_details>
        <total_count>500</total_count>
    </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>

    错误码解释

    错误码 错误描述 解决方案

    API工具

    如何获得此API

    FAQ

    返回
    顶部