进出口采购入库
<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;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的“运单入库单”;外部采购传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>自营/收购:若为自营,传"1";若为收购,传"2"</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>{
&quot;operateType&quot;:&quot;create&quot;,</code></pre>
<p> "docNum": "test_docNum",
"associatedDoc": "test_associatedDoc",
"subsidiary": "test_subsidiary",
"vendor": "test_vendor",
"employee": "test_employee",
"country": "test_country",
"selfPurchase": "1",
"lines": [
{
"lineIdPms": "1",
"lineDate": "2023/12/21",
"item": "test_item2",
"quantity": 5,
"taxUnit": 1000
},
{
"lineIdPms": "2",
"lineDate": "2023/12/21",
"item": "test_item2",
"quantity": 10,
"taxUnit": 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> "success": false,
"message": "{\"meesage\":\"报文格式错误,应为对象\"}",
"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>