Discussions
How do I fetch real-time inventory levels for variant SKUs using the Open API without hitting rate limits?
4 days ago by Clayton Hunter
Hey everyone, I’m building a sync tool in Greece (EET timezone) that pulls stock for 500+ variant SKUs every 5 minutes via /v1/products/{id}/variants. Right now I’m getting 429 Too Many Requests after ~120 calls even though my app is approved for 10 req/sec.
Do I need to:
Use the /v1/inventory bulk endpoint instead?
Add ?fields=inventory_quantity to reduce payload?
Request a higher rate limit via partner dashboard?
Also, does the API respect X-ShopLine-Access-Token caching or should I rotate tokens? Sample curl that works reliably would be golden. Thanks!