XCMG NS API


createItem

<h5>Brief Description</h5> <ul> <li>Create the item of spare parts.</li> </ul> <h5>Request URL</h5> <ul> <li><code>https://6409627-sb2.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=564&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>itemId</td> <td>True</td> <td>String</td> <td>1C item code,Uniquely identifies</td> </tr> <tr> <td>displayName</td> <td>Falae</td> <td>String</td> <td>1C item name</td> </tr> <tr> <td>baseUnit</td> <td>True</td> <td>String</td> <td>1C item main unit type</td> </tr> <tr> <td>class1</td> <td>Falae</td> <td>Number</td> <td>1C item primary classification</td> </tr> <tr> <td>class2</td> <td>Falae</td> <td>Number</td> <td>item secondary classification</td> </tr> </tbody> </table> <h5>Samples</h5> <pre><code>{ &amp;quot;itemId&amp;quot; : &amp;quot;ZL50RU&amp;quot;, &amp;quot;displayName&amp;quot; :&amp;quot;Loader&amp;quot;, &amp;quot;baseUnit&amp;quot; : &amp;quot;PCS&amp;quot;, &amp;quot;class1&amp;quot;: &amp;quot;2&amp;quot;, &amp;quot;class2&amp;quot;: &amp;quot;2&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 {</code></pre> <p>    &quot;success&quot;: false,     &quot;message&quot;: &quot;{\&quot;meesage\&quot;:\&quot;The packet format is incorrect and should be an object\&quot;}&quot;,     &quot;data&quot;: [] } // Success { &quot;success&quot;: true, &quot;message&quot;: &quot;&quot;, &quot;data&quot;: [{ &quot;internalid&quot; :3995 }] }</p> <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