Shopify order routing rules decide which of your locations ships each item, as soon as the store has two or more locations that fulfill online orders. With a 3PL, your own stockroom, Amazon Multi-Channel Fulfillment (MCF) or retail stores in the mix, the order of those rules sets how many orders split, how many fall to a backup location, and whether your 3PL ships only what Shopify assigns to it.

Quick Answer

Shopify order routing rules decide which location fulfills each item in an order. The default strategy runs three rules in order: minimize split fulfillments, stay within the destination market, then ship from the closest location. To make a 3PL ship first, add the Use ranked locations rule, put the 3PL in the top group, and keep Ship from closest location last as the tie-breaker.

Some summaries list Use ranked locations as a fourth default rule. As of October 2026, Shopify's help center lists three. Ranked locations and location metafields are optional rules you add, and fully custom rules run on the Order Routing Location Rule API, which is in beta and available by request for Shopify Plus merchants.

How do Shopify order routing rules work?

Rules run from top to bottom, and each rule only sees the locations that survived the rule above it. The location left with the highest priority fulfills the item. Routing applies only when the store has two or more active locations that fulfill online orders.

RuleWhat it doesIn the default strategy?Typical use
Minimize split fulfillmentsPrioritizes locations that have every item in stock; if none do, picks the combination with the fewest packagesYes, firstKeep orders in one box
Stay within the destination marketPrioritizes locations in the same market as the shipping addressYes, secondBrands with stock in more than one country
Ship from closest locationPrioritizes the location closest to the address, measured in a straight lineYes, thirdTie-breaker between equal locations; Shopify advises placing it last
Use ranked locationsRanks locations by groups you define; locations in the same group share a rankNo, optional (can be added more than once)Make the 3PL ship before stores or backups
Use location metafieldsRanks locations on a true or false, integer or decimal metafieldNo, optional (can be added more than once)Capacity flags, speed scores, peak-season switches
Custom rule from an app (Shopify Functions)Any logic a developer builds with the Order Routing Location Rule APINoShopify Plus brands with routing needs the built-in rules can't express

Source: Shopify Help Center, Understanding order routing and Setting up order routing, as of October 2026. You'll find the rules under Settings > Shipping and delivery > Order routing in the Shopify admin, where you can add, edit, remove and drag rules to change their priority.

How does a 3PL show up in Shopify order routing?

A 3PL is one more location for the rules to rank. Routing assigns items to the 3PL's location, and the 3PL's app then receives the fulfillment order for those items.

When a 3PL app is built as a Shopify fulfillment service, Shopify creates a location for it automatically, and variants managed by that service should always be fulfilled from that location (Shopify Dev). Other 3PL apps read orders from a regular location you create. Either way, the 3PL's location needs "Use inventory at this location to fulfill online orders" turned on, a verified address and a place in an active shipping zone, or routing skips it. The order, tracking and inventory handoffs after routing are covered in How Shopify 3PL integration works.

The other locations work the same way. Amazon's MCF app for Shopify creates a location (named Amazon Fulfillment in the US), draws on your FBA inventory and follows your store's routing rules (Shopify Help Center). Retail stores are locations too, and Shopify POS orders shipped to a customer's address go through your routing rules rather than the store where the sale happened.

Does your 3PL take only the orders Shopify routes to it?

It should, and you'll want to confirm it before a second location goes live. Routing decides which location Shopify assigns, but the 3PL's own system decides which orders it imports. If that system pulls every open order in the store, an order Shopify routed to your stockroom can still reach the warehouse queue.

We saw this with a Shopify brand that kept some stock in its own building and some with us. Orderfy WMS imported every open order, so an order could have shipped from both places. We added an order scope setting: take all orders, or only the orders Shopify routes to the Orderfy location. With the second option, orders Shopify moves to another location drop out of our queue.

To check your setup, place one test order that routes to each location and look at the 3PL's order list. The order routed elsewhere shouldn't appear there, and an order you reassign to another location in Shopify after checkout should leave the 3PL's queue.

How should you rank a 3PL, an in-house warehouse, Amazon MCF and retail stores?

Rank locations by cost per order and reliability: your primary 3PL first, any second warehouse next, Amazon MCF as overflow, and retail stores last or not at all. Then decide whether avoiding splits or honoring the ranking comes first.

A starting rule stack for a brand with all four location types:

  1. Minimize split fulfillments.
  2. Stay within the destination market (only needed if you hold stock in more than one country).
  3. Use ranked locations. Group 1: the primary 3PL. Group 2: the in-house warehouse. Group 3: Amazon Fulfillment (MCF). Group 4: retail stores.
  4. Ship from closest location, as the tie-breaker inside a group.

Shopify's own suggested configuration for prioritizing a 3PL or warehouse moves Use ranked locations to the top instead (Setting up order routing). The two orders behave differently, and the right one depends on what a split costs you.

GoalRule orderWhat happensTrade-off
Fewest packagesMinimize split fulfillments first, then ranked locationsA lower-ranked location that has every item wins over a higher-ranked one that's missing an itemMore orders ship from backups such as MCF or stores
Primary 3PL ships whenever it canRanked locations first, then minimize split fulfillmentsThe 3PL ships everything it holds and the missing item ships from the next locationMore split shipments, more postage and pick fees
Fastest deliveryShip from closest location aloneEach item ships from the nearest location that has itMost splits; straight-line distance isn't driving distance
Stores never ship online ordersTurn off online fulfillment for store locationsStore stock stays for walk-in customersStore stock can't rescue an out-of-stock online order

What do split shipments cost at 10,000 orders a month?

Every split adds a second package and a second pick, so at 10,000 orders a month even a 3% split rate can cost several thousand dollars a month. Where you place inventory saves more than how you order the rules.

Assumptions for this example (illustrative, not any provider's rates): 10,000 orders a month, with 3,000 of them containing two or more items. A split adds $9 of postage and a $2 extra pick and pack fee, or $11 per split order. An order that falls back to a backup location (MCF or a store) costs $2.50 more than the same order from the primary 3PL.

Example setupSplit orders a monthCost of splitsOrders sent to a backup locationCost of backup ordersExtra cost a month
Ranked locations first, primary 3PL missing some SKUs400$4,4000$0$4,400
Minimize split fulfillments first, same stock100$1,100300$750$1,850
Full assortment kept at the primary 3PL20$2200$0$220

In this example, putting Minimize split fulfillments above ranked locations saves $2,550 a month, and keeping every active SKU in stock at the primary 3PL saves another $1,630. The rules can only choose among locations that hold stock, so the purchase plan matters more than the rule order.

Splits also change what customers pay at checkout. When items ship from locations in the same location group, Shopify charges one flat rate; when they ship from different location groups or shipping profiles, the shipping charges are added together (Split shipping). Shopify also won't split multiples of one line item across locations: five units of the same shirt ship from one location, even if two locations hold enough between them.

How do you use location metafields and shipping profiles to control routing?

Use location metafields to switch locations on or off for routing without editing the rules, and use shipping profiles when certain products must always ship from certain locations.

Location metafields can be true or false, integer or decimal (Location metafields). Common setups:

  • A true or false metafield such as has_capacity, set to false on a retail store during the holiday rush so online orders stay with the 3PL.
  • An integer speed score per location, so the location that ships faster is preferred inside a ranked group.
  • A second ranked-locations or metafield rule lower in the stack for finer ordering.

Shipping profiles assign products to locations. Use one when a product line (oversize items, a kit, a cold-chain item) is stocked at only one location, so routing never tries another. To keep a location out of online orders entirely, such as a storage-only room or a store that sells only in person, turn off "Use inventory at this location to fulfill online orders" in Settings > Locations (Order fulfillment for locations).

If MCF is a backup location, remember that MCF orders draw on the same FBA inventory as your Amazon sales, so heavy routing to MCF can leave your Amazon listings short. Amazon raised MCF fulfillment fees by an average of $0.30 per unit in 2026, mainly on 1 and 2 unit orders (Amazon 2026 fee changes summary).

Why did an order go to the wrong location?

An unexpected assignment is almost always the rules doing what they were set to do. Shopify's troubleshooting guide lists these causes, in the order to check them:

  1. The location doesn't fulfill online orders, so routing excludes it.
  2. The location's address isn't verified, so Ship from closest location can't measure it and skips it.
  3. The location was out of stock when the order was placed. Routing uses inventory at the time of the order, not current stock.
  4. The location isn't in an active shipping zone that covers the destination in the product's shipping profile.
  5. The customer's address couldn't be matched to coordinates, so the closest-location rule was skipped and the oldest location was used.
  6. Two locations tied, so the older location won. Add Use ranked locations to control ties.

The third cause is where your 3PL's inventory sync matters. Routing reads the stock each location shows in Shopify when the order comes in, so a 3PL whose counts reach Shopify in batches can lose orders to a backup location or be assigned orders it can't fill. Our Shopify app syncs stock to Shopify in real time, orders reach the warehouse within minutes, and tracking posts to Shopify as soon as the label is created.

Order routing also doesn't prevent overselling. If no location can fill an item, the highest-priority location that stocks it oversells and goes negative (Order fulfillment for locations). At 5,000 or more orders a month, review your oversell settings and how your 3PL is alerted, and check whether locations, profiles or rules changed after the order came in before you dig further.

What should you test before turning on multi-location routing?

Place test orders that force each branch of your rules, and confirm the assigned location on each order page before real orders flow.

  1. A single item stocked at the 3PL and a store: it should go to the 3PL.
  2. A two-item order where the 3PL is missing one item: confirm whether it splits or falls back, matching the rule order you chose.
  3. An item stocked only at the backup (MCF or the in-house warehouse): confirm the backup receives it and its tracking returns to Shopify.
  4. An order routed to your own stockroom or a store: confirm it doesn't appear in the 3PL's queue.
  5. An address outside your main market, if you sell internationally.
  6. A store-only product with online fulfillment turned off: it shouldn't be offered for shipping.
  7. An order edit and a cancellation after routing, to see how each location's system responds.

Run the same tests again before peak season and after any new location goes live. The peak season guide covers the timing.

How we handle routed orders at Orderfy

Orderfy WMS, the proprietary system we built in-house for Shopify and Amazon sellers, lets each brand choose its order scope: every open order, or only the orders Shopify routes to the Orderfy location. Stock syncs to Shopify in real time, so routing sees our current counts, and split shipments are supported when an order has to ship from two places. Our warehouse is in the center of the US (Dallas-Fort Worth), so ground shipping reaches both coasts quickly and one primary location can serve most US orders. We're not the right fit if you need a warehouse on each coast.

Frequently asked questions

As of October 2026, the default strategy is Minimize split fulfillments, then Stay within the destination market, then Ship from the closest location. Use ranked locations and Use location metafields are optional rules you can add.

No. Routing applies only when a store has two or more active locations that fulfill online orders. With one location, every order goes there and the rules have no effect.

Yes. Put both 3PLs in the same ranked group and keep Ship from closest location last, so each order goes to the nearest one that has the items. Shopify measures distance in a straight line, so check a few border cases with test orders.

Yes, through apps built on the Order Routing Location Rule API, a Shopify Function. As of October 2026 the API is in beta and available by request for Shopify Plus merchants. Apps can also contribute custom rules that appear in the Add rule list.

In Settings > Locations, open the store and turn off "Use inventory at this location to fulfill online orders." Its stock no longer counts toward online availability or routing, and it stays available for in-person sales.

Get a quote from Orderfy

If you're setting up routing around a primary 3PL, get a quote and tell us which locations you run today.

Get a Quote Call: (469) 833-4101

Sources