CustomerPayment
<h5>Brief Description</h5>
<ul>
<li>Create or update or delete customer payment data.</li>
</ul>
<h5>Request URL</h5>
<ul>
<li><code>https://6409627-sb2.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=653&amp;deploy=1</code></li>
</ul>
<h5>Request Method</h5>
<ul>
<li>POST</li>
</ul>
<h5>Request Parameter Description</h5>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Required</th>
<th>Type</th>
<th>Description</th>
<th>field level</th>
</tr>
</thead>
<tbody>
<tr>
<td>operateType</td>
<td>True</td>
<td>String</td>
<td>Operate type, value: create,update,delete</td>
<td>1</td>
</tr>
<tr>
<td>docNum</td>
<td>True</td>
<td>String</td>
<td>The document number of the Transaction</td>
<td>1</td>
</tr>
<tr>
<td>documentType</td>
<td>True</td>
<td>String</td>
<td>The document Type of the Transaction</td>
<td>1</td>
</tr>
<tr>
<td>date</td>
<td>True</td>
<td>String</td>
<td>The Posting date of the Transaction,format of "2022/11/23"</td>
<td>1</td>
</tr>
<tr>
<td>customer</td>
<td>True</td>
<td>String</td>
<td>A customer who receives goods or services</td>
<td>1</td>
</tr>
<tr>
<td>currency</td>
<td>True</td>
<td>String</td>
<td>Currency of Transaction</td>
<td>1</td>
</tr>
<tr>
<td>exchangeRate</td>
<td>True</td>
<td>Number</td>
<td>The exchange rate</td>
<td>1</td>
</tr>
<tr>
<td>amount</td>
<td>True</td>
<td>Number</td>
<td>The total amount of a transaction</td>
<td>1</td>
</tr>
<tr>
<td>currency2</td>
<td>False</td>
<td>String</td>
<td>If the payment has another currency, please send the currency through this field.For example, some payment is RUB,but there is a CNY currency, Please send the CNY through this filed</td>
<td>1</td>
</tr>
<tr>
<td>exchangeRate2</td>
<td>False</td>
<td>Number</td>
<td>If the payment has another currency, please send the currency exchange rate through this field.For example, some payment is RUB,but there is a CNY currency, Please send the exchange rate through this filed.</td>
<td>1</td>
</tr>
<tr>
<td>amount2</td>
<td>False</td>
<td>Number</td>
<td>If the payment has another currency, please send the currency exchange rate through this field.For example, some payment is RUB,but there is a CNY currency, Please send the exchange rate through this filed.</td>
<td>1</td>
</tr>
<tr>
<td>account</td>
<td>True</td>
<td>String</td>
<td>account of transaction</td>
<td>1</td>
</tr>
<tr>
<td>bankAccount</td>
<td>True</td>
<td>String</td>
<td>bank account of transaction</td>
<td>1</td>
</tr>
<tr>
<td>subsidiary</td>
<td>True</td>
<td>String</td>
<td>Subsidiary,Default to:"徐工俄罗斯有限责任公司(新徐俄)"</td>
<td>1</td>
</tr>
<tr>
<td>department</td>
<td>False</td>
<td>String</td>
<td>Department</td>
<td>1</td>
</tr>
<tr>
<td>fromLocation</td>
<td>False</td>
<td>String</td>
<td>location of Transaction</td>
<td>1</td>
</tr>
</tbody>
</table>
<p>| associatedDoc | False | String | The purchase order number associated with the bill |1|
| associatedDoctype | False | String | 1C document Type of the associatedDoc |1|
| cashFlow | True | String | Cash flows from bank accounts |1|
| memo | False | String | Memos for the transaction |1|
| saleConNum | False | String | Sales Contract Number |1|</p>
<h5>Samples</h5>
<pre><code> {
&quot;operateType&quot;:&quot;create&quot;,
&quot;docNum&quot;: &quot;&quot;,
&quot;date&quot;: &quot;2023/02/08&quot;,
&quot;customer&quot;: &quot;КРАНМАШ СТРОЙ ООО с 2021&quot;,
&quot;currency&quot;:&quot;RUB&quot;,
&quot;exchangeRate&quot;:1,
&quot;account&quot;: &quot;62.01&quot;,
&quot;bankAccount&quot;: &quot;52.01&quot;,
&quot;subsidiary&quot;: &quot;徐工俄罗斯有限责任公司(新徐俄)&quot;,
&quot;department&quot;: &quot;отдел сервисного обслуживания&quot;,
&quot;fromLocation&quot;: &quot;БП-000065&quot;,
&quot;amount&quot;:128,
&quot;associatedDoc&quot;:&quot;1000&quot;,
&quot;cashFlow&quot;:&quot;от продажи внеоборотных активов (кроме финансовых вложений)&quot;,
&quot;memo&quot;: &quot;&quot;,
&quot;saleConNum&quot;:&quot;&quot;
}</code></pre>
<h5>Response Parameter Description</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>Return Samples</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>Memo</h5>
<ul>
<li>For certification information, please see <a href="https://www.showdoc.com.cn/xcmgnsapi/9352531526636929">Interface Certification Information</a></li>
</ul>