文档中心 > API类目 > 菜鸟末端商业

cainiao.cntec.washing.item.query (查询洗衣商品信息)

洗衣工厂根据商品Code查询商品的标题、价格、图片等基础商品信息。

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
item_code_list String [] 必须 xxx,yyy
  • 最大列表长度:20
  • 商品编码列表
    station_id Number 必须 100262 驿站ID

    响应参数

    名称 类型 示例值 描述
    result Result 业务响应结果 接口返回model
    • └ success
    • Boolean
    • true
    • 是否成功
    • └ err_code
    • String
    • A00000
    • 错误码
    • model_list
    • Model []
    • 商品信息列表
    • 商品信息列表
    • └ item_original_price
    • Number
    • 1990
    • 商品原价,单位:分
    • └ item_title
    • String
    • 测试商品
    • 商品名称
    • └ item_code
    • String
    • XXX
    • 商品编码
    • └ item_price
    • Number
    • 100
    • 商品售卖价,单位:分
    • └ item_image
    • String
    • https://www.baidu.com/img/bd_logo1.png
    • 商品图片
    • └ error_msg
    • String
    • 成功
    • 出错时,这里显示错误信息

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    CainiaoCntecWashingItemQueryRequest req = new CainiaoCntecWashingItemQueryRequest();
    req.setItemCodeList("xxx,yyy");
    req.setStationId(100262L);
    CainiaoCntecWashingItemQueryResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <cainiao_cntec_washing_item_query_response>
        <result>
            <success>true</success>
            <err_code>A00000</err_code>
            <model_list>
                <model>
                    <item_original_price>1990</item_original_price>
                    <item_title>测试商品</item_title>
                    <item_code>XXX</item_code>
                    <item_price>100</item_price>
                    <item_image>https://www.baidu.com/img/bd_logo1.png</item_image>
                </model>
            </model_list>
            <error_msg>成功</error_msg>
        </result>
    </cainiao_cntec_washing_item_query_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

    返回
    顶部