Split Shopify Orders Across Fulfillment Locations

6 min setup
No coding required
Runs automatically

When Shopify assigns an order to a location that doesn't have everything in stock, someone has to move it by hand. This workflow checks stock for each fulfillment order on a new Shopify order and moves it to a location that has the items on hand, so orders ship from the right place without anyone reassigning them.

Shopify logo icon
Shopify Order Created (Trigger)
Shopify Retrieve Order's Fulfillment Orders
Loop
Shopify Get List of Location Inventory Levels
Logic
Shopify logo icon
Shopify Move Fulfillment Order

How it works

6 steps to move each order to the location that actually has the stock

Shopify logo icon

Shopify Order Created (Trigger)

App connector: Shopify • Time to complete: 1 minute

Runs for every new order.

Shopify Retrieve Order's Fulfillment Orders

App connector: Shopify • Time to complete: 1 minute

Get the fulfillment orders Shopify created, with the assigned location and line items for each.

Loop

App connector: Loop • Time to complete: 1 minute

Go through the fulfillment orders one at a time.

Shopify Get List of Location Inventory Levels

App connector: Shopify • Time to complete: 1 minute

Check how many of each line item are available at each of your locations.

Logic

App connector: Logic • Time to complete: 1 minute

If the assigned location has every item in stock, leave it. Otherwise pick the location, in your priority order, that has all the items available. If none does, leave it and flag the order.

Shopify logo icon

Shopify Move Fulfillment Order

App connector: Shopify • Time to complete: 1 minute

Move the fulfillment order to the location chosen in the previous step.

Trusted by 1,000+ merchants
Logo: Rothy's Logo: Adidas Logo: Allure Logo: GQ Logo: DraftKings Logo: Chubbies Logo: Made In Cookware Logo: MUD/WTR

Ready to move each order to the location that actually has the stock

Get setup in 6 minutes.

Use this template →

FAQs

Can one order ship from two locations?

Yes. Shopify can split an order into several fulfillment orders, and this workflow moves each one on its own, so different items can ship from different places.

What if no location has everything?

The workflow leaves the fulfillment order where it is and can tag the order, so your team decides how to split it.

Does this replace Shopify's order routing rules?

It runs after them. Keep your routing rules for the normal case, and let this workflow fix the orders they send to a location without stock.

Personalize this template

Customize this workflow even further:

Prefer the closest location
Rank locations by distance to the shipping address in the logic step, instead of a fixed priority order.
Tag orders it couldn't place
Add an order tag such as needs-routing when no location has the stock, so someone can handle it.

You're in good company

"MESA has been a game changer for us. And, if you ever get stuck, their support team is always super helpful."

  • Ico star
  • Ico star
  • Ico star
  • Ico star
  • Ico star
PetFriendly

"It's like Zapier but exactly designed for Shopify. I have been able to complete all the workflows that I've needed."

  • Ico star
  • Ico star
  • Ico star
  • Ico star
  • Ico star
Zailys

"The MESA team has been amazing at helping us set up our automations. We would highly recommend this app!"

  • Ico star
  • Ico star
  • Ico star
  • Ico star
  • Ico star
Rothy's

move each order to the location that actually has the stock

6 min setup • Fully supported if you need help