GET api/stocks/{shopId}/variants/{barcode}
Provides stock quantity, given shop id and barcode.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
shopId |
Six digit DdD identifier. |
integer |
Required |
barcode |
13 digit identifier corresponding to an item. |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
Stock object.
PublicAPI.Models.StockViewModelName | Description | Type | Additional information |
---|---|---|---|
Identifier |
Identifier for an item |
string |
None. |
Quantity |
The amount of items in stock at shop |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "Identifier": "sample string 1", "Quantity": 2 }
application/xml, text/xml
Sample:
<StockViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models"> <Identifier>sample string 1</Identifier> <Quantity>2</Quantity> </StockViewModel>