销售发货
<h5>简介</h5>
<ul>
<li>创建、更新或删除销售发货订单</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><a href="https://6409627-sb2.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=589&deploy=1">https://6409627-sb2.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=589&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>operateType</td>
<td>True</td>
<td>String</td>
<td>操作类型,值列表为: create</td>
<td>1</td>
</tr>
<tr>
<td>docNum</td>
<td>True</td>
<td>String</td>
<td>来源系统的事务处理文档编号</td>
<td>1</td>
</tr>
<tr>
<td>associatedDoc</td>
<td>False</td>
<td>String</td>
<td>事务处理的相关单据</td>
<td>1</td>
</tr>
<tr>
<td>subsidiary</td>
<td>True</td>
<td>String</td>
<td>附属公司</td>
<td>1</td>
</tr>
<tr>
<td>fromLocation</td>
<td>True</td>
<td>String</td>
<td>自地点</td>
<td>1</td>
</tr>
<tr>
<td>department</td>
<td>False</td>
<td>String</td>
<td>部门</td>
<td>1</td>
</tr>
<tr>
<td>customer</td>
<td>True</td>
<td>String</td>
<td>接收货品或享受服务的客户</td>
<td>1</td>
</tr>
<tr>
<td>date</td>
<td>True</td>
<td>String</td>
<td>来源系统的事务处理过账日期,格式为 "2022/11/23"</td>
<td>1</td>
</tr>
<tr>
<td>currency</td>
<td>False</td>
<td>String</td>
<td>事务处理的币种</td>
<td>1</td>
</tr>
<tr>
<td>exchangeRate</td>
<td>False</td>
<td>Number</td>
<td>汇率</td>
<td>1</td>
</tr>
<tr>
<td>memo</td>
<td>False</td>
<td>String</td>
<td>事务处理的备注(头)</td>
<td>1</td>
</tr>
<tr>
<td>saleConNum</td>
<td>False</td>
<td>String</td>
<td>销售合同号</td>
<td>1</td>
</tr>
<tr>
<td>pmsPo</td>
<td>False</td>
<td>String</td>
<td>客户PO号</td>
<td>1</td>
</tr>
<tr>
<td>dealerPortal</td>
<td>True</td>
<td>Boolean</td>
<td>是否门户下单,传true和false</td>
<td>1</td>
</tr>
<tr>
<td>consign</td>
<td>True</td>
<td>Boolean</td>
<td>是否寄售,传true和false</td>
<td>1</td>
</tr>
<tr>
<td>email</td>
<td>False</td>
<td>String</td>
<td>邮箱,将PMS出库单“邮箱”传输到NS系统</td>
<td>1</td>
</tr>
<tr>
<td>phone</td>
<td>False</td>
<td>String</td>
<td>联系方式,将PMS出库单“联系方式”传输到NS系统</td>
<td>1</td>
</tr>
<tr>
<td>consignee</td>
<td>False</td>
<td>String</td>
<td>收货人,将PMS出库单“收货人”传输到NS系统</td>
<td>1</td>
</tr>
<tr>
<td>address</td>
<td>False</td>
<td>String</td>
<td>收货地址,将PMS出库单“收货地址”传输到NS系统</td>
<td>1</td>
</tr>
<tr>
<td>lines</td>
<td>True</td>
<td>Array</td>
<td>行对象</td>
<td></td>
</tr>
<tr>
<td>setTaxRate</td>
<td>False</td>
<td>Number</td>
<td>税率</td>
<td>2</td>
</tr>
<tr>
<td>item</td>
<td>True</td>
<td>String</td>
<td>事务处理的货品</td>
<td>2</td>
</tr>
<tr>
<td>quantity</td>
<td>True</td>
<td>Number</td>
<td>账单/发票/库存转移/库存调整的商品数量</td>
<td>2</td>
</tr>
<tr>
<td>unit</td>
<td>False</td>
<td>String</td>
<td>单位</td>
<td>2</td>
</tr>
<tr>
<td>unitPrice</td>
<td>False</td>
<td>Number</td>
<td>商品单价(不含税)</td>
<td>2</td>
</tr>
<tr>
<td>taxUnit</td>
<td>True</td>
<td>Number</td>
<td>含税单价</td>
<td>2</td>
</tr>
<tr>
<td>location</td>
<td>True</td>
<td>String</td>
<td>事务处理的目的地点</td>
<td>2</td>
</tr>
<tr>
<td>memo</td>
<td>False</td>
<td>String</td>
<td>事务处理的备注(行)</td>
<td>2</td>
</tr>
<tr>
<td>machineType</td>
<td>False</td>
<td>String</td>
<td>机型,将PMS出库单“机型”传输到NS系统</td>
<td>2</td>
</tr>
</tbody>
</table>
<h5>示例</h5>
<pre><code> {
&quot;operateType&quot;:&quot;create&quot;,
&quot;docNum&quot;: &quot;salesorder1&quot;,
&quot;date&quot;: &quot;2022/12/15&quot;,
&quot;customer&quot;: &quot;cus1&quot;,
&quot;currency&quot;:&quot;CNY&quot;,
&quot;exchangeRate&quot;:1,
&quot;subsidiary&quot;: &quot;徐工&quot;,
&quot;department&quot;: &quot;&quot;,
&quot;associatedDoc&quot;:&quot;assdoc1&quot;,
&quot;memo&quot;: &quot;&quot;,
&quot;saleConNum&quot;:&quot;&quot;,
&quot;lines&quot;: [{
&quot;item&quot;: &quot;item1&quot;,
&quot;quantity&quot;: 2,
&quot;unit&quot;: &quot;PCS&quot;,
&quot;unitPrice&quot;: 1000,
&quot;location&quot;:&quot;&quot;,
&quot;memo&quot;: &quot;&quot;,
&quot;fromBin&quot;:&quot;&quot;,
&quot;serialNumber&quot;:&quot;&quot;
}]
}</code></pre>
<h5>响应参数说明</h5>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>success</td>
<td>Boolean</td>
<td>true:success,false:failed</td>
</tr>
<tr>
<td>message</td>
<td>String</td>
<td>errors message</td>
</tr>
<tr>
<td>data</td>
<td>Array</td>
<td>Data</td>
</tr>
</tbody>
</table>
<h5>返回报文示例</h5>
<pre><code> // Error
{
&quot;success&quot;: false,
&quot;message&quot;: &quot;docNum must be filled!&quot;,
&quot;data&quot;: []
}
// Success
{
&quot;success&quot;: true,
&quot;message&quot;: &quot;&quot;,
&quot;data&quot;: [{
&quot;internalid&quot; :3995
}]
}</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>