回传销售订单发货接口
<h5>简介</h5>
<ul>
<li>PMS接收NS传的销售订单后,对销售订单发货时调用此接口将销售发货回传到NS</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><a href="https://6409627.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=686&deploy=1">https://6409627.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=686&deploy=1</a></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST</li>
</ul>
<h5>请求参数说明</h5>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Required</th>
<th>Type</th>
<th>Description</th>
<th>field leval</th>
</tr>
</thead>
<tbody>
<tr>
<td>interfaceCode</td>
<td>True</td>
<td>String</td>
<td>固定值"itemfulfillment_001"</td>
<td>0</td>
</tr>
<tr>
<td>sourceSystemCode</td>
<td>True</td>
<td>String</td>
<td>固定值"PMS"</td>
<td>0</td>
</tr>
<tr>
<td>sn</td>
<td>True</td>
<td>String</td>
<td>报文唯一性标识,用于重复性校验</td>
<td>0</td>
</tr>
<tr>
<td>requestDateTime</td>
<td>True</td>
<td>String</td>
<td>请求时间(YYYY-MM-DD HH24:MI:SS)</td>
<td>0</td>
</tr>
<tr>
<td>totalCount</td>
<td>True</td>
<td>String</td>
<td>此报文需要处理的单据量,即head汇总数量</td>
<td>0</td>
</tr>
<tr>
<td>head</td>
<td>True</td>
<td>Array</td>
<td>头节点</td>
</tr>
<tr>
<td>documentKey</td>
<td>True</td>
<td>String</td>
<td>来源系统主键,PMS出库记录的id</td>
<td>1</td>
</tr>
<tr>
<td>sourceSystemNumber</td>
<td>True</td>
<td>String</td>
<td>来源系统的单据编号,此处传输PMS出库事务处理的单号</td>
<td>1</td>
</tr>
<tr>
<td>createdFrom</td>
<td>True</td>
<td>String</td>
<td>发货对应的销售订单,传输之前NS传给PMS的销售订单号</td>
<td>1</td>
</tr>
<tr>
<td>memo</td>
<td>False</td>
<td>String</td>
<td>备注</td>
<td>1</td>
</tr>
<tr>
<td>subsidiary</td>
<td>False</td>
<td>String</td>
<td>PMS发货单对应的子公司ID</td>
<td>1</td>
</tr>
<tr>
<td>date</td>
<td>True</td>
<td>String</td>
<td>PMS发货单的出库日期,YYYY-MM-DD</td>
<td>1</td>
</tr>
<tr>
<td>line</td>
<td>True</td>
<td>Array</td>
<td>行节点</td>
<td></td>
</tr>
<tr>
<td>soLineId</td>
<td>True</td>
<td>String</td>
<td>发货对应的销售订单,传输之前NS传给PMS的销售订单号的行号</td>
<td>2</td>
</tr>
<tr>
<td>item</td>
<td>True</td>
<td>String</td>
<td>PMS发货单的物料编码</td>
<td>2</td>
</tr>
<tr>
<td>location</td>
<td>True</td>
<td>String</td>
<td>PMS发货出库的仓库</td>
<td>2</td>
</tr>
<tr>
<td>quantity</td>
<td>True</td>
<td>Number</td>
<td>PMS发货出库的数量</td>
<td>2</td>
</tr>
</tbody>
</table>
<h5>示例</h5>
<pre><code> {
&quot;interfaceCode&quot;:&quot;itemfulfillment_001&quot;,
&quot;sourceSystemCode&quot;:&quot;PMS&quot;,
&quot;sn&quot;:&quot;Testlzx001&quot;,
&quot;requestDateTime&quot;:&quot;2023-06-06 09:39:00&quot;,
&quot;totalCount&quot;:&quot;1&quot;,
&quot;head&quot;:[
{
&quot;documentKey&quot;:&quot;Testlzx001&quot;,
&quot;sourceSystemNumber&quot;:&quot;PMS&quot;,
&quot;createdFrom&quot;:&quot;SO-00000022&quot;,
&quot;memo&quot;:&quot;测试&quot;,
&quot;subsidiary&quot;:&quot;徐工集团加拿大有限公司&quot;,
&quot;date&quot;:&quot;2023/06/06&quot;,
&quot;line&quot;:[
{
&quot;soLineId&quot;:&quot;1&quot;,
&quot;item&quot;:&quot;CV83PDU&quot;,
&quot;location&quot;:&quot;location_test&quot;,
&quot;quantity&quot;:&quot;1&quot;
},
{
&quot;soLineId&quot;:&quot;2&quot;,
&quot;item&quot;:&quot;CV123PDU&quot;,
&quot;location&quot;:&quot;location_test&quot;,
&quot;quantity&quot;:&quot;1&quot;
}
]
}
]
}</code></pre>
<h5>响应参数说明</h5>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>sn</td>
<td>String</td>
<td>报文唯一性标识,用于重复性校验</td>
</tr>
<tr>
<td>sourceSystemCode</td>
<td>String</td>
<td>固定值"PMS"</td>
</tr>
<tr>
<td>success</td>
<td>Boolean</td>
<td>是否处理成功:true,false</td>
</tr>
<tr>
<td>message</td>
<td>String</td>
<td>错误信息</td>
</tr>
<tr>
<td>totalCount</td>
<td>Number</td>
<td>此报文需要处理的单据量,即head汇总数量</td>
</tr>
<tr>
<td>successCount</td>
<td>Number</td>
<td>处理成功的单据量</td>
</tr>
<tr>
<td>datas</td>
<td>Array</td>
<td>返回数据信息</td>
</tr>
<tr>
<td>documentKey</td>
<td>Array</td>
<td>返回数据信息</td>
</tr>
<tr>
<td>nsTransactionNum</td>
<td>String</td>
<td>NS事务处理文档编号</td>
</tr>
<tr>
<td>nsTransactionId</td>
<td>String</td>
<td>返回数据信息</td>
</tr>
<tr>
<td>success</td>
<td>Boolean</td>
<td>是否处理成功:true,false</td>
</tr>
<tr>
<td>message</td>
<td>String</td>
<td>错误信息</td>
</tr>
</tbody>
</table>
<h5>返回报文示例</h5>
<pre><code>//success
{
&quot;sn&quot;:&quot;Testlzx001&quot;,
&quot;sourceSystemCode&quot;:&quot;PMS&quot;,
&quot;success&quot;:true,
&quot;message&quot;:&quot;&quot;,
&quot;totalCount&quot;:1,
&quot;successCount&quot;:1,
&quot;datas&quot;:[
{
&quot;documentKey&quot;:&quot;Testlzx001&quot;,
&quot;nsTransactionNum&quot;:&quot;&quot;,
&quot;nsTransactionId&quot;:&quot;&quot;,
&quot;success&quot;:true,
&quot;message&quot;:&quot;success&quot;
}
]
}
// Error
{
&quot;sn&quot;:&quot;Testlzx001&quot;,
&quot;sourceSystemCode&quot;:&quot;PMS&quot;,
&quot;success&quot;:true,
&quot;message&quot;:&quot;SN已存在,请勿重复推送;&quot;,
&quot;totalCount&quot;:1,
&quot;successCount&quot;:0,
&quot;datas&quot;:[
]
}</code></pre>
<h5>备注</h5>
<ul>
<li>For certification information, please see <a href="https://www.showdoc.com.cn/xcmgnsapi/9352531526636929">Interface Certification Information</a></li>
</ul>