POST v1/Products/ServiceProducts

Retrieves the ServiceProducts for the provided 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 ServiceProductByProduct
NameDescriptionTypeAdditional information
ProductId

The provided ProductId

integer

None.

ServiceProduct

The ServiceProduct coupled to the ProductId

ServiceProduct

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ProductId": 1,
    "ServiceProduct": {
      "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,
    "ServiceProduct": {
      "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:
<ArrayOfServiceProductByProduct xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ServiceProductByProduct>
    <ProductId>1</ProductId>
    <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>
  </ServiceProductByProduct>
  <ServiceProductByProduct>
    <ProductId>1</ProductId>
    <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>
  </ServiceProductByProduct>
</ArrayOfServiceProductByProduct>