UpdateInventoryItemQuantityAndPrice

Overview

Update the Quantity and Price for a single Inventory Item.

Request

Field Name

Data Type

Description

accountID *

string

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

itemQuantityAndPrice *

InventoryItemQuantityAndPrice

Quantity and Price data

Response

Field Name

Data Type

Description

UpdateInventoryItemQuantityAndPriceResult

APIResult<boolean>

If the Status property of the return object is set to Success and the ResultData property is set to true, the update succeeded.

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:UpdateInventoryItemQuantityAndPrice>
         <web:accountID>---</web:accountID>
         <web:itemQuantityAndPrice>
            <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:itemQuantityAndPrice>
      </web:UpdateInventoryItemQuantityAndPrice>
   </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>
      <UpdateInventoryItemQuantityAndPriceResponse xmlns="http://api.channeladvisor.com/webservices/">
         <UpdateInventoryItemQuantityAndPriceResult>
            <Status>Success</Status>
            <MessageCode>0</MessageCode>
            <ResultData>true</ResultData>
         </UpdateInventoryItemQuantityAndPriceResult>
      </UpdateInventoryItemQuantityAndPriceResponse>
   </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

References