Update Quantity - Choose Update Type (Single DC Update)

When to Use

  • To set quantity at an "InStock" (or any other Quantity Update Type) value.
  • Requires the Product ID (not the Sku - the ChannelAdvisor unique ID representing the product).
    • Place a GET Products request and $filter=Sku eq 'PRODUCT SKU VALUE'&$select=ID to return the ID to use in this request.
  • To update quantity for a single product in a single distribution center in a $batch request.

Resource URL / Endpoint

POST https://api.channeladvisor.com/v1/Products(ProductID)/UpdateQuantity

Required Parameters

PropertyType (Max Length)RequiredDescription
ProductIDinteger (32 bit)RequiredInclude in URL. The ChannelAdvisor defined unique ID (not the Sku value) of the product.
See note above under "When to Use" about retrieving the Product ID.
UpdateTypeenumRequiredInclude in body. Value set determines how ChannelAdvisor will interpret the quantity.
Updates [ DistributionCenterID ]integerRequired Include in body. ChannelAdvisor's Distribution Center Unique ID.
Read more about Distribution Centers and accessing DistributionCenterIDs. 
Updates [ Quantity ]integerRequired Include in body. Available Quantity for the product.
Example Request
POST https://api.channeladvisor.com/v1/Products(22098461)/UpdateQuantity?access_token=xxxxxxxxxx
    "UpdateType": "InStock",
    "Updates": [{
        "DistributionCenterID": 1,
        "Quantity": 8
Example Response (Success)
204 No Content