XCMG NS API


Customer

<h5>Brief Description</h5> <ul> <li>Create customer data.</li> </ul> <h5>Request URL</h5> <ul> <li><code>https://6409627-sb2.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=646&amp;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> </tr> </thead> <tbody> <tr> <td>name</td> <td>True</td> <td>String</td> <td>1C Customer Company name</td> </tr> <tr> <td>abbreviation</td> <td>False</td> <td>String</td> <td>1C Customer abbreviation</td> </tr> <tr> <td>category</td> <td>False</td> <td>Number</td> <td>1C Customer category.List of values:[customer categery](<a href="https://www.showdoc.com.cn/2076069668546132/9591168335720565">https://www.showdoc.com.cn/2076069668546132/9591168335720565</a> &quot;customer categery&quot;)</td> </tr> <tr> <td>country</td> <td>True</td> <td>String</td> <td>1C Customer country</td> </tr> <tr> <td>salesRep</td> <td>False</td> <td>Array[String]</td> <td>1C Customer sales representative</td> </tr> <tr> <td>salesDept</td> <td>False</td> <td>String</td> <td>1C Customer sales department</td> </tr> <tr> <td>mainSubsidiary</td> <td>True</td> <td>String</td> <td>1C Customer main subsidiary,Default to:&quot;徐工俄罗斯有限责任公司(新徐俄)&quot;</td> </tr> <tr> <td>subsidiary</td> <td>False</td> <td>Array[String]</td> <td>1C Customer subsidiary,Default to:&quot;徐工俄罗斯有限责任公司(新徐俄)&quot;</td> </tr> <tr> <td>contact</td> <td>False</td> <td>String</td> <td>1C Customer contact</td> </tr> <tr> <td>address</td> <td>False</td> <td>String</td> <td>1C Customer company address</td> </tr> <tr> <td>mainCurrency</td> <td>True</td> <td>String</td> <td>1C Customer Currency,fix value “RUB”</td> </tr> <tr> <td>taxRegistNum</td> <td>True</td> <td>String</td> <td>1C Customer Tax Registration Number,Unique identification</td> </tr> <tr> <td>account</td> <td>False</td> <td>String</td> <td>1C Customer account</td> </tr> <tr> <td>email</td> <td>False</td> <td>String</td> <td>1C Customer email</td> </tr> </tbody> </table> <h5>Samples</h5> <pre><code> {     &amp;quot;name&amp;quot;: &amp;quot;ДИЗИ СЕРВИС ООО&amp;quot;,     &amp;quot;abbreviation&amp;quot;: &amp;quot;ДИЗИ СЕРВИС ООО&amp;quot;,     &amp;quot;category&amp;quot;: 2,     &amp;quot;country&amp;quot;: &amp;quot;RU&amp;quot;,     &amp;quot;salesRep&amp;quot;: [         &amp;quot;Москаленко Сергей Игоревич&amp;quot;,&amp;quot;lisa&amp;quot;     ],     &amp;quot;salesDept&amp;quot;: &amp;quot;Департамент продаж техники&amp;quot;,     &amp;quot;mainSubsidiary&amp;quot;: &amp;quot;徐工俄罗斯有限责任公司(新徐俄)&amp;quot;,     &amp;quot;subsidiary&amp;quot;: [         &amp;quot;a&amp;quot;,&amp;quot;b&amp;quot;     ],     &amp;quot;contact&amp;quot;: &amp;quot;Челябинская обл&amp;quot;,     &amp;quot;address&amp;quot;: &amp;quot;394089, Воронежская обл, Воронеж г, ул. Октябрьская, дом № 25&amp;quot;,     &amp;quot;mainCurrency&amp;quot;: &amp;quot;RUB&amp;quot;,     &amp;quot;taxRegistNum&amp;quot;: &amp;quot;3662280299&amp;quot;,     &amp;quot;account&amp;quot;: &amp;quot;62.01&amp;quot;, &amp;quot;email&amp;quot;:&amp;quot;info@tigr86.ru&amp;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 { &amp;quot;success&amp;quot;: false, &amp;quot;message&amp;quot;: &amp;quot;name must be filled!&amp;quot;, &amp;quot;data&amp;quot;: [] } // Success { &amp;quot;success&amp;quot;: true, &amp;quot;message&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;data&amp;quot;: [{ &amp;quot;internalid&amp;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>

页面列表

ITEM_HTML