XCMG NS API


库存转移

<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;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>库存转移日期,格式为&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> <tr> <td>memo</td> <td>Falae</td> <td>String</td> <td>行备注</td> </tr> </tbody> </table> <h5>示例</h5> <pre><code>{ &amp;quot;operateType&amp;quot;:&amp;quot;create&amp;quot;, &amp;quot;docNum&amp;quot;: &amp;quot;xcmg-20221202001&amp;quot;, &amp;quot;date&amp;quot;: &amp;quot;2022/11/23&amp;quot;, &amp;quot;subsidiary&amp;quot;: &amp;quot;731465285701206016&amp;quot;, &amp;quot;fromLocation&amp;quot;: &amp;quot;774215190886481920&amp;quot;, &amp;quot;toLocation&amp;quot;: &amp;quot;740159193469681664&amp;quot;, &amp;quot;memo&amp;quot;: &amp;quot;库存转移PMS001&amp;quot;, &amp;quot;lines&amp;quot;: [{</code></pre> <p>    &quot;item&quot;: &quot;ARNE-2&quot;,     &quot;quantity&quot;: &quot;1&quot;,     &quot;unit&quot;: &quot;PCS&quot;,     &quot;memo&quot;: &quot;库存转移pms&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