It returns the list of changes in product quantity, which were done within one stock. Supports the Paging movements.
This endpoint supports optional parts using the include parameter (see Section on demand). Please note that there is some performance penalty associated with the usage of "orderCode" include and/or query parameter. Also please note that when include productGuid is used, the returned data can be null for specific cases. Either when this is a historic stock move, or the product code has been changed and/or is inconsistent with internally stored guid. This is to ensure that the returned code and productGuid always point to the same product consistently. To return GUID of product at the time of the stock movement, please use the include and attribute historicalProductGuid. The returned data can still be null on historic stock movements.
- Mock serverhttps://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/stocks/{stockId}/movements
- https://api.myshoptet.comhttps://api.myshoptet.com/api/stocks/{stockId}/movements
- shoptetAccessToken
- shoptetPrivateApiToken
curl -i -X GET \
'https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/stocks/1/movements?lastId=45&changeTimeFrom=2021-03-01T00%3A00%3A00%2B0100&orderCode=2017000049&include=orderCode%2CproductGuid%2ChistoricalProductGuid%2CsumAmount&itemsPerPage=50&page=3' \
-H 'Content-Type: application/json' \
-H 'Shoptet-Access-Token: YOUR_API_KEY_HERE'{ "data": { "movements": [ … ], "paginator": { … } }, "errors": [ { … } ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }