1. Home
  2. SOAP API
  3. Create or Edit Item Type

Create or Edit Item Type

API Operations

Description:

The API creates or edits an existing item type in the system. An item type is defining a product in the system where you give the product details like which product category it belongs to, its SKU and the name to identify it, along with the other physical aspects to construe it.

API:

<soapenv:Envelope xmlns:ser=”http://uniware.unicommerce.com/services/” xmlns:soapenv=”http://schemas.xmlsoap.org/soap/envelope/”>

   <soapenv:Header>

   <wsse:Security soapenv:mustUnderstand=”1″ xmlns:wsse=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd” xmlns:wsu=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd”>

      <wsse:UsernameToken wsu:Id=”UsernameToken-1″>

         <wsse:Username>staging</wsse:Username>

         <wsse:Password Type=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText”>staging</wsse:Password>

         <wsse:Nonce EncodingType=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary”>/awo/KlOKvxwOu4Ga6mU6g==</wsse:Nonce>

         <wsu:Created>2014-01-23T06:52:54.050Z</wsu:Created>

      </wsse:UsernameToken>

   </wsse:Security>

   </soapenv:Header>

   <soapenv:Body>

   <ser:CreateOrEditItemTypeRequest>

      <ser:CategoryCode>?</ser:CategoryCode>

      <ser:ItemSKU>?</ser:ItemSKU>

      <ser:Name>?</ser:Name>

      <!–Optional:–>

      <ser:Description>?</ser:Description>

<!–Optional:–>

      <ser:ScanIdentifier>?</ser:ScanIdentifier>

<ser:Length>?</ser:Length>

      <ser:Width>?</ser:Width>

      <ser:Height>?</ser:Height>

      <ser:Weight>?</ser:Weight>

      <!–Optional:–>

      <ser:MinOrderSize>?</ser:MinOrderSize>

      <!–Optional:–>

      <ser:Color>?</ser:Color>

      <!–Optional:–>

      <ser:Brand>?</ser:Brand>

      <!–Optional:–>

      <ser:Size>?</ser:Size>

      <!–Optional:–>

      <ser:MRP>?</ser:MRP>

      <!–Optional:–>

      <ser:TaxTypeCode>?</ser:TaxTypeCode>

      <!–Optional:–>

      <ser:Features>?</ser:Features>

      <!–Optional:–>

      <ser:ImageURL>?</ser:ImageURL>

      <!–Optional:–>

      <ser:ProductPageUrl>?</ser:ProductPageUrl>

      <!–Optional:–>

      <ser:RequiresCustomization>?</ser:RequiresCustomization>

      <!–Optional:–>

      <ser:ItemDetailFields>?</ser:ItemDetailFields>

      <!–Optional:–>

      <ser:Tags>

<!–1 or more repetitions:–>

         <ser:Tag>?</ser:Tag>

      </ser:Tags>

      <!–Optional:–>

      <ser:CustomFields>

         <!–1 or more repetitions:–>

         <ser:CustomField name=”?” value=”?”/>

      </ser:CustomFields>

   </ser:CreateOrEditItemTypeRequest>

   </soapenv:Body>

</soapenv:Envelope>

API parameters:

Request:

<soapenv:Envelope xmlns:ser=”http://uniware.unicommerce.com/services/” xmlns:soapenv=”http://schemas.xmlsoap.org/soap/envelope/”>

   <soapenv:Header>

   <wsse:Security soapenv:mustUnderstand=”1″ xmlns:wsse=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd” xmlns:wsu=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd”>

      <wsse:UsernameToken wsu:Id=”UsernameToken-1″>

         <wsse:Username>staging</wsse:Username>

         <wsse:Password Type=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText”>staging</wsse:Password>

         <wsse:Nonce EncodingType=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary”>/awo/KlOKvxwOu4Ga6mU6g==</wsse:Nonce>

         <wsu:Created>2014-01-23T06:52:54.050Z</wsu:Created>

      </wsse:UsernameToken>

   </wsse:Security>

   </soapenv:Header>

   <soapenv:Body>

   <ser:CreateOrEditItemTypeRequest>

   <ser:CategoryCode>121111</ser:CategoryCode>

      <ser:ItemSKU>ACMRRC11MH30002</ser:ItemSKU>

      <ser:Name>Damara Mirror with Shelves</ser:Name>

      <ser:Length>10</ser:Length>

      <ser:Width>19</ser:Width>

      <ser:Height>50</ser:Height>

      <ser:Weight>89</ser:Weight>

   </ser:CreateOrEditItemTypeRequest>

   </soapenv:Body>

</soapenv:Envelope>

Response:

<SOAP-ENV:Envelope xmlns:SOAP-ENV=”http://schemas.xmlsoap.org/soap/envelope/”>

   <SOAP-ENV:Header/>

   <SOAP-ENV:Body>

   <CreateOrEditItemTypeResponse xmlns=”http://uniware.unicommerce.com/services/”>

      <Successful>true</Successful>

   </CreateOrEditItemTypeResponse>

   </SOAP-ENV:Body>

</SOAP-ENV:Envelope>

Error Codes:

With the tag <Successful>false</Successful>, the system throws an error. The error codes are as defined below:


Go back to API introduction

Next API: Get Sale Order Details

Related Articles