GET api/stocks/{shopId}/{valueOption}/{page}/{pagesize}/since?since={since}
Provides stock quantity, since date for all variant ids with EAN, as PAGED, given shop id, stock value option and date.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| shopId |
The shop id. |
integer |
Required |
| valueOption |
Stock value option. |
Core.Models.Domain.StockValueOption |
Required |
| since |
The date used as delimter. |
date |
Required |
| page |
The page number in the query. First query would be 1. |
integer |
Required |
| pagesize |
The size of the page. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Paged result of stock info models
PublicAPI.Models.PagedViewModelOfPublicAPI.Models.VariantStockDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| PageNumber | integer |
None. |
|
| PageSize | integer |
None. |
|
| TotalNumberOfPages | integer |
None. |
|
| TotalNumberOfRecords | integer |
None. |
|
| Results | Collection of PublicAPI.Models.VariantStockDTO |
None. |
Response Formats
application/json, text/json
Sample:
{
"PageNumber": 1,
"PageSize": 2,
"TotalNumberOfPages": 3,
"TotalNumberOfRecords": 4,
"Results": [
{
"StyleId": 1,
"SupplierId": 2,
"ItemGroupId": 3,
"VariantId": 4,
"Ean": "sample string 5",
"StockInShop": 6
},
{
"StyleId": 1,
"SupplierId": 2,
"ItemGroupId": 3,
"VariantId": 4,
"Ean": "sample string 5",
"StockInShop": 6
}
]
}
application/xml, text/xml
Sample:
<PagedViewModelOfVariantStockDTOiTlCtTkQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models">
<PageNumber>1</PageNumber>
<PageSize>2</PageSize>
<Results>
<VariantStockDTO>
<Ean>sample string 5</Ean>
<ItemGroupId>3</ItemGroupId>
<StockInShop>6</StockInShop>
<StyleId>1</StyleId>
<SupplierId>2</SupplierId>
<VariantId>4</VariantId>
</VariantStockDTO>
<VariantStockDTO>
<Ean>sample string 5</Ean>
<ItemGroupId>3</ItemGroupId>
<StockInShop>6</StockInShop>
<StyleId>1</StyleId>
<SupplierId>2</SupplierId>
<VariantId>4</VariantId>
</VariantStockDTO>
</Results>
<TotalNumberOfPages>3</TotalNumberOfPages>
<TotalNumberOfRecords>4</TotalNumberOfRecords>
</PagedViewModelOfVariantStockDTOiTlCtTkQ>