JournalAccount
<h5>Brief Description</h5>
<ul>
<li>create or update or delete journal account data.</li>
</ul>
<h5>Request URL</h5>
<ul>
<li><code>https://6409627-sb1.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=654&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>subsidiary</td>
<td>True</td>
<td>String</td>
<td>Subsidiary,Default to:"徐工俄罗斯有限责任公司(新徐俄)"</td>
<td>1</td>
</tr>
<tr>
<td>memo</td>
<td>False</td>
<td>String</td>
<td>Memos for the transaction</td>
<td>1</td>
</tr>
<tr>
<td>lines</td>
<td>True</td>
<td>Array</td>
<td>line property name,There must be at least two lines of debit and credit</td>
</tr>
<tr>
<td>debitAccount</td>
<td>False</td>
<td>String</td>
<td>The debit account number in the accounting entry generated by the transaction</td>
<td>2</td>
</tr>
<tr>
<td>creditAccount</td>
<td>False</td>
<td>String</td>
<td>The credit account number in the accounting entry generated by the transaction</td>
<td>2</td>
</tr>
<tr>
<td>unitPrice</td>
<td>True</td>
<td>Number</td>
<td>Amount</td>
<td>2</td>
</tr>
<tr>
<td>department</td>
<td>False</td>
<td>String</td>
<td>Transaction line Department</td>
<td>2</td>
</tr>
<tr>
<td>vendor</td>
<td>False</td>
<td>String</td>
<td>A supplier of goods or services</td>
<td>2</td>
</tr>
<tr>
<td>customer</td>
<td>False</td>
<td>String</td>
<td>A customer who receives goods or services</td>
<td>2</td>
</tr>
<tr>
<td>employee</td>
<td>False</td>
<td>String</td>
<td>The employees of the transaction</td>
<td>2</td>
</tr>
<tr>
<td>memo</td>
<td>False</td>
<td>String</td>
<td>Transaction remarks (lines)</td>
<td>2</td>
</tr>
<tr>
<td>currency</td>
<td>True</td>
<td>String</td>
<td>Currency of Transaction</td>
<td>2</td>
</tr>
<tr>
<td>exchangeRate</td>
<td>True</td>
<td>Number</td>
<td>The exchange rate</td>
<td>2</td>
</tr>
<tr>
<td>cashFlow</td>
<td>False</td>
<td>String</td>
<td>Cash flows from bank accounts(lines)</td>
<td>2</td>
</tr>
</tbody>
</table>
<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;currency&quot;:&quot;RUB&quot;,
&quot;exchangeRate&quot;:&quot;1&quot;,
&quot;subsidiary&quot;: &quot;徐工俄罗斯有限责任公司(新徐俄)&quot;,
&quot;memo&quot;: &quot;&quot;,
&quot;lines&quot;: [{
&quot;debitAccount&quot;: &quot;60.01&quot;,
&quot;creditAccount&quot;:&quot;&quot;,
&quot;unitPrice&quot;:1000,
&quot;department&quot;:&quot;отдел сервисного обслуживания&quot;,
&quot;vendor&quot;:&quot;Айнабеков Ергали Абдуакасович ИП&quot;,
&quot;customer&quot;:&quot;&quot;,
&quot;employee&quot;:&quot;Крюков Николай Николаевич&quot;,
&quot;memo&quot;: &quot;debit line&quot;,
&quot;cashFlow&quot;: &quot;&quot;
},{
&quot;debitAccount&quot;:&quot;52.01&quot;,
&quot;creditAccount&quot;:&quot;creditAcc1&quot;,
&quot;unitPrice&quot;:200,
&quot;department&quot;:&quot;отдел сервисного обслуживания&quot;,
&quot;vendor&quot;:&quot;Айнабеков Ергали Абдуакасович ИП&quot;,
&quot;customer&quot;:&quot;&quot;,
&quot;employee&quot;:&quot;Крюков Николай Николаевич&quot;,
&quot;memo&quot;: &quot;credit line&quot;,
&quot;cashFlow&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>