Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

API for stock level to be updated limited to 250 products

API for stock level to be updated limited to 250 products

Deon3
Visitor
1 0 0

Hi, 

The Stock levels will update using an API for a maximum of 250 products in my store. I am unable to add new stock as it exceeds 250 products.How would I get the stock levels to update with an API for more than 250 products in Shopify?

 

Reply 1 (1)

Liam
Community Manager
3108 344 899

Hi Deon3,

 

Could you break down your updates into multiple API calls, each with a maximum of 250 items.

For example, if you have 500 products to update, you would make two separate API calls, each updating 250 products. This approach also helps you stay within Shopify's API rate limits by spreading out your requests.

 

For smoother distribution of requests, you could also consider implementing a queuing system with a delay between each batch of requests, and caching data that your app uses often.

 

Hope this helps!

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog