Fulfillment Constraints API overview
The Fulfillment Constraints API enables you to have a higher degree of customization when defining fulfillment and delivery strategies. With this API, checkout won't return any shipping rates if the configured constraints can't be met.
Example use cases
Anchor link to section titled "Example use cases"- Ensure that
n
cart line items are fulfilled from the same location. - Ensure that
n
cart line items are fulfilled from a specific location.
Currently supported constraint types
Anchor link to section titled "Currently supported constraint types"MustFulfillFrom
: Specifies where cart items must be fulfilled from. If the cart items with constraints are not stocked at the specified location, then checkout won't return any shipping rates and completion of checkout will be blocked.MustFulfillFromSameLocation
: Specifies that cart items must be fulfilled from the same location. If the cart items with constraints aren't stocked at the same location, then checkout won't return any shipping rates and completion of checkout will be blocked.
Developer tools and resources
Anchor link to section titled "Developer tools and resources"Limitations
Anchor link to section titled "Limitations"- The Fulfillment Constraints API doesn't currently support local pickup, draft orders, order editing, or subscriptions.
- Customized constraint types aren't currently supported.
- Learn how to use Shopify Functions by building fulfillment constraints.