GET api/webshop/article/stock/variant/{variantId}/shop/{shopId}
Provides a web shop article with stock for one shop, given a variant id and a shop id.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| variantId |
Id of the variant. |
integer |
Required |
| shopId |
Id of the shop. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
A stock quantity model.
ArticleStockInfo| Name | 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
}
application/xml, text/xml
Sample:
<ArticleStockInfoDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models"> <Quantity>4</Quantity> <ShopId>1</ShopId> <StyleId>2</StyleId> <VariantId>3</VariantId> </ArticleStockInfoDTO>