# Stock movement checking enhanced

URL: https://shoptet.dev/news/api/stock-movement-checking-enhanced

April 26, 2021 · One min read
Pavel Husa

Based on your feedback we have enhanced work with the stock movements.

There is a new endpoint [Last stock movement](https://api.docs.shoptet.com/shoptet-api/openapi/stocks/getstockmovementslastmove) , which returns last movement's `id` and timestamp of certain stock instantly. This helps to skip old stock log entries and start checking from now on.

Endpoint [[GET] Stock movements](https://api.docs.shoptet.com/shoptet-api/openapi/stocks/getstockmovements) was enhanced to accept a new filter – parameter `?changeTimeFrom=` . This allows to retrieve records restricted to certain time in the past, e. g. beginning of the year or month. The timestamp however should not be used as a processing marker, because there might be multiple stock events within 1 second (which is the timestamp precision).

**Tags:**
- [API](/news/tags/api/)
