Update Quantity - Define Unshipped Quantity on a Single Product


When to Use

  • To reflect the unshipped quantity of a product.
  • This is the most common request to make as it is efficient and allows the system to do the math to deduct any items with orders pending shipment.
  • 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.

Resource URL / Endpoint

PATCH or PUT https://api.channeladvisor.com/v1/Products(ProductID)/DCQuantities(DistributionCenterID)

($batch request format) PATCH or PUT https://api.channeladvisor.com/v1/DCQuantities(ProductID=ProductID, DistributionCenterID=DistributionCenterID)

Required Parameters

Property Type (Max Length) Required Description
ProductID integer (32 bit) Required Include 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.
DistributionCenterID integer (32 bit) Required Include in URL. ChannelAdvisor's Distribution Center Unique ID.
Read more about Distribution Centers and accessing DistributionCenterIDs. 
AvailableQuantity integer (32 bit) Required Include in body. Available Quantity for the product.
Example Request
PATCH or PUT https://api.channeladvisor.com/v1/Products(22098461)/DCQuantities(2)?access_token=xxxxxxxxxx
{
    "AvailableQuantity": 148
}
Example Response (Success)
204 No Content