文档中心 > API类目 > 天猫供应链

alibaba.dchain.aoxiang.scitem.query (货品查询)

货品查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
query_scitem_request QueryScItemRequest 必须 货品查询入参
  • └ request_id
  • String
  • 必须
  • 13756201
  • 业务请求ID,用于幂等
  • └ request_time
  • Number
  • 必须
  • 1660117030793
  • 业务请求时间戳
  • └ scitem_codes
  • String []
  • 必须
  • ["abc","def"]
  • 货品商家编码列表,一次查询不要超过100个货品

响应参数

名称 类型 示例值 描述
query_scitem_response TopResponse 返回结构体
  • data
  • QueryScItemResponse
  • 业务处理结果
  • └ result
  • String
  • success
  • 业务是否成功,success为成功,否则为错误码
  • └ error_message
  • String
  • ""
  • 业务错误信息,成功则为空
  • scitem_models
  • ScItemModel []
  • 货品列表
  • └ warehouse_code
  • String
  • ''
  • 仓编码
  • └ industry
  • String
  • NORMAL
  • 行业;综合-NORMAL 图书-BOOKS 美妆-BEAUTY
  • └ owner_code
  • String
  • xxx
  • 货主编码
  • └ scitem_name
  • String
  • xxx
  • 货品名称
  • └ scitem_code
  • String
  • xxx
  • 货品商家编码
  • └ scitem_id
  • String
  • 1345667
  • 货品id
  • └ warehouse_scitem_code
  • String
  • xxx
  • 仓货品编码
  • └ barcode
  • String
  • xxx
  • 条形码
  • └ brand_name
  • String
  • xxx
  • 品牌名称
  • └ category_name
  • String
  • xxx
  • 类目名称
  • └ pic_path
  • String
  • xxx
  • 货品主图URL
  • └ length
  • Number
  • 1000
  • 长(mm)
  • └ width
  • Number
  • 1000
  • 宽(mm)
  • └ height
  • Number
  • 1000
  • 高(mm)
  • └ weight
  • Number
  • 100
  • 重(g)
  • └ retail_price
  • Number
  • 10007
  • 零售价(人命币-分)
  • └ hazardous
  • Number
  • 0
  • 是否危险品,1=是,0=否
  • └ fragile
  • Number
  • 0
  • 是否易碎品,1=是,0=否
  • └ liquid
  • Number
  • 0
  • 是否液体,1=是,0=否
  • └ precious
  • Number
  • 0
  • 是否贵重品,1=是,0=否
  • └ storage_environment
  • String
  • NORMAL
  • 存储条件。NORMAL: 常温 COOL: 阴凉 5°C-12°C FRESHNESS:保鲜 0°C-4°C REEFER:冷藏 -18°C-0°C THERMOSTATIC:恒温 18°C-25°C FROZEN:冷冻 <-18°C COOL_AND_DRY:阴凉干燥 5°C-25°C,相对湿度65%以下
  • └ remark
  • String
  • xxx
  • 备注
  • └ extend_props
  • String
  • {"colour":"red"}
  • 扩展属性
  • └ industry_feature_map
  • String
  • {}
  • 行业属性
  • purchase_prices
  • PurchasePrice
  • {}
  • 采购价列表
  • └ price
  • Number
  • 1000
  • 采购价(人命币则为分)
  • └ currency
  • String
  • RMB
  • 币种
  • └ supplier_name
  • String
  • xxx
  • 供应商名称
  • └ scitem_type
  • Number
  • 1
  • 货品类型;1-普通货品, 2-组合货品
  • sub_scitems
  • SubScItemModel []
  • 子货品列表(仅对组合货品生效)
  • └ scitem_code
  • String
  • xxx
  • 货品商家编码
  • └ quantity
  • Number
  • 2
  • 数量
  • └ retail_price
  • Number
  • 1
  • 子货品单价(人命币则为分)
  • └ currency
  • String
  • RMB
  • 币种
  • └ fixed_price
  • Number
  • 0
  • 是否固定价格 1是 0否
  • └ scitem_id
  • String
  • 12345
  • 子货品id
  • └ success
  • Boolean
  • true
  • 调用是否成功
  • └ message
  • String
  • ""
  • 调用返回信息
  • └ code
  • String
  • ""
  • 调用返回信息码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaDchainAoxiangScitemQueryRequest req = new AlibabaDchainAoxiangScitemQueryRequest();
AlibabaDchainAoxiangScitemQueryRequest.QueryScItemRequest obj1 = new AlibabaDchainAoxiangScitemQueryRequest.QueryScItemRequest();
obj1.setRequestId("13756201");
obj1.setRequestTime(1660117030793L);
obj1.setScitemCodes(""abc","def"");
req.setQueryScitemRequest(obj1);
AlibabaDchainAoxiangScitemQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_dchain_aoxiang_scitem_query_response>
    <query_scitem_response>
        <data>
            <result>success</result>
            <error_message>&quot;&quot;</error_message>
            <scitem_models>
                <sc_item_model>
                    <warehouse_code>&apos;&apos;</warehouse_code>
                    <industry>NORMAL</industry>
                    <owner_code>xxx</owner_code>
                    <scitem_name>xxx</scitem_name>
                    <scitem_code>xxx</scitem_code>
                    <scitem_id>1345667</scitem_id>
                    <warehouse_scitem_code>xxx</warehouse_scitem_code>
                    <barcode>xxx</barcode>
                    <brand_name>xxx</brand_name>
                    <category_name>xxx</category_name>
                    <pic_path>xxx</pic_path>
                    <length>1000</length>
                    <width>1000</width>
                    <height>1000</height>
                    <weight>100</weight>
                    <retail_price>10007</retail_price>
                    <hazardous>0</hazardous>
                    <fragile>0</fragile>
                    <liquid>0</liquid>
                    <precious>0</precious>
                    <storage_environment>NORMAL</storage_environment>
                    <remark>xxx</remark>
                    <extend_props>{&quot;colour&quot;:&quot;red&quot;}</extend_props>
                    <industry_feature_map>{}</industry_feature_map>
                    <purchase_prices>
                        <price>1000</price>
                        <currency>RMB</currency>
                        <supplier_name>xxx</supplier_name>
                    </purchase_prices>
                    <scitem_type>1</scitem_type>
                    <sub_scitems>
                        <sub_sc_item_model>
                            <scitem_code>xxx</scitem_code>
                            <quantity>2</quantity>
                            <retail_price>1</retail_price>
                            <currency>RMB</currency>
                            <fixed_price>0</fixed_price>
                            <scitem_id>12345</scitem_id>
                        </sub_sc_item_model>
                    </sub_scitems>
                </sc_item_model>
            </scitem_models>
        </data>
        <success>true</success>
        <message>&quot;&quot;</message>
        <code>&quot;&quot;</code>
    </query_scitem_response>
</alibaba_dchain_aoxiang_scitem_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

返回
顶部