采购入库
<h5>简介</h5>
<ul>
<li>采购入库单接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>https://6409627-sb1.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=578&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入库单号传输到NS系统</td>
</tr>
<tr>
<td>associatedDoc(来源系统关联单据)</td>
<td>false</td>
<td>String</td>
<td>唯一标识;将PMS发运交接单号传输到NS系统</td>
</tr>
<tr>
<td>prcuSoTranid(发车资料号(PMS PO入库用))</td>
<td>false</td>
<td>String</td>
<td>将PMS的发车资料表号传输到NS系统,1.本地采购="true"的不传输此字段 2.本地采购=“false”的运单入库传输此字段 3.本地采购=“false”的采购入库不传输此字段</td>
</tr>
<tr>
<td>procuPoTranid(采购单号(PMS PO入库用))</td>
<td>false</td>
<td>String</td>
<td>将PMS的采购单号传输到NS系统,1.本地采购="true"的传输此字段 2.本地采购=“false”的运单入库无需传输此字段 3.本地采购=“false”的采购入库传输此字段</td>
</tr>
<tr>
<td>consignmentNote(发货通知单号)</td>
<td>false</td>
<td>String</td>
<td>将PMS的发货通知单号传输到NS系统,1.本地采购="true"的不传输此字段 2.本地采购=“false”的运单入库传输此字段 3.本地采购=“false”的采购入库不传输此字段</td>
</tr>
<tr>
<td>subsidiary(子公司)</td>
<td>true</td>
<td>String</td>
<td>将PMS备件子公司编码传输到NS系统</td>
</tr>
<tr>
<td>date(过账日期)</td>
<td>true</td>
<td>String</td>
<td>将PMS备件入库时期传输到NS系统</td>
</tr>
<tr>
<td>fromLocation(地点)</td>
<td>true</td>
<td>String</td>
<td>将PMS的采购入库的地点传输到NS系统内</td>
</tr>
<tr>
<td>packList(箱单)</td>
<td>false</td>
<td>Number</td>
<td>PMS中运单入库、采购入库对应的箱单</td>
</tr>
<tr>
<td>localPur(是否本地采购)</td>
<td>true</td>
<td>String</td>
<td>本地采购时赋值为“true”,进出口采购赋值为“false”</td>
</tr>
<tr>
<td>vendor(供应商)</td>
<td>true</td>
<td>String</td>
<td>PMS中供应商名称</td>
</tr>
</tbody>
</table>
<h5>行字段及其说明</h5>
<table>
<thead>
<tr>
<th>参数</th>
<th>需要</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>itemId(货品)</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>taxUnit(含税单价)</td>
<td>true</td>
<td>Number</td>
<td>将PMS的货品含税单价传输到NS系统内</td>
</tr>
<tr>
<td>procureReqFor(备件需求单号)</td>
<td>false</td>
<td>Number</td>
<td>运单入库:将PMS的备件需求单号传输到NS系统内;采购入库:将PMS的采购合同号传输到NS系统内</td>
</tr>
<tr>
<td>unit(单位)</td>
<td>true</td>
<td>Number</td>
<td>将PMS的发运交接单的单位传输到NS系统内</td>
</tr>
</tbody>
</table>
<h5>示例</h5>
<pre><code> {
&quot;date&quot;: &quot;2024/08/04&quot;,
&quot;packList&quot;: &quot;XGZX2024053110177670&quot;,
&quot;docNum&quot;: &quot;XGRI2024080410626953&quot;,
&quot;vendor&quot;: &quot;216909772622921728&quot;,
&quot;associatedDoc&quot;: &quot;XGJK4060202406250011&quot;,
&quot;operateType&quot;: &quot;create&quot;,
&quot;localPur&quot;: &quot;false&quot;,
&quot;prcuSoTranid&quot;: &quot;SO-JCK21010500187463&quot;,
&quot;fromLocation&quot;: &quot;782996674380300288&quot;,
&quot;lines&quot;: [
{
&quot;item&quot;: &quot;860159636&quot;,
&quot;unit&quot;: &quot;EA&quot;,
&quot;quantity&quot;: 1,
&quot;taxUnit&quot;: 6914.6,
&quot;procureReqFor&quot;: &quot;XGCC2024052410127297&quot;
}
],
&quot;consignmentNote&quot;: &quot;XGFT4060202406250011&quot;,
&quot;subsidiary&quot;: &quot;557120319597314048&quot;
}
</code></pre>
<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>