Update inventory in bulk using bulkOperationRunMutation

I need to frequently update the inventory (stock levels) of existing product variants in Shopify in bulk from a 3rd party service. I was planning to use the bulkOperationRunMutation API for this purpose, but I couldn’t find any mutation related to inventory updates in the Bulk import data with the GraphQL Admin API

Could anyone please confirm whether bulk inventory updates are supported via bulkOperationRunMutation? If not, is there an alternative recommended method for updating variant inventory levels in bulk at regular intervals?

1 Like

Hey @Cv_Gandhi :waving_hand: - bulk operations don’t currently support our inventory management APIs, but you should be able to use InventorySetQuantities to update the stock levels of up to 250 inventory items in a single API call.

You may need to iterate through a few separate instances of that call if you need to update more than 250 inventory items, but this is the reccommended approach at the moment. There’s a bit more info here where some other devs were discussing this:

Hope this helps!

1 Like