区域调拨单
<h5>简介</h5>
<ul>
<li>创建、更新或删除库存转移订单数据,对应系统脚本:pms库存转移订单SL。</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>https://6409627-sb1.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=576&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>事务的文档号</td>
</tr>
<tr>
<td>invAdjusType</td>
<td>True</td>
<td>String</td>
<td>库存调整类型,出库为'OUT',入库为'IN'</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>
</tbody>
</table>
<h5>示例</h5>
<pre><code>{</code></pre>
<p> "operateType":"create",
"docNum": "invadjustment002",
"date": "2022/12/21",
"invAdjusType":"OUT",
"subsidiary": "731465285701206016",
"fromLocation": "774215190886481920",
"toLocation": "774215006509072384",
"memo": "库存调整1",
"lines": [{
"item": "ARNE-2",
"quantity": "1",
"unit": "PCS"
}]
}</p>
<h3>或</h3>
<pre><code>{</code></pre>
<p> "operateType":"create",
"docNum": "invadjustment002",
"date": "2022/12/21",
"invAdjusType":"IN",
"subsidiary": "731465285701206016",
"fromLocation": "774215190886481920",
"toLocation": "774215006509072384",
"memo": "库存调整1",
"lines": [{
"item": "ARNE-2",
"quantity": "1",
"unit": "PCS"
}]
}</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>