其他出入库
<h5>简介</h5>
<ul>
<li>创建、更新或删除库存调整数据,对应系统脚本:pms库存调整接口RL。</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>https://6409627.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=574&amp;deploy=1</code></li>
</ul>
<h5>请求方法</h5>
<ul>
<li>POST</li>
</ul>
<h5>头字段及其说明</h5>
<table>
<thead>
<tr>
<th>参数</th>
<th>需要</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>operateType</td>
<td>True</td>
<td>String</td>
<td>操作类型,取值:create</td>
</tr>
<tr>
<td>invAdjusType</td>
<td>True</td>
<td>String</td>
<td>库存调整类型</td>
</tr>
<tr>
<td>docNum</td>
<td>True</td>
<td>String</td>
<td>PMS库存调整的编号</td>
</tr>
<tr>
<td>date</td>
<td>True</td>
<td>String</td>
<td>日期,格式为"2022/12/25"</td>
</tr>
<tr>
<td>subsidiary</td>
<td>True</td>
<td>String</td>
<td>子公司编码</td>
</tr>
<tr>
<td>memo</td>
<td>Falae</td>
<td>String</td>
<td>备注</td>
</tr>
</tbody>
</table>
<h5>行字段及其说明</h5>
<table>
<thead>
<tr>
<th>参数</th>
<th>需要</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>lines</td>
<td>True</td>
<td>Array</td>
<td>行属性名称</td>
</tr>
<tr>
<td>item</td>
<td>True</td>
<td>String</td>
<td>出入库的货品名称</td>
</tr>
<tr>
<td>quantity</td>
<td>True</td>
<td>Number</td>
<td>出入库的数量</td>
</tr>
<tr>
<td>unitPrice</td>
<td>false</td>
<td>Number</td>
<td>单价</td>
</tr>
<tr>
<td>location</td>
<td>True</td>
<td>String</td>
<td>出入库的仓库</td>
</tr>
<tr>
<td>memo</td>
<td>False</td>
<td>String</td>
<td>行交易备注</td>
</tr>
</tbody>
</table>
<h5>示例</h5>
<pre><code> {
&quot;operateType&quot;:&quot;create&quot;,
&quot;invAdjusType&quot;: &quot;三包入库&quot;,
&quot;docNum&quot;: &quot;xcmg-20221130001&quot;,
&quot;date&quot;: &quot;2022/11/23&quot;,
&quot;subsidiary&quot;: &quot;731465285701206016&quot;,
&quot;memo&quot;: &quot;库存调整pms&quot;,
&quot;lines&quot;: [{
&quot;item&quot;: &quot;ARNE-1&quot;,
&quot;quantity&quot;: &quot;1&quot;,
&quot;unitPrice&quot;:&quot;1000&quot;,
&quot;location&quot;: &quot;774215190886481920&quot;,
&quot;memo&quot;: &quot;库存调整pms&quot;
}]
}</code></pre>
<h5>响应参数说明</h5>
<table>
<thead>
<tr>
<th>参数</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>success</td>
<td>Boolean</td>
<td>true:成功,false:失败</td>
</tr>
<tr>
<td>message</td>
<td>String</td>
<td>错误信息</td>
</tr>
<tr>
<td>data</td>
<td>Array</td>
<td>返回数据</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> // Error
{
&quot;success&quot;: false,
&quot;message&quot;: &quot;docNum must be filled!&quot;,
&quot;data&quot;: []
}
// Success
{
&quot;success&quot;: true,
&quot;message&quot;: &quot;&quot;,
&quot;data&quot;: [{
&quot;internalid&quot; :3995
}]
}</code></pre>
<h5>备注</h5>
<ul>
<li>For certification information, please see <a href="https://www.showdoc.com.cn/xcmgnsapi/9352531526636929">Interface Certification Information</a></li>
</ul>