getProductVariants.v1
This pipeline retrieves variant-products and the characteristics to distinguish these.
Request Body
Section titled “Request Body”object
Only active products would be fetched by default, to fetch inactive products too, set this to true
Responses
Section titled “Responses”Successful response.
A collection of variant-data for one product
object
List of variant values that identify the different variant products
object
The product id of this variant
A flag that determines if this variant has options too, that should be loadead on the detail page
A list of characteristic values that uniquely identify this variant
object
The property key uniquely identifies the characteristic attribute (e.g. color or size) and the value identifies the value id (e.g. red or large)
object
A custom text concerning stock (see available_text in old cake system)
A boolean flag that determines if the product it orderable at all
The amount of products that are available
The maximum of amount of items that are orderable in one order
The minimu amount of items that have to be ordered of this product
If true, this will allow the customer to buy more products than are available in stock
object
Text to describe the availability of this product
A kind of flag, that describes the availability state of this product
A list of the available characteristics of the variants of this product
object
The unique id of this characteristic
The name that should be displayed to the customer, like “color” or “size”
A list of values for this characteristic, already sorted
object
The unique id of this value
The label that should be display to the customer, like “red” or “xl”
Example
{ "products": [ { "id": 123, "hasOptions": false, "characteristics": { "1": "2" }, "stock": { "ignoreQuantity": false, "quantity": 1, "available": true, "info": "Sofort lieferbar", "orderable": true, "minOrderQuantity": 0, "maxOrderQuantity": 0 }, "availability": { "state": "ok", "text": "its ok" } } ], "characteristics": [ { "id": "1", "label": "Color", "values": [ { "id": "2", "label": "red" } ] } ]}
