POST v1/Products/ReplaceableParts/ServiceProducts

Retrieves a list of ServiceProducts where the ReplaceablePart are based on the given ProductIDs

Request Information

URI Parameters

None.

Body Parameters

Collection of ProductIDs

Collection of integer

Request Formats

application/json, text/json

Sample:
[
  1,
  2
]

Response Information

Resource Description

List of ServiceProducts grouped by the given ProductIDs

Collection of ServiceProductsByProduct
NameDescriptionTypeAdditional information
ProductId

ProductId that corresponds to the collection of ServiceProducts

integer

None.

ServiceProducts

Collection of ServiceProducts that correspond to the ProductId

Collection of ServiceProduct

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ProductId": 1,
    "ServiceProducts": [
      {
        "ReplaceableParts": [
          {
            "Id": 1,
            "UseDiscount": true,
            "ProductId": 3,
            "ProductCode": "sample string 4",
            "ProductName": "sample string 5",
            "ProductEan": "sample string 6"
          },
          {
            "Id": 1,
            "UseDiscount": true,
            "ProductId": 3,
            "ProductCode": "sample string 4",
            "ProductName": "sample string 5",
            "ProductEan": "sample string 6"
          }
        ],
        "Id": 1,
        "Name": "sample string 2",
        "ShopGroupId": 3,
        "ShopGroupName": "sample string 4",
        "ShopGroupIconUrl": "sample string 5",
        "ProductBrandId": 6,
        "ProductBrandName": "sample string 7",
        "WarrantyMonths": 1
      },
      {
        "ReplaceableParts": [
          {
            "Id": 1,
            "UseDiscount": true,
            "ProductId": 3,
            "ProductCode": "sample string 4",
            "ProductName": "sample string 5",
            "ProductEan": "sample string 6"
          },
          {
            "Id": 1,
            "UseDiscount": true,
            "ProductId": 3,
            "ProductCode": "sample string 4",
            "ProductName": "sample string 5",
            "ProductEan": "sample string 6"
          }
        ],
        "Id": 1,
        "Name": "sample string 2",
        "ShopGroupId": 3,
        "ShopGroupName": "sample string 4",
        "ShopGroupIconUrl": "sample string 5",
        "ProductBrandId": 6,
        "ProductBrandName": "sample string 7",
        "WarrantyMonths": 1
      }
    ]
  },
  {
    "ProductId": 1,
    "ServiceProducts": [
      {
        "ReplaceableParts": [
          {
            "Id": 1,
            "UseDiscount": true,
            "ProductId": 3,
            "ProductCode": "sample string 4",
            "ProductName": "sample string 5",
            "ProductEan": "sample string 6"
          },
          {
            "Id": 1,
            "UseDiscount": true,
            "ProductId": 3,
            "ProductCode": "sample string 4",
            "ProductName": "sample string 5",
            "ProductEan": "sample string 6"
          }
        ],
        "Id": 1,
        "Name": "sample string 2",
        "ShopGroupId": 3,
        "ShopGroupName": "sample string 4",
        "ShopGroupIconUrl": "sample string 5",
        "ProductBrandId": 6,
        "ProductBrandName": "sample string 7",
        "WarrantyMonths": 1
      },
      {
        "ReplaceableParts": [
          {
            "Id": 1,
            "UseDiscount": true,
            "ProductId": 3,
            "ProductCode": "sample string 4",
            "ProductName": "sample string 5",
            "ProductEan": "sample string 6"
          },
          {
            "Id": 1,
            "UseDiscount": true,
            "ProductId": 3,
            "ProductCode": "sample string 4",
            "ProductName": "sample string 5",
            "ProductEan": "sample string 6"
          }
        ],
        "Id": 1,
        "Name": "sample string 2",
        "ShopGroupId": 3,
        "ShopGroupName": "sample string 4",
        "ShopGroupIconUrl": "sample string 5",
        "ProductBrandId": 6,
        "ProductBrandName": "sample string 7",
        "WarrantyMonths": 1
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfServiceProductsByProduct xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ServiceProductsByProduct>
    <ProductId>1</ProductId>
    <ServiceProducts>
      <ServiceProduct>
        <Id>1</Id>
        <Name>sample string 2</Name>
        <ShopGroupId>3</ShopGroupId>
        <ShopGroupName>sample string 4</ShopGroupName>
        <ShopGroupIconUrl>sample string 5</ShopGroupIconUrl>
        <ProductBrandId>6</ProductBrandId>
        <ProductBrandName>sample string 7</ProductBrandName>
        <WarrantyMonths>1</WarrantyMonths>
        <ReplaceableParts>
          <ServiceProductReplaceablePartInfo>
            <Id>1</Id>
            <UseDiscount>true</UseDiscount>
            <ProductId>3</ProductId>
            <ProductCode>sample string 4</ProductCode>
            <ProductName>sample string 5</ProductName>
            <ProductEan>sample string 6</ProductEan>
          </ServiceProductReplaceablePartInfo>
          <ServiceProductReplaceablePartInfo>
            <Id>1</Id>
            <UseDiscount>true</UseDiscount>
            <ProductId>3</ProductId>
            <ProductCode>sample string 4</ProductCode>
            <ProductName>sample string 5</ProductName>
            <ProductEan>sample string 6</ProductEan>
          </ServiceProductReplaceablePartInfo>
        </ReplaceableParts>
      </ServiceProduct>
      <ServiceProduct>
        <Id>1</Id>
        <Name>sample string 2</Name>
        <ShopGroupId>3</ShopGroupId>
        <ShopGroupName>sample string 4</ShopGroupName>
        <ShopGroupIconUrl>sample string 5</ShopGroupIconUrl>
        <ProductBrandId>6</ProductBrandId>
        <ProductBrandName>sample string 7</ProductBrandName>
        <WarrantyMonths>1</WarrantyMonths>
        <ReplaceableParts>
          <ServiceProductReplaceablePartInfo>
            <Id>1</Id>
            <UseDiscount>true</UseDiscount>
            <ProductId>3</ProductId>
            <ProductCode>sample string 4</ProductCode>
            <ProductName>sample string 5</ProductName>
            <ProductEan>sample string 6</ProductEan>
          </ServiceProductReplaceablePartInfo>
          <ServiceProductReplaceablePartInfo>
            <Id>1</Id>
            <UseDiscount>true</UseDiscount>
            <ProductId>3</ProductId>
            <ProductCode>sample string 4</ProductCode>
            <ProductName>sample string 5</ProductName>
            <ProductEan>sample string 6</ProductEan>
          </ServiceProductReplaceablePartInfo>
        </ReplaceableParts>
      </ServiceProduct>
    </ServiceProducts>
  </ServiceProductsByProduct>
  <ServiceProductsByProduct>
    <ProductId>1</ProductId>
    <ServiceProducts>
      <ServiceProduct>
        <Id>1</Id>
        <Name>sample string 2</Name>
        <ShopGroupId>3</ShopGroupId>
        <ShopGroupName>sample string 4</ShopGroupName>
        <ShopGroupIconUrl>sample string 5</ShopGroupIconUrl>
        <ProductBrandId>6</ProductBrandId>
        <ProductBrandName>sample string 7</ProductBrandName>
        <WarrantyMonths>1</WarrantyMonths>
        <ReplaceableParts>
          <ServiceProductReplaceablePartInfo>
            <Id>1</Id>
            <UseDiscount>true</UseDiscount>
            <ProductId>3</ProductId>
            <ProductCode>sample string 4</ProductCode>
            <ProductName>sample string 5</ProductName>
            <ProductEan>sample string 6</ProductEan>
          </ServiceProductReplaceablePartInfo>
          <ServiceProductReplaceablePartInfo>
            <Id>1</Id>
            <UseDiscount>true</UseDiscount>
            <ProductId>3</ProductId>
            <ProductCode>sample string 4</ProductCode>
            <ProductName>sample string 5</ProductName>
            <ProductEan>sample string 6</ProductEan>
          </ServiceProductReplaceablePartInfo>
        </ReplaceableParts>
      </ServiceProduct>
      <ServiceProduct>
        <Id>1</Id>
        <Name>sample string 2</Name>
        <ShopGroupId>3</ShopGroupId>
        <ShopGroupName>sample string 4</ShopGroupName>
        <ShopGroupIconUrl>sample string 5</ShopGroupIconUrl>
        <ProductBrandId>6</ProductBrandId>
        <ProductBrandName>sample string 7</ProductBrandName>
        <WarrantyMonths>1</WarrantyMonths>
        <ReplaceableParts>
          <ServiceProductReplaceablePartInfo>
            <Id>1</Id>
            <UseDiscount>true</UseDiscount>
            <ProductId>3</ProductId>
            <ProductCode>sample string 4</ProductCode>
            <ProductName>sample string 5</ProductName>
            <ProductEan>sample string 6</ProductEan>
          </ServiceProductReplaceablePartInfo>
          <ServiceProductReplaceablePartInfo>
            <Id>1</Id>
            <UseDiscount>true</UseDiscount>
            <ProductId>3</ProductId>
            <ProductCode>sample string 4</ProductCode>
            <ProductName>sample string 5</ProductName>
            <ProductEan>sample string 6</ProductEan>
          </ServiceProductReplaceablePartInfo>
        </ReplaceableParts>
      </ServiceProduct>
    </ServiceProducts>
  </ServiceProductsByProduct>
</ArrayOfServiceProductsByProduct>