智能仓入库-生成采购退货单
<h4><strong>请求路径 URL:</strong></h4>
<ul>
<li><code>/openApi/addPurchaseSheetReturn</code></li>
</ul>
<h4><strong>请求方式:</strong></h4>
<ul>
<li><code>POST</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>
<blockquote>
<p>说明:form-data 格式。</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数名</th>
<th>是否必选</th>
<th>类型</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>erpSheetCode</td>
<td>是</td>
<td>text 文本</td>
<td>智能仓订单code ,例:ISO22042400000700</td>
</tr>
<tr>
<td>erpSheetID</td>
<td>否</td>
<td>text 文本</td>
<td>智能仓订单ID,,例:700</td>
</tr>
<tr>
<td>customerID</td>
<td>是</td>
<td>text 文本</td>
<td>erp 客户ID,,例:62660</td>
</tr>
<tr>
<td>purchaseDetail</td>
<td>是</td>
<td>text 文本</td>
<td>商品列表,,例:[{"erpId":"1996","qty":"1","goodsInfo":"编码 名称"}], erpid:erp商品ID,qty:数量</td>
</tr>
<tr>
<td>erpReturnSheetID</td>
<td>是</td>
<td>text 文本</td>
<td>erp智能仓退货单单号</td>
</tr>
<tr>
<td>erpReturnSheetCode</td>
<td>是</td>
<td>text 文本</td>
<td>erp智能仓退货单ID</td>
</tr>
<tr>
<td>dmsUserName</td>
<td>是</td>
<td>text 文本</td>
<td>下单人姓名(ERP应该是存了下单人)</td>
</tr>
</tbody>
</table>
<h4><strong>返回值示例:</strong></h4>
<pre><code>{
"code": 0
}</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>data</td>
<td>string</td>
<td>dms采购退货单ID</td>
</tr>
</tbody>
</table>