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

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

amellick
Tourist
7 0 1

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

Replies 4 (4)
amellick
Tourist
7 0 1
Why do I need to email you? This is an open forum.

paul_n
Shopify Staff
1336 151 305

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

 

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
Unfurl
Tourist
3 0 1

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 🙂

paul_n
Shopify Staff
1336 151 305

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. 

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.