库存查询接口(多商品)

接口介绍

商家调用接口,查询商品的库存量。

API名称:inventory.query

入参规范

<?xml version="1.0" encoding="utf-8"?>

<request> 
  <criteriaList> 
    <criteria> 
      <warehouseCode>仓库编码,string(50)</warehouseCode>  
      <ownerCode>货主编码,string(50),必填</ownerCode>  
      <itemCode>商品编码,string(50),必填</itemCode>  
      <itemId>仓储系统商品ID,string(50)</itemId>  
      <inventoryType>库存类型,string(50),ZP=正品,CC=残次,默认为查所有类型的库存</inventoryType> 
    </criteria> 
  </criteriaList> 
</request>

出参规范

<?xml version="1.0" encoding="utf-8"?>

<response> 
  <flag>success|failure</flag>  
  <code>响应码</code>  
  <message>响应信息</message>  
  <items> 
    <item> 
      <warehouseCode>仓库编码,string(50),必填</warehouseCode>  
      <itemCode>商品编码,string (50),必填</itemCode>  
      <itemId>仓储系统商品ID,string(50),条件必填</itemId>  
      <inventoryType>库存类型,string(50),ZP=正品,CC=残次</inventoryType>  
      <quantity>未冻结库存数量,int,必填</quantity>  
      <lockQuantity>冻结库存数量,int,必填</lockQuantity>  
      <batchCode>批次编码,string(50)</batchCode>  
      <productDate>商品生产日期,YYYY-MM-DD</productDate>  
      <expireDate>商品过期日期,YYYY-MM-DD</expireDate>  
      <produceCode>生产批号,string (50)</produceCode>  
      <extendProps>扩展属性 
        <key1>value1</key1>  
        <key2>value2</key2> 
      </extendProps> 
    </item> 
  </items> 
</response>