XCMG NS API


Vendor

<h5>Brief Description</h5> <ul> <li>Create vendor data.</li> </ul> <h5>Request URL</h5> <ul> <li><code>https://6409627-sb2.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=647&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 Vendor Company name</td> </tr> <tr> <td>category</td> <td>False</td> <td>Number</td> <td>1C Vendor category.List of values:[vendor categery](<a href="https://www.showdoc.com.cn/2076069668546132/9591367013275824">https://www.showdoc.com.cn/2076069668546132/9591367013275824</a> &quot;vendor categery&quot;)</td> </tr> <tr> <td>mainSubsidiary</td> <td>True</td> <td>String</td> <td>1C Vendor main subsidiary,Default to:&quot;徐工俄罗斯有限责任公司(新徐俄)&quot;</td> </tr> <tr> <td>subsidiary</td> <td>False</td> <td>Array[String]</td> <td>1C Vendor subsidiary,Default to:[&quot;徐工俄罗斯有限责任公司(新徐俄)&quot;]</td> </tr> <tr> <td>mainCurrency</td> <td>True</td> <td>String</td> <td>1C Vendor Currency</td> </tr> <tr> <td>taxRegistNum</td> <td>True</td> <td>String</td> <td>1C Vendor Tax Registration Number,Unique identification</td> </tr> <tr> <td>account</td> <td>False</td> <td>String</td> <td>1C Vendor account</td> </tr> <tr> <td>email</td> <td>False</td> <td>String</td> <td>1C Vendor email</td> </tr> </tbody> </table> <h5>Samples</h5> <pre><code> {     &amp;quot;name&amp;quot;: &amp;quot;ДИЗИ СЕРВИС ООО&amp;quot;,     &amp;quot;category&amp;quot;: 2,     &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;mainCurrency&amp;quot;: &amp;quot;RUB&amp;quot;,     &amp;quot;taxRegistNum&amp;quot;: &amp;quot;7820046291&amp;quot;,     &amp;quot;account&amp;quot;: &amp;quot;60.01&amp;quot;, &amp;quot;email&amp;quot;:&amp;quot;perevod88@yandex.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