GET api/webshop/article/stock/variant/{variantId}
Provides a list of web shop stock for all shops, given a variant id.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
variantId |
Id of the variant. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
List of stock quantity models.
Collection of ArticleStockInfoName | Description | Type | Additional information |
---|---|---|---|
ShopId |
Id of the shop. |
integer |
None. |
StyleId |
Id of the style. |
integer |
None. |
VariantId |
Id of the variant. |
integer |
None. |
Quantity |
Quantity in stock. |
integer |
None. |
Response Formats
application/json, text/json
Sample:
[ { "ShopId": 1, "StyleId": 2, "VariantId": 3, "Quantity": 4 }, { "ShopId": 1, "StyleId": 2, "VariantId": 3, "Quantity": 4 } ]
application/xml, text/xml
Sample:
<ArrayOfArticleStockInfoDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models"> <ArticleStockInfoDTO> <Quantity>4</Quantity> <ShopId>1</ShopId> <StyleId>2</StyleId> <VariantId>3</VariantId> </ArticleStockInfoDTO> <ArticleStockInfoDTO> <Quantity>4</Quantity> <ShopId>1</ShopId> <StyleId>2</StyleId> <VariantId>3</VariantId> </ArticleStockInfoDTO> </ArrayOfArticleStockInfoDTO>