DMS-ERP 对接接口文档


库存预警

<h4><strong>请求路径 URL:</strong></h4> <ul> <li><code>/openApi/queryGoodsList</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> <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>shopId</td> <td>是</td> <td>text 文本</td> <td>dms门店 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>goodsCode</td> <td>否</td> <td>text 文本</td> <td>商品编码</td> </tr> <tr> <td>goodsName</td> <td>否</td> <td>text 文本</td> <td>商品名称</td> </tr> <tr> <td>brand</td> <td>否</td> <td>text 文本</td> <td>品牌</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>OEMCode</td> <td>否</td> <td>text 文本</td> <td>OE号</td> </tr> <tr> <td>model</td> <td>否</td> <td>text 文本</td> <td>适用车型</td> </tr> <tr> <td>scanCode</td> <td>否</td> <td>text 文本</td> <td>条形码</td> </tr> <tr> <td>lastSupplierName</td> <td>否</td> <td>text 文本</td> <td>上次供应商</td> </tr> <tr> <td>supplierName</td> <td>否</td> <td>text 文本</td> <td>主供应商</td> </tr> <tr> <td>isEnable</td> <td>否</td> <td>text 文本</td> <td>商品状态 0正常采销 1停用2售完即止3停止销售, 不传默认 0,2,3</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;totalSize&amp;quot;: 65, &amp;quot;list&amp;quot;: [ { &amp;quot;supplierName&amp;quot;: null, &amp;quot;shopCode&amp;quot;: &amp;quot;Z8&amp;quot;, &amp;quot;IsDeleted&amp;quot;: 0, &amp;quot;__row_number__&amp;quot;: 1, &amp;quot;MatchCarModel&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;GoodsCode&amp;quot;: &amp;quot;000014&amp;quot;, &amp;quot;shopName&amp;quot;: &amp;quot;连锁一号测试店铺&amp;quot;, &amp;quot;inventoryLimit&amp;quot;: 1.00, &amp;quot;AdviseQty&amp;quot;: 20.00, &amp;quot;Unit&amp;quot;: &amp;quot;卷&amp;quot;, &amp;quot;GoodsName&amp;quot;: &amp;quot;机油98&amp;quot;, &amp;quot;BrandName&amp;quot;: &amp;quot;凯其士&amp;quot;, &amp;quot;InventoryCeiling&amp;quot;: 20.00, &amp;quot;FactoryCode&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;Qty&amp;quot;: 0.00, &amp;quot;LastSupplierName&amp;quot;: null, &amp;quot;CategoryName&amp;quot;: &amp;quot;制动鼓&amp;quot;, &amp;quot;ID&amp;quot;: &amp;quot;2F7277CA-1A9E-4BEF-86AF-8E2AA8BED37C&amp;quot;, &amp;quot;Spec&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;ShopID&amp;quot;: &amp;quot;1B43BADD-B670-4B27-B6C1-604523287EAF&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>IsDeleted</td> <td>string</td> <td>0正常采销 1停用2售完即止3停止销售</td> </tr> <tr> <td>GoodsCode</td> <td>string</td> <td>商品编码</td> </tr> <tr> <td>GoodsName</td> <td>string</td> <td>商品名称</td> </tr> <tr> <td>CategoryName</td> <td>string</td> <td>商品分类</td> </tr> <tr> <td>Unit</td> <td>string</td> <td>单位</td> </tr> <tr> <td>BrandName</td> <td>string</td> <td>品牌</td> </tr> <tr> <td>Spec</td> <td>string</td> <td>规格型号</td> </tr> <tr> <td>FactoryCode</td> <td>string</td> <td>出厂编码</td> </tr> <tr> <td>OEMCode</td> <td>string</td> <td>OE号</td> </tr> <tr> <td>Qty</td> <td>string</td> <td>当前库存</td> </tr> <tr> <td>InventoryCeiling</td> <td>string</td> <td>库存上限</td> </tr> <tr> <td>inventoryLimit</td> <td>string</td> <td>库存下限</td> </tr> <tr> <td>AdviseQty</td> <td>string</td> <td>类型 建议补货量</td> </tr> <tr> <td>MatchCarModel</td> <td>string</td> <td>适用车型</td> </tr> <tr> <td>LastSupplierName</td> <td>string</td> <td>上次供应商</td> </tr> <tr> <td>supplierName</td> <td>string</td> <td>主供应商</td> </tr> <tr> <td>shopCode</td> <td>string</td> <td>门店编码</td> </tr> <tr> <td>shopName</td> <td>string</td> <td>门店名称</td> </tr> </tbody> </table>

页面列表

ITEM_HTML