库存转移
<h5>简介</h5>
<ul>
<li>创建、更新或删除库存转移数据,对应系统脚本:pms库存转移RL。</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>https://6409627-sb1.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=575&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>docNum</td>
<td>True</td>
<td>String</td>
<td>PMS库存转移的单据编号</td>
</tr>
<tr>
<td>date</td>
<td>True</td>
<td>String</td>
<td>库存转移日期,格式为"2022/11/23"</td>
</tr>
<tr>
<td>subsidiary</td>
<td>True</td>
<td>String</td>
<td>子公司</td>
</tr>
<tr>
<td>fromLocation</td>
<td>True</td>
<td>String</td>
<td>自地点</td>
</tr>
<tr>
<td>toLocation</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>对象</td>
<td>行属性名称</td>
</tr>
<tr>
<td>item</td>
<td>True</td>
<td>String</td>
<td>货品</td>
</tr>
<tr>
<td>unit</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>memo</td>
<td>Falae</td>
<td>String</td>
<td>行备注</td>
</tr>
</tbody>
</table>
<h5>示例</h5>
<pre><code>{
&quot;operateType&quot;:&quot;create&quot;,
&quot;docNum&quot;: &quot;xcmg-20221202001&quot;,
&quot;date&quot;: &quot;2022/11/23&quot;,
&quot;subsidiary&quot;: &quot;731465285701206016&quot;,
&quot;fromLocation&quot;: &quot;774215190886481920&quot;,
&quot;toLocation&quot;: &quot;740159193469681664&quot;,
&quot;memo&quot;: &quot;库存转移PMS001&quot;,
&quot;lines&quot;: [{</code></pre>
<p> "item": "ARNE-2",
"quantity": "1",
"unit": "PCS",
"memo": "库存转移pms"
}]
}</p>
<h5>响应参数说明</h5>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>success</td>
<td>Boolean</td>
<td>true:success,false:failed</td>
</tr>
<tr>
<td>message</td>
<td>String</td>
<td>errors message</td>
</tr>
<tr>
<td>data</td>
<td>Array</td>
<td>Data</td>
</tr>
</tbody>
</table>
<h5>响应参数说明</h5>
<pre><code>// Error
{</code></pre>
<p> "success": false,
"message": "docNum must be filled!",
"data": []
}
// Success
{
"success": true,
"message": "",
"data": [{
"internalid" :3995
}]
}</p>
<h5>备注</h5>
<ul>
<li>For certification information, please see <a href="https://www.showdoc.com.cn/xcmgnsapi/9352531526636929">Interface Certification Information</a></li>
</ul>