Remove Quantity from Single DC


When to Use

  • To remove all quantity for a product in a single distribution center.
  • 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

DELETE https://api.channeladvisor.com/v1/Products(ProductID)/DCQuantities(DistributionCenterID)

($batch request format) DELETE 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. 
Example Request
DELETE https://api.channeladvisor.com/v1/Products(8542366)/DCQuantities(1)?access_token=xxxxxxxxxx
Example Response (Success)
204 No Content