POST ProductImage/Images

Gets a list of product images for Product Ids returning the product ids image binary in a byte array

Request Information

URI Parameters

None.

Body Parameters

ProductImageCommand
Name Type Description Additional information
ProductIds Collection of integer

List of product Id's to get images for, MAX 50 Images

None.

MaxHeight integer

The maximum height in pixels that the product images will return with

None.

MaxWidth integer

The maximum width in pixels that the product images will return with ///

None.

Request Formats

application/json, text/json

Sample:
{
  "ProductIds": [
    1,
    2
  ],
  "MaxHeight": 1,
  "MaxWidth": 2
}

application/xml, text/xml

Sample:
<ProductImageCommand xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tevalis.API.App.Models">
  <MaxHeight>1</MaxHeight>
  <MaxWidth>2</MaxWidth>
  <ProductIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </ProductIds>
</ProductImageCommand>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of ProductImageDto
Name Type Description Additional information
ProductID integer

None.

ProductBase64 string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ProductID": 1,
    "ProductBase64": "sample string 2"
  },
  {
    "ProductID": 1,
    "ProductBase64": "sample string 2"
  }
]

application/xml, text/xml

Sample:
<ArrayOfProductImageDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tevalis.API.App.Controllers">
  <ProductImageDto>
    <ProductBase64>sample string 2</ProductBase64>
    <ProductID>1</ProductID>
  </ProductImageDto>
  <ProductImageDto>
    <ProductBase64>sample string 2</ProductBase64>
    <ProductID>1</ProductID>
  </ProductImageDto>
</ArrayOfProductImageDto>