文档中心 > API类目 > 淘分销API

taobao.tfx.product.search (淘分销渠道产品搜索)

淘分销渠道产品搜索

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
isv_product_search_request ISVProductSearchRequest 必须 搜索请求对象
  • └ title
  • String
  • 可选
  • 奶粉
  • 产品标题
  • page_param
  • PageParam
  • 必须
  • 分页参数
  • └ page_no
  • Number
  • 必须
  • 1
  • 页码
  • └ page_size
  • Number
  • 必须
  • 10
  • 每页数量
  • └ tags
  • String []
  • 可选
  • gj_zx
  • 产品标(gj_zx-全球购甄选,qqg-全球购, outbound-保税区发货,inland-大贸)
  • cost_price_range
  • PriceRange
  • 可选
  • 成本价范围
  • └ high
  • BigDecimal
  • 可选
  • 200.00
  • 范围上限
  • └ low
  • BigDecimal
  • 可选
  • 100.00
  • 范围下限
  • order
  • Order
  • 可选
  • 排序
  • └ order_type
  • String
  • 可选
  • desc
  • 排序方式(desc-降序,asc-升序)
  • └ order_by
  • String
  • 可选
  • costPrice
  • 排序属性(空-综合排序,"costPrice"-成本价)

响应参数

名称 类型 示例值 描述
page_no Number 1 页码
result_code Number 10001 错误码
page_size Number 10 每页数量
total_count Number 500 记录总数量
result_msg String 参数不合法 错误信息
data ISVProductSearchResultVO [] 搜索结果实体
  • └ supplier_item_id
  • Number
  • 658218539444
  • 渠道产品id
  • └ title
  • String
  • 泥膜
  • 产品标题
  • └ cost_price
  • BigDecimal
  • 90.00
  • 成本价
  • └ suggest_retail_price
  • BigDecimal
  • 100.00
  • 建议零售价
  • └ pic_url
  • String
  • i4/2214218025807/O1CN01znpRzl1sleoqLwp9j_!!2214218025807.jpg
  • 图片地址(前缀拼接https://img.alicdn.com/imgextra)
  • └ tags
  • String []
  • 渠道产品标
  • cost_price_range
  • PriceRange
  • 成本价范围
  • └ low
  • BigDecimal
  • 100.00
  • 最低价
  • └ high
  • BigDecimal
  • 200.00
  • 最高价
  • suggest_retail_price_range
  • PriceRange
  • 建议零售价范围
  • └ low
  • BigDecimal
  • 100.00
  • 最低价
  • └ high
  • BigDecimal
  • 200.00
  • 最高价
is_success Boolean true 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TfxProductSearchRequest req = new TfxProductSearchRequest();
TfxProductSearchRequest.ISVProductSearchRequest obj1 = new TfxProductSearchRequest.ISVProductSearchRequest();
obj1.setTitle("奶粉");
TfxProductSearchRequest.PageParam obj2 = new TfxProductSearchRequest.PageParam();
obj2.setPageNo(1L);
obj2.setPageSize(10L);
obj1.setPageParam(obj2);
obj1.setTags("gj_zx");
TfxProductSearchRequest.PriceRange obj3 = new TfxProductSearchRequest.PriceRange();
obj3.setHigh("200.00");
obj3.setLow("100.00");
obj1.setCostPriceRange(obj3);
TfxProductSearchRequest.Order obj4 = new TfxProductSearchRequest.Order();
obj4.setOrderType("desc");
obj4.setOrderBy("costPrice");
obj1.setOrder(obj4);
req.setIsvProductSearchRequest(obj1);
TfxProductSearchResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tfx_product_search_response>
    <page_no>1</page_no>
    <result_code>10001</result_code>
    <page_size>10</page_size>
    <total_count>500</total_count>
    <result_msg>参数不合法</result_msg>
    <data>
        <i_s_v_product_search_result_v_o>
            <supplier_item_id>658218539444</supplier_item_id>
            <title>泥膜</title>
            <cost_price>90.00</cost_price>
            <suggest_retail_price>100.00</suggest_retail_price>
            <pic_url>i4/2214218025807/O1CN01znpRzl1sleoqLwp9j_!!2214218025807.jpg</pic_url>
            <cost_price_range>
                <low>100.00</low>
                <high>200.00</high>
            </cost_price_range>
            <suggest_retail_price_range>
                <low>100.00</low>
                <high>200.00</high>
            </suggest_retail_price_range>
        </i_s_v_product_search_result_v_o>
    </data>
    <is_success>true</is_success>
</tfx_product_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

返回
顶部