文档中心 > API类目 > 银泰scm-openapi

alibaba.mos.goods.searchcspu (cspu查询)

商品信息查询(仅用于商品上传数据验证,不能用于商品下载,有限流)

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_cspu_criteria CspuCriteria 可选 组合查询对象
  • └ art_nos
  • String []
  • 可选
  • 68325
  • 货号
  • └ barcodes
  • String []
  • 可选
  • 68325-02
  • 条码列表
  • └ brand_ids
  • String []
  • 可选
  • 19835
  • 品牌id列表
  • └ cat_ids
  • String []
  • 可选
  • 1535
  • 类目
  • └ create_date_end
  • Date
  • 可选
  • 2018-02-01 11:11:11
  • 按创建时间查询结束条件
  • └ create_date_start
  • Date
  • 可选
  • 2018-02-01 11:11:11
  • 按创建时间查询开始条件
  • └ cspu_ids
  • String []
  • 可选
  • 10000337658602
  • cspu编码
  • └ keyword
  • String
  • 可选
  • 阿迪达斯男士上衣"
  • 模糊查询
  • └ property_value_ids
  • String []
  • 可选
  • 1585
  • 属性值id列表
  • └ spu_ids
  • String []
  • 可选
  • 100000336689
  • spuId列表
  • └ style_no
  • String
  • 可选
  • 6843548
  • 款号
param_paginator Paginator 必须 分页参数
  • └ page
  • Number
  • 可选
  • 1
  • 当前页码
  • └ page_size
  • Number
  • 可选
  • 100
  • 每页显示多少条记录

响应参数

名称 类型 示例值 描述
data PagedList data
  • └ current_page
  • Number
  • 1
  • 当前页
  • list
  • Cspudto []
  • 数据结果集
  • └ art_no
  • String
  • 234234
  • 货号
  • └ barcode
  • String
  • 4857694444
  • 条码
  • └ created
  • Date
  • 2017-11-11 11:11:11
  • 创建时间
  • └ creator_id
  • String
  • 2017-11-11 11:11:11
  • 创建人唯一标识
  • └ id
  • String
  • 123123
  • 唯一标识
  • └ level
  • Number
  • 1
  • 商品级别
  • └ modified
  • Date
  • 2017-11-23 12:11:12
  • 修改时间
  • └ modifier_id
  • String
  • 123231
  • 修改人唯一标识
  • └ out_id
  • String
  • 34344
  • 外部商品Id
  • properties
  • PropertyDto []
  • 商品属性
  • └ p_alias
  • String
  • 属性别名
  • └ p_custom_name
  • String
  • 自定义属性名称
  • └ p_id
  • String
  • 属性ID
  • └ p_name
  • String
  • 属性名称,如:颜色
  • └ v_alias
  • String
  • 属性别名
  • └ v_custom_name
  • String
  • 自定义属性值名称
  • └ v_id
  • String
  • 属性值Id
  • └ v_name
  • String
  • 属性值名称
  • └ img_url
  • String
  • https://gdp.alicdn.com/imgextra/i3/912835464/TB2jlCOdr1YBuNjSszeXXablFXa_!!912835464.jpg
  • 图片地址
  • └ order
  • Number
  • 1
  • 排序值
  • └ property_type
  • String
  • sale
  • 属性类型:sale, nonCritical, critical
  • spu
  • Spudto
  • spu
  • └ barcode_str
  • String
  • 023343434
  • 条码信息
  • └ brand_id
  • String
  • 23485
  • 品牌唯一标识
  • └ brand_name
  • String
  • 阿迪达斯
  • 品牌名称
  • └ cat_name
  • String
  • 女士
  • 类目名称
  • └ cid
  • String
  • 1000098
  • 类目唯一标识
  • └ created
  • Date
  • 2017-06-09 11:20:32
  • 创建时间
  • └ id
  • String
  • 56756
  • 唯一标识
  • └ is_new
  • Boolean
  • true
  • 是否新品,默认true
  • └ level
  • Number
  • 4
  • 商品级别:1.天猫,2.线上,3.单品,4.原始
  • └ material
  • String
  • 图片地址
  • 透明素材图
  • └ mdesc
  • String
  • 女士运动卫衣
  • m站产品描述
  • └ modified
  • Date
  • 2017-11-12 11:11:11
  • 修改时间
  • └ pc_desc
  • String
  • 女士运动卫衣
  • pc端产品描述
  • └ pic_url
  • String
  • https://gdp.alicdn.com/imgextra/i3/912835464/TB2jlCOdr1YBuNjSszeXXablFXa_!!912835464.jpg
  • 图片地址
  • └ price
  • String
  • 200.12
  • 吊牌价,单位:元
  • └ product_id
  • String
  • 23455445
  • 产品唯一标识
  • product_imgs
  • ProductImgDto []
  • 商品图片集合
  • └ id
  • Number
  • 234234
  • 唯一标识
  • └ position
  • Number
  • 1
  • 排序值
  • └ url
  • String
  • https://gdp.alicdn.com/imgextra/i3/912835464/TB2jlCOdr1YBuNjSszeXXablFXa_!!912835464.jpg
  • 图片绝对地址
  • props
  • PropertyDto []
  • 属性
  • └ p_alias
  • String
  • 属性别名
  • └ p_custom_name
  • String
  • 自定义属性名称
  • └ p_id
  • String
  • 属性Id
  • └ p_name
  • String
  • 属性名称
  • └ v_alias
  • String
  • 属性别名
  • └ v_custom_name
  • String
  • 自定义属性值名称
  • └ v_id
  • String
  • 属性值Id
  • └ v_name
  • String
  • 属性值名称,如:36
  • └ img_url
  • String
  • https://gdp.alicdn.com/imgextra/i3/912835464/TB2jlCOdr1YBuNjSszeXXablFXa_!!912835464.jpg
  • 图片地址
  • └ order
  • Number
  • 1
  • 排序值
  • └ property_type
  • String
  • sale
  • 属性类型:销售属性(sale),非关键属性(nonCritical), 关键属性(critical)
  • └ rate_num
  • Number
  • 1
  • 产品评分次数
  • └ sell_pt
  • String
  • 明细同款
  • 产品卖点描述,长度限制在20个汉字
  • └ status
  • Number
  • 1
  • 产品状态:删除(-1),正常(1)
  • └ style_no
  • String
  • 020714898342
  • 款号
  • └ sub_title
  • String
  • 短款卫衣
  • 子标题
  • └ tags
  • String
  • {"colorCode":"0901","colorName":"红色"}
  • 扩展属性
  • └ title
  • String
  • 女士卫衣
  • 产品名称
  • └ standard
  • Boolean
  • true
  • 是否标准产品
  • └ status
  • Number
  • 1
  • 当前状态:删除(-1),正常(1)
  • └ style_no
  • String
  • 020714898342
  • 款号
  • └ sub_title
  • String
  • 卫衣
  • 子标题
  • └ tag_price
  • String
  • 40.15
  • 吊牌价,单位:元
  • └ title
  • String
  • 卫衣
  • 标题
  • └ user_type
  • String
  • userType
  • └ page_size
  • Number
  • 10
  • 每页获取多少条记录
  • └ total_count
  • Number
  • 20
  • 总记录数
  • └ total_page
  • Number
  • 2
  • 总页数

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaMosGoodsSearchcspuRequest req = new AlibabaMosGoodsSearchcspuRequest();
AlibabaMosGoodsSearchcspuRequest.CspuCriteria obj1 = new AlibabaMosGoodsSearchcspuRequest.CspuCriteria();
obj1.setArtNos("68325");
obj1.setBarcodes("68325-02");
obj1.setBrandIds("19835");
obj1.setCatIds("1535");
obj1.setCreateDateEnd(StringUtils.parseDateTime("2018-02-01 11:11:11"));
obj1.setCreateDateStart(StringUtils.parseDateTime("2018-02-01 11:11:11"));
obj1.setCspuIds("10000337658602");
obj1.setKeyword("阿迪达斯男士上衣\"");
obj1.setPropertyValueIds("1585");
obj1.setSpuIds("100000336689");
obj1.setStyleNo("6843548");
req.setParamCspuCriteria(obj1);
AlibabaMosGoodsSearchcspuRequest.Paginator obj2 = new AlibabaMosGoodsSearchcspuRequest.Paginator();
obj2.setPage(1L);
obj2.setPageSize(100L);
req.setParamPaginator(obj2);
AlibabaMosGoodsSearchcspuResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_mos_goods_searchcspu_response>
    <data>
        <current_page>1</current_page>
        <list>
            <cspudto>
                <art_no>234234</art_no>
                <barcode>4857694444</barcode>
                <created>2017-11-11 11:11:11</created>
                <creator_id>2017-11-11 11:11:11</creator_id>
                <id>123123</id>
                <level>1</level>
                <modified>2017-11-23 12:11:12</modified>
                <modifier_id>123231</modifier_id>
                <out_id>34344</out_id>
                <properties>
                    <property_dto>
                        <p_alias></p_alias>
                        <p_custom_name></p_custom_name>
                        <p_id></p_id>
                        <p_name></p_name>
                        <v_alias></v_alias>
                        <v_custom_name></v_custom_name>
                        <v_id></v_id>
                        <v_name></v_name>
                        <img_url>https://gdp.alicdn.com/imgextra/i3/912835464/TB2jlCOdr1YBuNjSszeXXablFXa_!!912835464.jpg</img_url>
                        <order>1</order>
                        <property_type>sale</property_type>
                    </property_dto>
                </properties>
                <spu>
                    <barcode_str>023343434</barcode_str>
                    <brand_id>23485</brand_id>
                    <brand_name>阿迪达斯</brand_name>
                    <cat_name>女士</cat_name>
                    <cid>1000098</cid>
                    <created>2017-06-09 11:20:32</created>
                    <id>56756</id>
                    <is_new>true</is_new>
                    <level>4</level>
                    <material>图片地址</material>
                    <mdesc>女士运动卫衣</mdesc>
                    <modified>2017-11-12 11:11:11</modified>
                    <pc_desc>女士运动卫衣</pc_desc>
                    <pic_url>https://gdp.alicdn.com/imgextra/i3/912835464/TB2jlCOdr1YBuNjSszeXXablFXa_!!912835464.jpg</pic_url>
                    <price>200.12</price>
                    <product_id>23455445</product_id>
                    <product_imgs>
                        <product_img_dto>
                            <id>234234</id>
                            <position>1</position>
                            <url>https://gdp.alicdn.com/imgextra/i3/912835464/TB2jlCOdr1YBuNjSszeXXablFXa_!!912835464.jpg</url>
                        </product_img_dto>
                    </product_imgs>
                    <props>
                        <property_dto>
                            <p_alias></p_alias>
                            <p_custom_name></p_custom_name>
                            <p_id></p_id>
                            <p_name></p_name>
                            <v_alias></v_alias>
                            <v_custom_name></v_custom_name>
                            <v_id></v_id>
                            <v_name></v_name>
                            <img_url>https://gdp.alicdn.com/imgextra/i3/912835464/TB2jlCOdr1YBuNjSszeXXablFXa_!!912835464.jpg</img_url>
                            <order>1</order>
                            <property_type>sale</property_type>
                        </property_dto>
                    </props>
                    <rate_num>1</rate_num>
                    <sell_pt>明细同款</sell_pt>
                    <status>1</status>
                    <style_no>020714898342</style_no>
                    <sub_title>短款卫衣</sub_title>
                    <tags>{&quot;colorCode&quot;:&quot;0901&quot;,&quot;colorName&quot;:&quot;红色&quot;}</tags>
                    <title>女士卫衣</title>
                </spu>
                <standard>true</standard>
                <status>1</status>
                <style_no>020714898342</style_no>
                <sub_title>卫衣</sub_title>
                <tag_price>40.15</tag_price>
                <title>卫衣</title>
                <user_type></user_type>
            </cspudto>
        </list>
        <page_size>10</page_size>
        <total_count>20</total_count>
        <total_page>2</total_page>
    </data>
</alibaba_mos_goods_searchcspu_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

返回
顶部