UpdateInventoryItemQuantityAndPriceList

Overview

Update the Quantity and Price values for a list of Inventory Items.

Request

Field Name

Data Type

Description

accountID *

string

A unique identifier representing the ChannelAdvisor account you wish to access.

itemQuantityAndPriceList *

InventoryItemQuantityAndPrice[]

Array of inventory items
 
NOTE: Limited to a maximum of 1000 items at a time,
but smaller batch sizes are recommended to maintain performance.

Response

Field Name

Data Type

Description

UpdateInventoryItemQuantityAndPriceListResult

APIResult<UpdateInventoryItemResponse[]>

If the update operation for at least 1 of the specified SKUs was successful, then the Status property of the return object will be set to Success, otherwise it will be set to Failure.  The collection of UpdateInventoryItemResponse objects in the ResultData property will contain the results for each sync request.

Sample XML Request and Response


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://api.channeladvisor.com/webservices/">
   <soapenv:Header>
      <web:APICredentials>
         <web:DeveloperKey>---</web:DeveloperKey>
         <web:Password>---</web:Password>
      </web:APICredentials>
   </soapenv:Header>
   <soapenv:Body>
      <web:UpdateInventoryItemQuantityAndPriceList>
         <web:accountID>---</web:accountID>
         <web:itemQuantityAndPriceList>
            <web:InventoryItemQuantityAndPrice>
               <web:Sku>Sku1</web:Sku>
               <web:DistributionCenterCode>Morrisville</web:DistributionCenterCode>
               <web:Quantity>5</web:Quantity>
               <web:UpdateType>Relative</web:UpdateType>
               <web:PriceInfo>
                  <web:Cost>3</web:Cost>
                  <web:RetailPrice>8</web:RetailPrice>
                  <web:StartingPrice>5</web:StartingPrice>
                  <web:ReservePrice>7</web:ReservePrice>
                  <web:TakeItPrice>6</web:TakeItPrice>
                  <web:SecondChanceOfferPrice>7</web:SecondChanceOfferPrice>
                  <web:StorePrice>8</web:StorePrice>
               </web:PriceInfo>
            </web:InventoryItemQuantityAndPrice>
         </web:itemQuantityAndPriceList>
      </web:UpdateInventoryItemQuantityAndPriceList>
   </soapenv:Body>
</soapenv:Envelope>


<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <UpdateInventoryItemQuantityAndPriceListResponse xmlns="http://api.channeladvisor.com/webservices/">
         <UpdateInventoryItemQuantityAndPriceListResult>
            <Status>Success</Status>
            <MessageCode>0</MessageCode>
            <ResultData>
               <UpdateInventoryItemResponse>
                  <Sku>Sku1</Sku>
                  <Result>true</Result>
               </UpdateInventoryItemResponse>
            </ResultData>
         </UpdateInventoryItemQuantityAndPriceListResult>
      </UpdateInventoryItemQuantityAndPriceListResponse>
   </soap:Body>
</soap:Envelope>

Notes

  • * Indicates a REQUIRED Field ... Fields that are NOT required may be set to a null value or left out of a manually built SOAP packet
  • A client-side timeout limit of at least sixty seconds is recommended for UpdateInventoryItemQuantityAndPriceList.
  • UpdateType is a required field if Quantity is included in request

References