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=694&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>associatedDoc(来源系统关联单据)</td> <td>false</td> <td>String</td> <td>海外PMS采购入库撤回对应的入库单号</td> </tr> <tr> <td>invAdjusType(库存调整类型)</td> <td>true</td> <td>String</td> <td>固定值:&quot;撤销&quot;</td> </tr> <tr> <td>subsidiary</td> <td>true</td> <td>String</td> <td>子公司</td> </tr> <tr> <td>date</td> <td>true</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>item(货品)</td> <td>true</td> <td>String</td> <td>唯一标识;将PMS的物料编码传输到NS系统</td> </tr> <tr> <td>quantity(数量)</td> <td>true</td> <td>Number</td> <td>将PMS备件入库数量传输到NS系统</td> </tr> <tr> <td>location(地点)</td> <td>true</td> <td>Number</td> <td>将PMS的发运交接单货品含税单价传输到NS系统内</td> </tr> <tr> <td>memo</td> <td>true</td> <td>Number</td> <td>备注</td> </tr> </tbody> </table> <h5>示例</h5> <p> {     &quot;operateType&quot;:&quot;create&quot;,     &quot;invAdjusType&quot;:&quot;撤销&quot;,      &quot;docNum&quot;:&quot;xcmg-202212190002&quot;,      &quot;associatedDoc&quot;:&quot;1447152&quot;,      &quot;subsidiary&quot;:&quot;731465285701206016&quot;,      &quot;date&quot;:&quot;2022/12/06&quot;,      &quot;memo&quot;:&quot;采购退货订单PMS&quot;,      &quot;lines&quot;:[ {&quot;item&quot;:&quot;ARNE-1&quot;,&quot;quantity&quot;:10,&quot;location&quot;:&quot;774215190886481920&quot;,&quot;memo&quot;:&quot;采购退货订单PMS&quot;}]     }</p> <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 {</code></pre> <p>    &quot;success&quot;: false,     &quot;message&quot;: &quot;{\&quot;meesage\&quot;:\&quot;报文格式错误,应为对象\&quot;}&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