Retrieve Product Distribution Center Quantities


When to Use

  • To see the quantities set for each distribution center for a product.
  • 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

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

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.
Example Request
GET https://api.channeladvisor.com/v1/Products(25398138)/DCQuantities?access_token=xxxxxxxxxx
Example Response (Success)
200 OK
{
  "@odata.context": "https://api.channeladvisor.com/v1/$metadata#DCQuantities",
  "value": [
    {
      "ProductID": 25398138,
      "ProfileID": 12345678,
      "DistributionCenterID": 1,
      "AvailableQuantity": 100
    },
    {
      "ProductID": 25398138,
      "ProfileID": 12345678,
      "DistributionCenterID": 14,
      "AvailableQuantity": 9996
    },
    {
      "ProductID": 25398138,
      "ProfileID": 12345678,
      "DistributionCenterID": 48,
      "AvailableQuantity": 500
    }
  ]
}