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=1368&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>操作类型,传固定值:&quot;create&quot;</td> </tr> <tr> <td>docNum</td> <td>true</td> <td>String</td> <td>来源系统文档编码:内部采购传PMS的“运单入库单”;外部采购传PMS的“采购入库单”</td> </tr> <tr> <td>associatedDoc</td> <td>true</td> <td>String</td> <td>来源系统关联单据:PMS的备件需求单号</td> </tr> <tr> <td>subsidiary</td> <td>true</td> <td>String</td> <td>子公司:将PMS的子公司Orgid</td> </tr> <tr> <td>vendor</td> <td>true</td> <td>String</td> <td>供应商:PMS的供应商编码</td> </tr> <tr> <td>employee</td> <td>true</td> <td>String</td> <td>员工:PMS的业务员的SAP编码</td> </tr> <tr> <td>country</td> <td>true</td> <td>Number</td> <td>国家: 格式:国家简称,eg:CN</td> </tr> <tr> <td>selfPurchase</td> <td>true</td> <td>String</td> <td>自营/收购:若为自营,传&quot;1&quot;;若为收购,传&quot;2&quot;</td> </tr> <tr> <td>lines</td> <td>true</td> <td>Array</td> <td>行节点</td> </tr> </tbody> </table> <h5>行字段及其说明</h5> <table> <thead> <tr> <th>参数</th> <th>需要</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>lineIdPms</td> <td>true</td> <td>String</td> <td>行id:PMS的行ID</td> </tr> <tr> <td>lineDate</td> <td>true</td> <td>String</td> <td>行日期:PMS的行日期,格式为:YYYY/MM/DD</td> </tr> <tr> <td>item</td> <td>true</td> <td>String</td> <td>货品:PMS的物料编码</td> </tr> <tr> <td>quantity</td> <td>true</td> <td>Number</td> <td>数量:PMS的数量</td> </tr> <tr> <td>taxUnit</td> <td>true</td> <td>Number</td> <td>含税单价: PMS的含税单价,跟主机厂的采购价</td> </tr> </tbody> </table> <h5>示例</h5> <pre><code>{ &amp;quot;operateType&amp;quot;:&amp;quot;create&amp;quot;,</code></pre> <p>    &quot;docNum&quot;: &quot;test_docNum&quot;,     &quot;associatedDoc&quot;: &quot;test_associatedDoc&quot;,     &quot;subsidiary&quot;: &quot;test_subsidiary&quot;,     &quot;vendor&quot;: &quot;test_vendor&quot;,     &quot;employee&quot;: &quot;test_employee&quot;,     &quot;country&quot;: &quot;test_country&quot;,     &quot;selfPurchase&quot;: &quot;1&quot;,     &quot;lines&quot;: [         {             &quot;lineIdPms&quot;: &quot;1&quot;,             &quot;lineDate&quot;: &quot;2023/12/21&quot;,             &quot;item&quot;: &quot;test_item2&quot;,             &quot;quantity&quot;: 5,             &quot;taxUnit&quot;: 1000         },         {             &quot;lineIdPms&quot;: &quot;2&quot;,             &quot;lineDate&quot;: &quot;2023/12/21&quot;,             &quot;item&quot;: &quot;test_item2&quot;,             &quot;quantity&quot;: 10,             &quot;taxUnit&quot;: 2000         }     ] }</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