How can Flow transfer stock based on inventory levels after an order?

Hi - is there a way for flow to look up the inventory level of a product after an order has been placed and transfer stock to the order location if the current inventory after the order is 0 or less?

Customer places an order

Flow checks inventory for location A

Flow checks inventory in Location A

If inventory level for the line item is 0 or less then

transfer i

Why do I need to email you? This is an open forum.

Yes, you can check inventory at a certain location with the variable:

order / lineItems / variant / inventoryItem / inventoryLevels / available (note - this last variable is deprecated, so it will be in that section).

Transferring inventory is a bit more difficult. For that you need to use Send HTTP Request, which requires a Custom App API key to use. The API you would need to call is https://shopify.dev/docs/api/admin-graphql/2023-01/mutations/inventoryMoveQuantities

Hi Paul! This sounds exactly like what we need!!! Are you able to please provide any further info to help setting this up? or, do you know someone who could set it up for us please?? Thank you :slightly_smiling_face:

We are unable to build workflows for everyone, but there might be some agencies that would be interested in taking on the work. It’s important to remember that build a Flow is a lot like building a custom app, so often the person needs to be pretty familiar with your store and your requirements. That said, if you try to build something and get stuck on a step, we might be able to answer a more specific question for you.