Bulk Inventory Update

Kishor_Kumar_Ma
Shopify Partner
2 0 1

Hi,

Is it possible to update inventory in bulk in a single API call?

https://shopify.dev/docs/admin-api/rest/reference/inventory/inventoryitem

I found the API that allows the single item in the single call but we have a large number of products so it takes me too much time to update all, so if possible to update in bulk by 100 or thousands or all variants of single products?

 

Thanks in advance.

0 Likes
Greg_Kujawa
Shopify Partner
1016 83 223

As far as I'm aware the only API bulk operation exists in the GraphQL API. But for pulling records, as opposed to updating records. Shopify's API call limits aren't terribly restrictive, compared to other API service providers. For example, REST operations weigh GET, PUT, POST, etc. requests all the same. And allow 2 requests per second. So for example, if you are updating 1,000 records then iterating through them in code to perform the API requests should take around 8-9 minutes. 

For my own use cases, I typically run into mass update requirements for an initial data conversion. That mass update can take awhile, but then when it comes to syncing records over a small delta timespan those updates aren't terribly time-consuming. So even issuing one API request at a time for those completes in just well under a minute. 

This is all based on the assumption you are aware that the Shopify web admin has functions for importing product and inventory CSV's to mass update things --> https://help.shopify.com/en/manual/products/import-export/import-products and https://help.shopify.com/en/manual/products/inventory/inventory-csv

0 Likes