GET api/stocks/actual/{shopId}/supplier/{supplierId}/page/{page}/size/{pagesize}
Provides combined non-zero stock quantity by supplier, as PAGED, given shop id
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
shopId | integer |
Required |
|
supplierId | integer |
Required |
|
page | integer |
Required |
|
pagesize | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
PublicAPI.Models.PagedViewModelOfPublicAPI.Models.CombinedStockViewModelName | Description | Type | Additional information |
---|---|---|---|
PageNumber | integer |
None. |
|
PageSize | integer |
None. |
|
TotalNumberOfPages | integer |
None. |
|
TotalNumberOfRecords | integer |
None. |
|
Results | Collection of PublicAPI.Models.CombinedStockViewModel |
None. |
Response Formats
application/json, text/json
Sample:
{ "PageNumber": 1, "PageSize": 2, "TotalNumberOfPages": 3, "TotalNumberOfRecords": 4, "Results": [ { "VariantId": "sample string 1", "Ean": 2, "StockInShop": 3, "TransferDrafts": 4, "PurchaseDrafts": 5 }, { "VariantId": "sample string 1", "Ean": 2, "StockInShop": 3, "TransferDrafts": 4, "PurchaseDrafts": 5 } ] }
application/xml, text/xml
Sample:
<PagedViewModelOfCombinedStockViewModeliTlCtTkQ 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> <CombinedStockViewModel> <Ean>2</Ean> <PurchaseDrafts>5</PurchaseDrafts> <StockInShop>3</StockInShop> <TransferDrafts>4</TransferDrafts> <VariantId>sample string 1</VariantId> </CombinedStockViewModel> <CombinedStockViewModel> <Ean>2</Ean> <PurchaseDrafts>5</PurchaseDrafts> <StockInShop>3</StockInShop> <TransferDrafts>4</TransferDrafts> <VariantId>sample string 1</VariantId> </CombinedStockViewModel> </Results> <TotalNumberOfPages>3</TotalNumberOfPages> <TotalNumberOfRecords>4</TotalNumberOfRecords> </PagedViewModelOfCombinedStockViewModeliTlCtTkQ>