Update multiple inventory items in one POST query using REST

Ash_Johnson
New Member
2 0 0

I was wondering if there was an efficient way to update multiple inventory items in one POST query? I am currently using the endpoint /admin/api/2021-07/inventory_levels/set.json but it seems very inefficient to update each variant individually when doing a stock check when it could easily done by sending through a larger dataset to the POST query.

Does anyone have any idea how I can do this. The documentation doesn't seem to cover it. 

0 Likes
GrahamS
Shopify Staff
Shopify Staff
83 16 16

Hey @Ash_Johnson ,

This might not be the answer you are looking for, but this is one of the situations where we tend to strongly recommend taking advantage of GraphQL over REST. The greater flexibility in call structure as well as the possibilities offered through our bulk query operations allow for you to do this much more easily than you would otherwise be able to via REST

Some more info HERE

If you are set on sticking with REST, then that's understandable - hopefully some other forum posters will be able to offer insight in that regard!

Best,

Graham

Graham S | API Support @ 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

0 Likes