When your brand fulfills orders from more than one place, every order that comes in raises a simple question: which location should ship it? For many stores, the answer is left to Shopify's default settings. This works, but it means a critical operational decision is made without your direct input, which can lead to higher shipping costs and unnecessary split shipments.
Shopify Order Routing Explained: How to Control Which Warehouse Ships
You control which warehouse ships an order by configuring order routing rules in your Shopify admin under Settings > Shipping and delivery. This involves ranking your fulfillment locations and setting rules, such as minimizing split shipments or shipping from the closest warehouse. By adjusting these settings, you can create a fulfillment strategy that prioritizes specific locations to match your business goals.
A deliberate order routing strategy connects your inventory, warehouse locations, and customer destinations. Understanding how to control this process is essential for scaling your fulfillment operations efficiently. This guide explains how Shopify's order routing system works and how to configure it to match your business needs.
Properly configured, this logic can lower your shipping costs, improve delivery speed, and maintain a better customer experience. Ignored, it can become a source of hidden costs and operational friction that silently erodes your margins. This guide will walk you through taking control of this powerful system.
What is order routing in Shopify?
Order routing is the process Shopify uses to automatically assign an order, or parts of an order, to a specific fulfillment location. This system is what decides whether an order ships from your primary warehouse, a retail store, or a third-party logistics (3PL) partner based on a set of rules you configure.
When you have only one warehouse, every order goes there by default. As soon as you have two or more active locations set up to fulfill online orders, routing logic becomes active. Each location's inventory is tracked separately, and the routing system uses this data, along with your rules, to make its decision.
The outcome of this routing process is the creation of one or more "fulfillment orders" in Shopify's backend. Each fulfillment order represents a group of items expected to be fulfilled from a single location. This automated decision determines which warehouse team gets the notification to pick, pack, and ship.
Without clear routing rules, you might find orders assigned to your most expensive location, or split into multiple packages for no good reason. Every manual correction your team has to make costs time, delaying the shipment and increasing labor expenses. At scale, these small inefficiencies add up to a significant drain on your profit margin.
How does Shopify decide which location fulfills an order?
Shopify decides which location fulfills an order by applying a sequence of rules to evaluate and prioritize your active fulfillment locations. This process happens automatically in the background after an order is placed. The location that ranks highest based on your rule set is assigned the fulfillment order.
The system considers several factors, but the most important one is inventory availability. A location cannot fulfill an order for a product it does not have in stock. If no single location has everything a customer ordered, Shopify's logic will automatically split the order across multiple locations to complete the fulfillment.
This decision-making process is only as good as the data it receives. Accurate, real-time inventory counts for each location are critical. If your inventory data is out of sync, the routing system might assign an order to a warehouse that is practically, if not technically, out of stock. This leads to failed fulfillments and manual clean-up.
The cost of a single stock-out
Imagine a customer orders a T-shirt and a hat. Your main warehouse in Texas has the T-shirt but just sold the last hat. Your secondary warehouse in Florida has both. If your top routing rule is to minimize splits, Shopify will correctly send the entire order to Florida. This avoids a split but might increase your shipping cost if the customer is in California.
Now, what if Florida only has the hat? The system is forced to split the shipment. The Texas warehouse ships the T-shirt, and Florida ships the hat. You now pay for two separate pick-and-pack fees, two shipping labels, and two boxes. A simple stock-out at one location can significantly increase your fulfillment cost for that order.
What are the default order routing rules and in what sequence do they run?
Shopify's default order routing strategy uses a set of standard rules applied in a fixed sequence. These rules are designed for a balanced approach, but they may not be optimal for every business. This default sequence is a starting point; you can add, remove, and reorder rules to better suit your operational priorities, such as prioritizing speed over cost consolidation.
The default rules typically run in this order:
- Minimize split fulfillments: The system first tries to find a single location that can ship the entire order in one package. This rule is prioritized to reduce shipping costs and simplify the customer experience.
- Stay within the destination market: If multiple locations can fulfill the order, Shopify prioritizes locations within the customer's country or market to avoid cross-border shipping complexities.
- Ship from closest location: As a tie-breaker, the system chooses the location geographically closest to the customer's shipping address. Note that this is based on straight-line distance, not real-time carrier transit times.
Edge case: The straight-line distance trap
The "Ship from closest location" rule has a critical weakness: it measures distance "as the crow flies," not by actual driving routes or transit times. A warehouse that is geographically closer can sometimes be slower or more expensive to ship from due to mountains, rivers, or road networks.
For example, a customer in Long Island, New York might be physically closer to a warehouse in Connecticut than one in New Jersey. However, ground shipments from New Jersey might arrive faster and cheaper by avoiding bridge tolls and city congestion. In this scenario, Shopify's default logic would pick the "wrong" location by prioritizing straight-line proximity.
How do you change the priority of your fulfillment locations?
You can directly influence which warehouses are preferred by changing the priority of your fulfillment locations using routing rules. This is done within your Shopify admin under the order routing settings. The primary method is the "Use ranked locations" rule, which lets you manually group and prioritize locations.
To set your location priority, follow these steps:
- From your Shopify admin, navigate to Settings > Shipping and delivery.
- In the Order routing section, click to manage your rules. You may need to click an arrow icon or a "Manage" link.
- Add the "Use ranked locations" rule if it's not already present. Click the pencil icon to edit it.
- Drag and drop your locations into different priority groups. Locations in the top group will always be prioritized over locations in lower groups.
- Save your changes.
By ranking your locations, you tell Shopify, for example, to always try your main warehouse first and only use retail stores as a backup if the main warehouse is out of stock. This gives you direct control over the fulfillment waterfall.
Using location groups is a powerful way to implement a tiered strategy. For instance, you could place all your dedicated warehouses in the first group to handle the bulk of orders. Retail stores could be in a second group, used only for overflow during peak season. This protects your store inventory while still providing a backup fulfillment option.
This introduces a classic trade-off: Cost vs. Control. Ranking your own warehouse first gives you maximum control over branding and packaging but may be more expensive than a 3PL. Prioritizing a 3PL might lower per-order costs but sacrifices control over the unboxing experience. Your ranking should reflect which of these factors matters more to your business.
The moment a brand ships from more than one building, routing becomes the brain of the operation. It's not just about settings; it's about telling every single order where its home is. A clear routing strategy, revisited quarterly, is what separates a smooth peak season from a chaotic one.
How can you avoid unnecessary split shipments?
To reduce unnecessary split shipments, make "Minimize split fulfillments" your highest priority rule in Shopify's settings. This rule forces the system to search for a single location that can fulfill an entire order before it considers splitting it, directly addressing the issue at the rule level.
However, routing rules alone cannot prevent all splits. If no single location has all the items in stock, a split is unavoidable. The true cause of many split shipments is an inventory problem, not a routing problem. Analyzing which products are frequently ordered together and ensuring they are stocked at the same primary location is a more fundamental solution.
Review your sales data to identify product pairs that customers often buy in the same transaction. If those items are consistently stored in different warehouses, you are creating split shipments by design. Adjusting your inventory placement strategy can have a greater impact than any routing rule.
A concrete step: The product-pair analysis
To fix the root cause, export your recent order history and create a pivot table showing which pairs of SKUs appear most frequently in the same order. This analysis often reveals that a small number of product pairings account for the vast majority of multi-item orders. This becomes your data-driven co-location priority list.
The cost of getting this wrong is steep. Each split shipment adds a second shipping fee, a second set of packaging materials, and a second pick-and-pack labor charge. A single unnecessary split can significantly erode your margin, as these combined extra costs are substantial. For a store with thousands of orders, this is a significant and avoidable expense.
What happens when an order is assigned to an unexpected location?
When an order is assigned to an unexpected location, it's typically due to how your routing rules and inventory levels interacted. For example, your primary warehouse may have run out of stock for one item, causing the system to route the entire order to a secondary, more expensive location to avoid a split.
If an order is assigned incorrectly before it's fulfilled, you can often change the fulfillment location manually. From the order details page in your Shopify admin, you can find the unfulfilled items and use the "Change location" option to reassign them to the correct warehouse, provided a fulfillment request isn't already pending.
Relying on manual overrides is not a sustainable solution. Each correction takes an employee away from other tasks, introduces the risk of human error, and delays fulfillment. Even a few minutes spent fixing each incorrect assignment quickly adds up, consuming significant paid labor that could be spent on other tasks.
Investigating these exceptions is crucial. Regularly check your orders to see if the routing logic is behaving as you expect. A high rate of manual overrides is a clear signal that your rules or inventory data need attention. Tracking these instances helps you diagnose and fix the root cause.
How do you create different routing strategies for different business models (e.g., D2C vs. Retail)?
Different business models require distinct routing strategies. A direct-to-consumer (D2C) brand with multiple warehouses might prioritize shipping from the closest location to reduce transit time, while a brand using retail stores for fulfillment may need to limit the volume of online orders to protect in-store inventory.
For a D2C brand, a common strategy is to place the "Ship from closest location" rule first, followed by "Minimize split fulfillments." This prioritizes fast delivery for the customer. You can set this up in your order routing settings by dragging the rules into your desired priority order.
For a ship-from-store model, you might use the "Use ranked locations" rule to place your main warehouses in the top priority group and your retail stores in a secondary group. This ensures retail locations are only used as backups, protecting their stock for in-person shoppers. For more advanced logic, Shopify Plus merchants can use Shopify Functions to create custom rules, such as capping the number of orders a store can receive daily.
Worked example: Custom rules with Shopify Functions
Shopify Functions allow for highly specific routing logic on Shopify Plus. For example, a merchant selling fragile goods could create a rule to route orders containing those items to a specific warehouse equipped with special packing materials. This is done by adding a metafield to the fragile products and writing a Function that checks for it.
Another powerful use case is setting a daily order cap for a retail store. A Function could be written to check how many online orders have already been routed to a specific store that day. Once the cap is reached, the Function would automatically deprioritize that location, sending new orders to the next available warehouse. This prevents overwhelming retail staff.
How do app-created fulfillment locations affect routing?
When you install certain Shopify apps, such as those for third-party logistics (3PLs), dropshipping suppliers, or print-on-demand services, they often create their own fulfillment location in your Shopify admin. This new location then participates in your order routing logic just like a physical warehouse.
These app-based locations are automatically assigned a service that handles fulfillment requests. The key is to ensure that only the products handled by that service are stocked at its corresponding location. If a product is stocked at both your warehouse and a 3PL's location, your routing rules will determine which one receives the order.
This can create a difficult edge case. Suppose you use two different print-on-demand apps that both offer a standard black t-shirt. Each app creates its own fulfillment location. When a customer orders that t-shirt, Shopify's routing will choose one location based on your rules, but it has no way to compare the cost of goods or quality from each supplier.
For dropshipping, where multiple suppliers might offer the same product, the routing decision becomes more complex. While Shopify's native routing chooses a location, it doesn't compare supplier-specific data like cost or handling time. Advanced dropshipping models often require separate logic to select the optimal supplier for each order.
Shopify's order routing is a powerful tool for managing multi-location fulfillment, but its decisions are only as good as the data it's given. The most sophisticated routing rules cannot compensate for an incorrect shipping address. An order routed perfectly to a California warehouse is still a problem if the customer actually lives in Florida.
Accurate order routing begins with an accurate destination. Tacey validates the shipping address on every order your plan covers the moment it's placed. This helps Shopify's routing logic make its decision based on clean, verified location data, reducing the risk of costly re-ships and support tickets. You can learn more about how Tacey provides automated address validation or install Tacey from the Shopify App Store to start cleaning your address data today.
Frequently asked questions
Do I need Shopify Plus for order routing?
No, order routing is available on all Shopify plans that support two or more active locations. However, Shopify Plus is required for creating highly customized routing rules using Shopify Functions, such as routing based on a product's metafields or warehouse capacity.
Can Shopify split an order if one item is out of stock?
Yes. If a customer orders multiple items and one is out of stock at your primary location but available at another, Shopify's routing can split the fulfillment. It will assign the in-stock items to one location and potentially create a backorder or assign the remaining item to another location where it is available.
Can I stop Shopify from splitting shipments?
You can significantly reduce but not completely eliminate split shipments. Setting the "Minimize split fulfillments" rule as your top priority helps, but if no single location has all items in stock, a split is unavoidable. The most effective way to prevent splits is through strategic inventory management, ensuring frequently-bought-together items are stocked in the same place.
How does order routing work with Shopify Markets?
Order routing integrates with Shopify Markets by using the "Stay within the destination market" rule. This rule prioritizes fulfilling an order from a location within the same country or market as the customer's shipping address. This helps manage customs, duties, and international shipping costs more effectively.




