XCMG NS API


区域调拨单

<h5>简介</h5> <ul> <li>创建、更新或删除库存转移订单数据。</li> </ul> <h5>请求URL</h5> <ul> <li><code>https://6409627-sb2.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=576&amp;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>日期,格式为&quot;2022/11/23&quot;</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>    &quot;operateType&quot;:&quot;create&quot;,     &quot;docNum&quot;: &quot;invadjustment002&quot;,     &quot;date&quot;: &quot;2022/12/21&quot;,     &quot;invAdjusType&quot;:&quot;OUT&quot;,     &quot;subsidiary&quot;: &quot;731465285701206016&quot;,     &quot;fromLocation&quot;: &quot;774215190886481920&quot;,     &quot;toLocation&quot;: &quot;774215006509072384&quot;,     &quot;memo&quot;: &quot;库存调整1&quot;,     &quot;lines&quot;: [{         &quot;item&quot;: &quot;ARNE-2&quot;,         &quot;quantity&quot;: &quot;1&quot;,         &quot;unit&quot;: &quot;PCS&quot;     }] }</p> <h3>或</h3> <pre><code>{</code></pre> <p>    &quot;operateType&quot;:&quot;create&quot;,     &quot;docNum&quot;: &quot;invadjustment002&quot;,     &quot;date&quot;: &quot;2022/12/21&quot;,     &quot;invAdjusType&quot;:&quot;IN&quot;,     &quot;subsidiary&quot;: &quot;731465285701206016&quot;,     &quot;fromLocation&quot;: &quot;774215190886481920&quot;,     &quot;toLocation&quot;: &quot;774215006509072384&quot;,     &quot;memo&quot;: &quot;库存调整1&quot;,     &quot;lines&quot;: [{         &quot;item&quot;: &quot;ARNE-2&quot;,         &quot;quantity&quot;: &quot;1&quot;,         &quot;unit&quot;: &quot;PCS&quot;     }] }</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>    &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 }] }</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>

页面列表

ITEM_HTML