GET api/stocks/{shopId}/variants/{variantId}
Provides stock quantity, given shop id and variant id.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| shopId |
Six digit DdD identifier. |
integer |
Required |
| variantId |
Unique identifier corresponding to an item. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Stock object.
PublicAPI.Models.StockViewModel| Name | 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>