GET api/ProductVersions?ProductID={ProductID}&PermissionSet={PermissionSet}&Lang2={Lang2}

Request a list of product versions that belong to a single product
The price of a product depends on the version For more information over ProductVersion, check: ProductVersion

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ProductID

The ProductID of the Product

integer

Required

PermissionSet

The permission set that the current login user has

integer

Default value is 0

Lang2

The language in which the product versions need to be,
This is a 2 letter code, defaults to english(EN) if the letter code is unknown.

string

Default value is EN

Body Parameters

None.

Response Information

Resource Description

A List of ProductVersion

Collection of ProductVersion
NameDescriptionTypeAdditional information
UniqueProductID

Every physical or virtual product has a unique ID, the UniqueProductID.
For example: we've got 3 blue pencils on the shelf, all 3 pencils have the same ProductID 55555
Also every pencils has it's own UniqueProductID, blue pencils 1 has UniqueProductID 88889999001, blue pencils 2 has UniqueProductID 88889999002, blue pencils 3 has UniqueProductID 88889999003

integer

None.

Description

Long description of this unique item

string

None.

Version

The version of the product
For example: New, Revised, Used

string

None.

Price

The price of this unique item
Theoretically it's possible that 2 identical blue pencils have different prices
Tho we strive to keep the prices also identical

decimal number

None.

Stock

The number of items in stock of this item
Default to 1, except if stock is not managed at unique level, but on product level, then it's the number of items actual in stock

decimal number

None.

PictureGroup

The name of the picture group related to the product details

string

None.

SortOrder

When this class used within a list, SortOrder defines the position in the list.

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "UniqueProductID": 1,
    "Description": "sample string 2",
    "Version": "sample string 3",
    "Price": 4.0,
    "Stock": 5.0,
    "PictureGroup": "sample string 6",
    "SortOrder": 7
  },
  {
    "UniqueProductID": 1,
    "Description": "sample string 2",
    "Version": "sample string 3",
    "Price": 4.0,
    "Stock": 5.0,
    "PictureGroup": "sample string 6",
    "SortOrder": 7
  }
]

application/xml, text/xml

Sample:
<ArrayOfProductVersion xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATRonicLayer.BO">
  <ProductVersion>
    <Description>sample string 2</Description>
    <PictureGroup>sample string 6</PictureGroup>
    <Price>4</Price>
    <SortOrder>7</SortOrder>
    <Stock>5</Stock>
    <UniqueProductID>1</UniqueProductID>
    <Version>sample string 3</Version>
  </ProductVersion>
  <ProductVersion>
    <Description>sample string 2</Description>
    <PictureGroup>sample string 6</PictureGroup>
    <Price>4</Price>
    <SortOrder>7</SortOrder>
    <Stock>5</Stock>
    <UniqueProductID>1</UniqueProductID>
    <Version>sample string 3</Version>
  </ProductVersion>
</ArrayOfProductVersion>