# Creating a Flexible Order Routing System with Shopify Functions

DevFeed: [Creating a Flexible Order Routing System with Shopify Functions](<https://devfeed.tech/articles/creating-a-flexible-order-routing-system-with-shopify-functions-1355.md>)

Original publisher: [Read original article](<https://shopify.engineering/creating-a-flexible-order-routing-system-with-shopify-functions>)

Author: Ebun Segun

Published: 2023-04-13T13:30:00Z

Content type: article

Language: en

Sources: [Shopify Engineering](<https://devfeed.tech/sources/shopify-engineering.md>), [Shopify Engineering - Shopify Engineering](<https://devfeed.tech/sources/shopify-engineering-shopify-engineering.md>)

Topics: [Shopify](<https://devfeed.tech/topics/shopify.md>), [Routing (disambiguation)](<https://devfeed.tech/topics/routing.md>), [Algorithm](<https://devfeed.tech/topics/algorithm.md>)

Tags: [article](<https://devfeed.tech/tags/article.md>), [business](<https://devfeed.tech/tags/business.md>), [customer](<https://devfeed.tech/tags/customer.md>), [customization](<https://devfeed.tech/tags/customization.md>), [enterprise](<https://devfeed.tech/tags/enterprise.md>), [platform](<https://devfeed.tech/tags/platform.md>), [routing](<https://devfeed.tech/tags/routing.md>), [shopify](<https://devfeed.tech/tags/shopify.md>)

## AI overview

The article describes Shopify's smart order routing system, which gives merchants more flexibility in deciding which inventory location should fulfill an order. It introduces routing rules and explains how Shopify Functions enables merchants to create their own rules for orders fulfilled from multiple locations.

## Source excerpt

In this article, I'll cover how we added flexibility to our previous one-size-fits-all order routing system with the introduction of "routing rules", and how we dogfooded our own Shopify Functions feature to give merchants the ability to create their own routing rules.