GET api/stocks/{shopId}/combinedstock/{barcode}
Provides combined stock quantities, given shop id and barcode. Stock at shop, stock in transfer and stock purchased.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| shopId | integer |
Required |
|
| barcode | string |
Required |
Body Parameters
None.
Response Information
Resource Description
PublicAPI.Models.CombinedStockDto| Name | Description | Type | Additional information |
|---|---|---|---|
| VariantId |
Identifier for an item |
string |
None. |
| StockInShop |
The amount of items in stock at shop |
integer |
None. |
| TransferDrafts |
The amount of transfer items internally |
integer |
None. |
| PurchaseDrafts |
The amount of transfer from supplier |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"VariantId": "sample string 1",
"StockInShop": 2,
"TransferDrafts": 3,
"PurchaseDrafts": 4
}
application/xml, text/xml
Sample:
<CombinedStockDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models"> <PurchaseDrafts>4</PurchaseDrafts> <StockInShop>2</StockInShop> <TransferDrafts>3</TransferDrafts> <VariantId>sample string 1</VariantId> </CombinedStockDto>