Returns the product supplies in stock for all products in a specific stock, contains GUID, code and quantity in stock for a specific product variant. It is possible to filter the specific GUID of a product, possibly a variant code. The endpoint supports Paging, in case of filtering, the amount of items per page increases. This endpoint supports optional parts using the include parameter (see Section on demand). The changeTime item is always temporarily returned, however as of 16. 3. 2019 only upon using the include parameter.
If you defined the include=changeTime parameter within the URL, the response will also contain the time when the last quantity in stock was changed.
Security
shoptetAccessToken or shoptetPrivateApiToken
- Mock serverhttps://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/stocks/{stockId}/supplies
- https://api.myshoptet.comhttps://api.myshoptet.com/api/stocks/{stockId}/supplies
- shoptetAccessToken
- shoptetPrivateApiToken
curl -i -X GET \
'https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/stocks/1/supplies?productGuid=0023368f-d97b-11e0-b04f-57a43310b768&code=26%2FBIL&onlyWithClaim=true&changedFrom=string&itemsPerPage=50&page=3' \
-H 'Content-Type: application/json' \
-H 'Shoptet-Access-Token: YOUR_API_KEY_HERE'Response
{ "data": { "supplies": [ … ], "paginator": { … } }, "errors": [ { … } ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }