sap收入发票
<h5>简介</h5>
<ul>
<li> SAP-NS收入发票接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><a href="https://6409627-sb1.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=1079&deploy=1">https://6409627-sb1.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=1079&deploy=1</a></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>docNum</td>
<td>true</td>
<td>String</td>
<td>SAP中收入发票的单据编号 免费备件:SAP发货单号</td>
</tr>
<tr>
<td>invoiceType</td>
<td>true</td>
<td>String</td>
<td>SAP传输代码S/R/C/F,对应下列含义 S:销售 R:退货 C:冲销 F:免费</td>
</tr>
<tr>
<td>productGroup</td>
<td>true</td>
<td>String</td>
<td>SAP传输代码10/11,对应下列含义 10:整机 11:备件</td>
</tr>
<tr>
<td>customerId</td>
<td>true</td>
<td>String</td>
<td>SAP中内部客户的ID 例如 “9210 徐工矿山设备澳大利亚有限公司“, 就传输“9210”</td>
</tr>
<tr>
<td>date</td>
<td>true</td>
<td>String</td>
<td>SAP中部收入发票的过账日期格式“yyyy/MM/dd”</td>
</tr>
<tr>
<td>associatedDoc</td>
<td>true</td>
<td>String</td>
<td>SAP中发货单的单据编号</td>
</tr>
<tr>
<td>associatedSalesInv</td>
<td>冲销true,退货false</td>
<td>String</td>
<td>SAP中冲销发票关联的正向销售发票的单据编号</td>
</tr>
<tr>
<td>saleConNum</td>
<td>true</td>
<td>String</td>
<td>SAP中收入发票对应的线下合同编号</td>
</tr>
<tr>
<td>commercialInvoice</td>
<td>true</td>
<td>String</td>
<td>SAP中收入发票对应的商业发票号</td>
</tr>
<tr>
<td>memo</td>
<td>false</td>
<td>String</td>
<td>SAP中收入发票对应的备注信息</td>
</tr>
<tr>
<td>currency</td>
<td>发票类型为免费时False,其余true</td>
<td>String</td>
<td>SAP中收入发票的货币</td>
</tr>
<tr>
<td>lines</td>
<td>true</td>
<td>String</td>
<td>行数据 JSON数组</td>
</tr>
<tr>
<td>lineIdPms</td>
<td>true</td>
<td>String</td>
<td>SAP发票行号</td>
</tr>
<tr>
<td>item</td>
<td>整机销售订单true, 备件销售订单false</td>
<td>String</td>
<td>"SAP中部收入发票对应的整机型号</td>
</tr>
<tr>
<td>serialNumber</td>
<td>整机销售订单true, 备件销售订单false</td>
<td>String</td>
<td>SAP中整机发票的车号</td>
</tr>
<tr>
<td>configChinese</td>
<td>整机销售订单true, 备件销售订单false</td>
<td>String</td>
<td>如果是备件销售订单,则不传"(SAP中部收入发票对应的整机的配置描述 中文)</td>
</tr>
<tr>
<td>configEnglish</td>
<td>整机销售订单true, 备件销售订单false</td>
<td>String</td>
<td>SAP中部收入发票对应的整机的配置描述(英文)</td>
</tr>
<tr>
<td>itemCode</td>
<td>true</td>
<td>String</td>
<td>SAP中的9位物料编码</td>
</tr>
<tr>
<td>itemDeschinese</td>
<td>false</td>
<td>String</td>
<td>SAP中的物料描述(中文)</td>
</tr>
<tr>
<td>itemDesenglish</td>
<td>false</td>
<td>String</td>
<td>SAP中的物料描述(英文)</td>
</tr>
<tr>
<td>packList</td>
<td>整机销售订单false, 备件销售订单true</td>
<td>String</td>
<td>备件的箱单号</td>
</tr>
<tr>
<td>quantity</td>
<td>true</td>
<td>String</td>
<td>SAP中的数量</td>
</tr>
<tr>
<td>taxUnit</td>
<td>true</td>
<td>String</td>
<td>SAP中的单价(不含税)</td>
</tr>
<tr>
<td>procureReqFor</td>
<td>整机销售订单false, 备件销售订单true</td>
<td>String</td>
<td>向主机厂的SAP采购订单号 (备件用)</td>
</tr>
<tr>
<td>vendorId</td>
<td>整机销售订单false, 备件销售订单true</td>
<td>String</td>
<td>SAP中内部主机厂的ID</td>
</tr>
<tr>
<td>modelVolume</td>
<td>false</td>
<td>String</td>
<td>整机对应的体积</td>
</tr>
<tr>
<td>mfgYear</td>
<td>false</td>
<td>String</td>
<td>整机对应的年款</td>
</tr>
</tbody>
</table>
<h5>示例</h5>
<pre><code>{
&quot;docNum&quot;: &quot;testDocNum1&quot;,
&quot;invoiceType&quot;: &quot;C&quot;,
&quot;productGroup&quot;: &quot;10&quot;,
&quot;customerId&quot;: &quot;test客户ID&quot;,
&quot;date&quot;: &quot;2024/7/17&quot;,
&quot;associatedDoc&quot;: &quot;testAssociatedDoc&quot;,
&quot;associatedSalesInv&quot;: &quot;testAssociatedSalesInv&quot;,
&quot;saleConNum&quot;: &quot;testSaleConNum&quot;,
&quot;commercialInvoice&quot;: &quot;testCommercialInvoice&quot;,S
&quot;memo&quot;: &quot;testMemo&quot;,
&quot;currency&quot;: &quot;CNY&quot;,
&quot;lines&quot;: [{
&quot;lineIdPms&quot;: &quot;testLineIdPms&quot;,
&quot;item&quot;: &quot;testItem&quot;,
&quot;serialNumber&quot;: &quot;testSerialNumber&quot;,
&quot;configChinese&quot;: &quot;testConfigChinese&quot;,
&quot;configEnglish&quot;: &quot;configEnglish&quot;,
&quot;itemCode&quot;: &quot;testItemCode&quot;,
&quot;itemDeschinese&quot;: &quot;testItemDeschinese&quot;,
&quot;itemDesenglish&quot;: &quot;testItemDesenglish&quot;,
&quot;packList&quot;: &quot;testPackList&quot;,
&quot;quantity&quot;: &quot;10&quot;,
&quot;taxUnit&quot;: &quot;10&quot;,
&quot;procureReqFor&quot;: &quot;testProcureReqFor&quot;,
&quot;vendorId&quot;: &quot;testVendorId&quot;,
&quot;modelVolume&quot;: &quot;testModelVolume&quot;,
&quot;mfgYear&quot;: &quot;testMfgYear&quot;
}]</code></pre>
<p>}</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>{</code></pre>
<p> "success": true,
"message": "",
"data": []
}</p>
<h5>备注</h5>
<ul>
<li>For certification information, please see <a href="https://www.showdoc.com.cn/xcmgnsapi/11399278709057328">Interface Certification Information</a></li>
</ul>