DMS-ERP 对接接口文档


DMS库存信息

<h4><strong>请求路径 URL:</strong></h4> <ul> <li><code>/openApi/queryPartsQty</code></li> </ul> <h4><strong>请求方式:</strong></h4> <ul> <li><code>GET</code></li> </ul> <h4><strong>Header 信息:</strong></h4> <table> <thead> <tr> <th>header 头</th> <th>值</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>appId</td> <td>97A3AB74-7B39-4AAF-B3F8-808F484C0987</td> <td>应用ID</td> </tr> <tr> <td>timestamp</td> <td>获取当前时间戳</td> <td>时间戳</td> </tr> <tr> <td>signature</td> <td>生成请求签名</td> <td>签名,生成规则见「签名生成规则」</td> </tr> </tbody> </table> <p><img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/aefc6970c1ef0b07d0e9294fa536384d" alt="" /><img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/9fd14838700e7e65f3061509aa0452f7" alt="" /></p> <h4><strong>参数:</strong></h4> <p>&gt; 说明:form-data 格式。</p> <table> <thead> <tr> <th>参数名</th> <th>是否必选</th> <th>类型</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>customerID</td> <td>是</td> <td>text 文本</td> <td>erp客户ID</td> </tr> <tr> <td>type</td> <td>是</td> <td>text 文本</td> <td>是否分页 1-不分页 2-分页</td> </tr> <tr> <td>pageIndex</td> <td>否</td> <td>text 文本</td> <td>当前页面</td> </tr> <tr> <td>pageSize</td> <td>否</td> <td>text 文本</td> <td>每页大小</td> </tr> <tr> <td>brandId</td> <td>否</td> <td>text 文本</td> <td>品牌ID,多个使用逗号分隔</td> </tr> <tr> <td>categoryId</td> <td>否</td> <td>text 文本</td> <td>二级品类ID,多个使用逗号分隔</td> </tr> <tr> <td>spec</td> <td>否</td> <td>text 文本</td> <td>规格型号</td> </tr> <tr> <td>factoryCode</td> <td>否</td> <td>text 文本</td> <td>出厂编码</td> </tr> <tr> <td>goodsName</td> <td>否</td> <td>text 文本</td> <td>商品名称</td> </tr> <tr> <td>qtyFlag</td> <td>否</td> <td>text 文本</td> <td>不含0库存商品 1-是</td> </tr> </tbody> </table> <h4><strong>返回值示例:</strong></h4> <pre><code>{ &amp;quot;msg&amp;quot;: &amp;quot;success&amp;quot;, &amp;quot;code&amp;quot;: 0, &amp;quot;data&amp;quot;: [ { &amp;quot;secondCategory&amp;quot;: &amp;quot;空气滤清器&amp;quot;, &amp;quot;firstCategory&amp;quot;: &amp;quot;发动机配气系统&amp;quot;, &amp;quot;GoodsCode&amp;quot;: &amp;quot;201612061527&amp;quot;, &amp;quot;Unit&amp;quot;: &amp;quot;副&amp;quot;, &amp;quot;GoodsName&amp;quot;: &amp;quot;大洲三菱V31前刹车片D6081B&amp;quot;, &amp;quot;BrandName&amp;quot;: &amp;quot;发业&amp;quot;, &amp;quot;money&amp;quot;: 5060.0000, &amp;quot;FactoryCode&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;qty&amp;quot;: 46.00, &amp;quot;firstCategoryCode&amp;quot;: &amp;quot;021&amp;quot;, &amp;quot;ID&amp;quot;: &amp;quot;5D11CB08-50E3-4C11-8CC8-666EF1D3A310&amp;quot;, &amp;quot;SalePrice&amp;quot;: 110.00, &amp;quot;Spec&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;Location&amp;quot;: &amp;quot;&amp;quot; } ] }</code></pre> <h4>返回值参数说明:</h4> <table> <thead> <tr> <th>参数名</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>msg</td> <td>string</td> <td>描述</td> </tr> <tr> <td>code</td> <td>int</td> <td>状态码, 0 为成功 1 为失败</td> </tr> <tr> <td>ID</td> <td>string</td> <td>商品ID</td> </tr> <tr> <td>GoodsName</td> <td>string</td> <td>商品名称</td> </tr> <tr> <td>FactoryCode</td> <td>string</td> <td>出厂编码</td> </tr> <tr> <td>Spec</td> <td>string</td> <td>规格型号</td> </tr> <tr> <td>FirstCategory</td> <td>string</td> <td>一级品类名称</td> </tr> <tr> <td>SecondCategory</td> <td>string</td> <td>二级品类名称</td> </tr> <tr> <td>BrandName</td> <td>string</td> <td>品牌名称</td> </tr> <tr> <td>Unit</td> <td>string</td> <td>单位</td> </tr> <tr> <td>Qty</td> <td>string</td> <td>库存</td> </tr> <tr> <td>SalePrice</td> <td>string</td> <td>单价</td> </tr> <tr> <td>Money</td> <td>string</td> <td>库存金额</td> </tr> <tr> <td>Location</td> <td>string</td> <td>库位</td> </tr> <tr> <td>ShopName</td> <td>string</td> <td>店铺名称</td> </tr> <tr> <td>ErpID</td> <td>string</td> <td>Erp商品 ID</td> </tr> <tr> <td>InventoryLimit</td> <td>string</td> <td>库存下限</td> </tr> <tr> <td>InventoryCeiling</td> <td>string</td> <td>库存上限</td> </tr> <tr> <td>backlogDay</td> <td>string</td> <td>积压天数</td> </tr> </tbody> </table>

页面列表

ITEM_HTML