Retrieve Component IDs and Component Skus


When to Use

  • To retrieve the Component ID and ComponentSku values, but other data such as Bundle Product ID, or Component Quantity are not needed.
  • Useful for retrieving a Component ID on a product to turn around and update the quantity on, or delete, the Component.

Resource URL / Endpoint

GET https://api.channeladvisor.com/v1/ProductBundleComponents?$select=ComponentID,ComponentSku

Important and/or Required Parameters

PropertyType (Max Length)RequiredNote
$select=n/aRequiredInclude in URL. Defines action to limit the response to properties selected.
ComponentID,ComponentSkun/aRequired

Include in URL. Defines the values to be returned in the response.

Example Request
GET https://api.channeladvisor.com/v1/ProductBundleComponents?access_token=xxxxxxxxxx&$select=ComponentID,ComponentSku
Example Response (Success)
200 OK
{
  "@odata.context": "https://api.channeladvisor.com/v1/$metadata#ProductBundleComponents(ComponentID,ComponentSku)",
  "value": [
    {
      "ComponentID": 25030239,
      "ComponentSku": "TestSKU0000004"
    },
    {
      "ComponentID": 25030240,
      "ComponentSku": "TestSKU0000005"
    },
    {
      "ComponentID": 25030555,
      "ComponentSku": "TestSKU0000006"
    },
    {
      "ComponentID": 25030556,
      "ComponentSku": "TestSKU0000007"
    },
    {
      "ComponentID": 25030557,
      "ComponentSku": "TestSKU0000008"
    },
    {
      "ComponentID": 25030558,
      "ComponentSku": "TestSKU0000009"
    },
    {
      "ComponentID": 25030559,
      "ComponentSku": "TestSKU0000010"
    }
  ]
}