Integration with LS API, Get products and stocks
I need some help and confirmation for my ideas :)
General view of idea:
- Get products from LS API and save response in my DB
- Get stocks of this products save response in my DB
I read the API documentation , i know i should send GET request on https://api.shoplightspeed.com/en/products.json
(documentation link: https://developers.lightspeedhq.com/ecom/endpoints/product/#get-all-products). But i do not want to get all products every time, is there any filter how I can filter products from last call date? ( i will set cron to pull data every 2 hours). Will these API respond me with all product data?
Next thing is GET stocks from LS API, i can not find in documentation API where i can ask about stocks for proper productId. Is there any API like this? I see Variant documentation but in fact i don't know how it works https://developers.lightspeedhq.com/ecom/endpoints/variant/
The same thing like in products, i want to update stocks in my DB every 10minutes, how i can filter these informations?