文档中心 > API类目 > 新制造API

taobao.xunxi.hetai.wms.inventory.query (【HTW009】分页查询WMS库存)

【合泰】分页查询WMS库存

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
query_param HtSkuInventoryQuery 必须 请求参数
  • └ sku_keyword
  • String
  • 可选
  • 测试
  • sku关键字:名称/合约/款号
  • └ warehouse_codes
  • String []
  • 可选
  • []
  • 仓库ID
  • └ first_category_type
  • String
  • 必须
  • FABRIC/ACCESSORY
  • 物料类型
  • └ ht_material_code
  • String
  • 可选
  • 4000290992
  • 合泰物料代码
  • └ ht_contract_code
  • String
  • 可选
  • 24HT093
  • 合泰合约编码
  • └ ht_style_id
  • String
  • 可选
  • ST0930
  • 款编码
  • └ ht_material_color_code
  • String
  • 可选
  • ABC
  • 色号
page_query TopPageQuery 必须 topPageQuery
  • └ current_page
  • Number
  • 必须
  • 1
  • 当前页号
  • └ page_size
  • Number
  • 必须
  • 20
  • 页大小

响应参数

名称 类型 示例值 描述
top_result HSFResult 返回结果
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ code
  • Number
  • 401
  • 错误编码
  • └ msg
  • String
  • 授权异常
  • 错误信息
  • data
  • TopPage
  • 响应结果
  • items
  • HtSkuInventoryDto []
  • 分页明细列表
  • └ sku_id
  • String
  • 90383992829
  • skuId
  • sku_info
  • HeitaiSkuDto
  • 合泰SKU信息
  • └ ht_material_code
  • String
  • M982999
  • 合泰物料编码
  • └ ht_material_name
  • String
  • 测试物料
  • 合泰物料名称
  • └ first_category_type
  • String
  • FABRIC/ACCESSORY
  • 物料类型
  • └ measurement_unit
  • String
  • M
  • 库存单位
  • └ weight_unit
  • String
  • G
  • 克重单位
  • └ fabric_breadth_unit
  • String
  • CM
  • 面料门幅单位
  • └ ht_material_color
  • String
  • ABC
  • 合泰物料颜色
  • └ ht_contract_code
  • String
  • 24HT00001
  • 合泰合约编码
  • └ ht_style_id
  • String
  • 24ST091
  • 合泰的款ID
  • └ customer_provider
  • Boolean
  • true
  • 是否客供
  • └ ht_material_color_code
  • String
  • ABC
  • 色号
  • └ fabric_breadth
  • String
  • 100
  • 面料门幅
  • └ weight
  • BigDecimal
  • 100
  • 克重
  • └ specification
  • String
  • ABC
  • 规格
  • └ warehouse_code
  • String
  • 1004
  • 仓ID
  • └ quantity
  • BigDecimal
  • 100
  • 库存数量
  • └ supplier_material_batch
  • String
  • 11
  • 缸号/锅号
  • └ material_ext_attr
  • String
  • H1
  • 扩展信息:花型、其它1等
  • └ total_count
  • Number
  • 100
  • 总数量
  • └ current_page
  • Number
  • 1
  • 当前页号
  • └ page_size
  • Number
  • 20
  • 页大小

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
XunxiHetaiWmsInventoryQueryRequest req = new XunxiHetaiWmsInventoryQueryRequest();
XunxiHetaiWmsInventoryQueryRequest.HtSkuInventoryQuery obj1 = new XunxiHetaiWmsInventoryQueryRequest.HtSkuInventoryQuery();
obj1.setSkuKeyword("测试");
obj1.setWarehouseCodes("");
obj1.setFirstCategoryType("FABRIC/ACCESSORY");
obj1.setHtMaterialCode("4000290992");
obj1.setHtContractCode("24HT093");
obj1.setHtStyleId("ST0930");
obj1.setHtMaterialColorCode("ABC");
req.setQueryParam(obj1);
XunxiHetaiWmsInventoryQueryRequest.TopPageQuery obj2 = new XunxiHetaiWmsInventoryQueryRequest.TopPageQuery();
obj2.setCurrentPage(1L);
obj2.setPageSize(20L);
req.setPageQuery(obj2);
XunxiHetaiWmsInventoryQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<xunxi_hetai_wms_inventory_query_response>
    <top_result>
        <success>true</success>
        <code>401</code>
        <msg>授权异常</msg>
        <data>
            <items>
                <ht_sku_inventory_dto>
                    <sku_id>90383992829</sku_id>
                    <sku_info>
                        <ht_material_code>M982999</ht_material_code>
                        <ht_material_name>测试物料</ht_material_name>
                        <first_category_type>FABRIC/ACCESSORY</first_category_type>
                        <measurement_unit>M</measurement_unit>
                        <weight_unit>G</weight_unit>
                        <fabric_breadth_unit>CM</fabric_breadth_unit>
                        <ht_material_color>ABC</ht_material_color>
                        <ht_contract_code>24HT00001</ht_contract_code>
                        <ht_style_id>24ST091</ht_style_id>
                        <customer_provider>true</customer_provider>
                        <ht_material_color_code>ABC</ht_material_color_code>
                        <fabric_breadth>100</fabric_breadth>
                        <weight>100</weight>
                        <specification>ABC</specification>
                    </sku_info>
                    <warehouse_code>1004</warehouse_code>
                    <quantity>100</quantity>
                    <supplier_material_batch>11</supplier_material_batch>
                    <material_ext_attr>H1</material_ext_attr>
                </ht_sku_inventory_dto>
            </items>
            <total_count>100</total_count>
            <current_page>1</current_page>
            <page_size>20</page_size>
        </data>
    </top_result>
</xunxi_hetai_wms_inventory_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

返回
顶部