Have your say in Community Polls: What was/is your greatest motivation to start your own business?
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.

Using Rest API to update multiple inventory_item_Ids at once

Using Rest API to update multiple inventory_item_Ids at once

Jentsch
Shopify Partner
31 0 5

Hi all, 

 

Just wondering if there is a way to call the REST API to update inventory in bulk rather than individually? I am quite new to API's etc and utilising these but can fumble my way around. We've got a Shopify store that is linked to our brick and mortar locations and the current integration for a single site takes around 20 hours to complete for a single store. Getting that down to a more manageable amount would be great!

From looking at the REST API documentation it looks like there isn't an option with the REST service to have an array in the request to enable the input of multiple inventory_item_Ids. 

Jentsch_0-1632372660557.png

 

If this isn't possible - how do some of the bigger online stores with multiple fulfilment centres, who have thousands of products etc, keep their inventory in sync? 

 

If anyone can point me in the right direction that'd be great!

 

Thanks, 

Jacob

Replies 2 (2)

GrahamS
Shopify Staff (Retired)
193 37 55

Hey @Jentsch ,

In a case like this, most users will typically utilize GraphQL over REST, due to the greater flexibility. We wrote up a blog post offering insights on how to leverage GraphQL for quicker and more dynamic inventory adjustments - check it out: BLOG

To learn more visit the Shopify Help Center or the Community Blog.

HunkyBill
Shopify Partner
4853 60 568

Absolutely! I have a store with > 10,000 products, and therefore many more SKUs than that. Outside source of inventory has 78,000 barcodes to use as a reference for quantity. All in all, using the Shopify bulk inventory update in GQL, I get those products all updated in < 300 seconds. No longer do you need to wait 20 hours!

 

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com