alibaba.mos.goods.categorybrandsize.findbycriteria (测试接口findByCriteria)

类目品牌尺码-分页查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
criteria CategoryBrandSizeCriteria 必须 入参criteria
  • └ brand_list
  • String []
  • 可选
  • []
  • 品牌IDs
  • └ brand_type
  • String
  • 可选
  • TMALL
  • 品牌类型
  • └ category_list
  • String []
  • 可选
  • []
  • 类目IDs
  • └ id
  • String
  • 可选
  • 1
  • id:序号
paginator Paginator 必须 分页参数
  • └ page
  • Number
  • 可选
  • 0
  • 页码
  • └ page_size
  • Number
  • 可选
  • 0
  • 页大小
  • sort_arr_list
  • Sort []
  • 可选
  • 排序规则
  • └ direction
  • String
  • 可选
  • 0
  • 排序顺序
  • └ field
  • String
  • 可选
  • foo
  • 排序字段

响应参数

名称 类型 示例值 描述
result ResultDo 返回结果
  • └ call_id
  • String
  • 328221e0-af6d-483f-8c21-a234edc646da
  • 调用链ID
  • err
  • ExceptionMessage
  • 错误信息
  • └ detail
  • String
  • 错误堆栈信息
  • 错误信息
  • └ msg
  • String
  • 参数异常
  • 错误描述
  • └ name
  • String
  • ParamsException
  • 错误编码
  • val
  • PagedList
  • 返回值
  • └ current_page
  • Number
  • 1
  • 当前页数
  • └ first
  • Boolean
  • true
  • 是否第一页
  • └ last
  • Boolean
  • false
  • 是否最后一页
  • list
  • CategoryBrandSizeDto []
  • 返回列表
  • └ brand_i_d
  • String
  • 22
  • 品牌ID
  • └ brand_type
  • String
  • TMALL
  • 品牌类型
  • └ category_i_d
  • String
  • 1243
  • 类目ID
  • └ id
  • String
  • 1
  • id:序号
  • └ size_urls
  • String []
  • []
  • 图片路径
  • └ page_size
  • Number
  • 10
  • 每页大小
  • └ total_count
  • Number
  • 100
  • 总条数
  • └ total_page
  • Number
  • 10
  • 总页数

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaMosGoodsCategorybrandsizeFindbycriteriaRequest req = new AlibabaMosGoodsCategorybrandsizeFindbycriteriaRequest();
AlibabaMosGoodsCategorybrandsizeFindbycriteriaRequest.CategoryBrandSizeCriteria obj1 = new AlibabaMosGoodsCategorybrandsizeFindbycriteriaRequest.CategoryBrandSizeCriteria();
obj1.setBrandList("");
obj1.setBrandType("TMALL");
obj1.setCategoryList("");
obj1.setId("1");
req.setCriteria(obj1);
AlibabaMosGoodsCategorybrandsizeFindbycriteriaRequest.Paginator obj2 = new AlibabaMosGoodsCategorybrandsizeFindbycriteriaRequest.Paginator();
obj2.setPage(0L);
obj2.setPageSize(0L);
List<AlibabaMosGoodsCategorybrandsizeFindbycriteriaRequest.Sort> list4 = new ArrayList<AlibabaMosGoodsCategorybrandsizeFindbycriteriaRequest.Sort>();
AlibabaMosGoodsCategorybrandsizeFindbycriteriaRequest.Sort obj5 = new AlibabaMosGoodsCategorybrandsizeFindbycriteriaRequest.Sort();
list4.add(obj5);
obj5.setDirection("0");
obj5.setField("foo");
obj2.setSortArrList(list4);
req.setPaginator(obj2);
AlibabaMosGoodsCategorybrandsizeFindbycriteriaResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_mos_goods_categorybrandsize_findbycriteria_response>
    <result>
        <call_id>328221e0-af6d-483f-8c21-a234edc646da</call_id>
        <err>
            <detail>错误堆栈信息</detail>
            <msg>参数异常</msg>
            <name>ParamsException</name>
        </err>
        <val>
            <current_page>1</current_page>
            <first>true</first>
            <last>false</last>
            <list>
                <category_brand_size_dto>
                    <brand_i_d>22</brand_i_d>
                    <brand_type>TMALL</brand_type>
                    <category_i_d>1243</category_i_d>
                    <id>1</id>
                    <size_urls>
                        <string>[]</string>
                    </size_urls>
                </category_brand_size_dto>
            </list>
            <page_size>10</page_size>
            <total_count>100</total_count>
            <total_page>10</total_page>
        </val>
    </result>
</alibaba_mos_goods_categorybrandsize_findbycriteria_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

返回
顶部