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

文档中心 > API类目 > 店铺会员管理API

taobao.crm.promotion.coupon.querysellercoupons (查找专属优惠券)

提供isv查询卖家建立的专属优惠券

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
current_page Number 可选 1
  • 默认值:1
  • 1
    page_size Number 可选 20
  • 默认值:20
  • 不能超过20
    status_in_condition String [] 可选 1
  • 默认值:1
  • 最大列表长度:20
  • 状态 "正常",1 "结束领取",0 "失效"-1,无效-2
    spread_ids String [] 可选 1
  • 最大列表长度:20
  • 不传查全部
    valid_flag Boolean 可选 true
  • 默认值:true
  • 在状态为1的时候只查有效其他组合无效

    响应参数

    名称 类型 示例值 描述
    list SellerCouponDetail [] list 列表
    • └ amount
    • Number
    • 1
    • 面额分为单位
    • └ apply_count
    • Number
    • 1
    • 数量
    • └ apply_place
    • String
    • 0
    • 发型地点
    • └ coupon_type
    • Number
    • 1
    • 类型
    • └ gmt_created
    • Date
    • 2015-12-24 17:29:55
    • 获取时间
    • └ gmt_modified
    • Date
    • 2015-12-24 17:29:55
    • 修改时间
    • └ instruction
    • String
    • shuomin
    • 使用说明
    • └ item_ids
    • Number []
    • 1
    • 商品集
    • └ memo
    • String
    • memo
    • 备注
    • └ out_coupon_id
    • String
    • 1
    • 外部关联ID
    • └ out_coupon_type
    • Number
    • 1
    • 外部关联类型
    • └ person_limit_count
    • Number
    • 1
    • 每人申请数量
    • └ pictures
    • String
    • 1
    • 图片
    • └ reserve_count
    • Number
    • 1
    • 剩余数量
    • └ skin
    • String
    • skin
    • 券皮肤
    • └ spread_id
    • Number
    • 1
    • 券id
    • └ status
    • Number
    • 1
    • 状态
    • └ template_code
    • Number
    • 1
    • 券code
    • └ title
    • String
    • 1
    • 券名称
    • └ total_count
    • Number
    • 1
    • 券总数
    • └ uuid
    • String
    • 1464cbbdc40b4205a576b8c2b09d5205
    • uuid
    • └ start_time
    • Date
    • 2015-12-24 17:29:55
    • 开始日期
    • └ end_time
    • Date
    • 2015-12-24 17:29:55
    • 结束日期
    • └ start_fee
    • Number
    • 300
    • 最低购物金额分为单位
    total_count Number 0 总数
    rs_code String 0 没用
    rs_msg String 成功 没用
    rs_success Boolean true 没用

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    CrmPromotionCouponQuerysellercouponsRequest req = new CrmPromotionCouponQuerysellercouponsRequest();
    req.setCurrentPage(1L);
    req.setPageSize(20L);
    req.setStatusInCondition("1");
    req.setSpreadIds("1");
    req.setValidFlag(true);
    CrmPromotionCouponQuerysellercouponsResponse rsp = client.execute(req, sessionKey);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <crm_promotion_coupon_querysellercoupons_response>
        <list>
            <seller_coupon_detail>
                <amount>1</amount>
                <apply_count>1</apply_count>
                <apply_place>0</apply_place>
                <coupon_type>1</coupon_type>
                <gmt_created>2015-12-24 17:29:55</gmt_created>
                <gmt_modified>2015-12-24 17:29:55</gmt_modified>
                <instruction>shuomin</instruction>
                <item_ids>
                    <number>1</number>
                </item_ids>
                <memo>memo</memo>
                <out_coupon_id>1</out_coupon_id>
                <out_coupon_type>1</out_coupon_type>
                <person_limit_count>1</person_limit_count>
                <pictures>1</pictures>
                <reserve_count>1</reserve_count>
                <skin>skin</skin>
                <spread_id>1</spread_id>
                <status>1</status>
                <template_code>1</template_code>
                <title>1</title>
                <total_count>1</total_count>
                <uuid>1464cbbdc40b4205a576b8c2b09d5205</uuid>
                <start_time>2015-12-24 17:29:55</start_time>
                <end_time>2015-12-24 17:29:55</end_time>
                <start_fee>300</start_fee>
            </seller_coupon_detail>
        </list>
        <total_count>0</total_count>
        <rs_code>0</rs_code>
        <rs_msg>成功</rs_msg>
        <rs_success>true</rs_success>
    </crm_promotion_coupon_querysellercoupons_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

    返回
    顶部