1. Home
  2. SOAP API
  3. Inventory Adjustment

Inventory Adjustment

API Operations

Description:

The API enables you to update the inventory, if any changes in the stock counts are brought about, apart from the ones made through inventory sync. The inventory stock counts can be altered due to stock addition, removal, transfer or replacement of products in the facility.

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>Sandbox</wsse:Username>

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

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

            <wsu:Created>2014-05-08T06:44:04.654Z</wsu:Created>

         </wsse:UsernameToken>

      </wsse:Security>

   </soapenv:Header>

   <soapenv:Body>

      <ser:InventoryAdjustmentRequest>

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

         <ser:Quantity>?</ser:Quantity>

         <ser:ShelfCode>?</ser:ShelfCode>

         <!–Optional:–>

         <ser:TransferToShelfCode>?</ser:TransferToShelfCode>

         <ser:AdjustmentType>?</ser:AdjustmentType>

      </ser:InventoryAdjustmentRequest>

   </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-2″>

            <wsse:Username>ashish1</wsse:Username>

            <wsse:Password Type=”http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText”>e13cc8cd-17c8-4798-bb7b-2d1335ad92d6</wsse:Password>

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

            <wsu:Created>2014-05-08T06:46:04.531Z</wsu:Created>

         </wsse:UsernameToken>

      </wsse:Security>

   </soapenv:Header>

   <soapenv:Body>

      <ser:InventoryAdjustmentRequest>

         <ser:ItemSKU>FNTBBK11MH20001</ser:ItemSKU>

         <ser:Quantity>150</ser:Quantity>

         <ser:ShelfCode>CHN001</ser:ShelfCode>

         <ser:AdjustmentType>ADD</ser:AdjustmentType>

      </ser:InventoryAdjustmentRequest>

   </soapenv:Body>

</soapenv:Envelope>

Response:

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

   <SOAP-ENV:Header/>

   <SOAP-ENV:Body>

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

         <Successful>true</Successful>

      </InventoryAdjustmentResponse>

   </SOAP-ENV:Body>

</SOAP-ENV:Envelope>​

Error Codes:


Go back to API introduction

Next API: Get Sale Order Details

Related Articles