How to get all of the location inventory for all product variants

Hey,

I am creating an inventory sync service that will update the product variants location based inventory. Ideally the updates will be every 5 minutes. The products are setup so that they variants are unique via the barcode and the parent products are unique via the SKU.

I have looked around the GraphQL Admin docs and cant see anywhere i can just request all inventory for a location or all location inventory for a product.

The AI tool suggested that i use the getAllLocations request and then get all per location.

There are 80 locations, 500 products and roughly 5000 variants.

Thanks

You’ll need to get the inventoryItem of the variant and then finally inventoryLevels.

Try giving the Dev AI Assistant a go.

Yeah ok, i thought that was the case. I did try the AI tool, i mentioned this above.

I was hoping there was a way to get all inventory at once, rather than per location or per variant.

Thanks

Have you looked at inventorySetQuantities?

No i havent seen inventorySetQuantities, looks great. Thanks for that!