# Set up multi-location inventory

Configure Assemblified for warehouses, retail stores, or distributed fulfillment with per-location stock.

import Term from '~/components/Term.astro';
import { Aside, Steps } from '@astrojs/starlight/components';
import DocUpdated from '~/components/DocUpdated.astro';

If your store fulfills from more than one inventory location — multiple warehouses, a warehouse plus a retail store, distributed fulfillment partners — Assemblified can track <Term def="raw-material">materials</Term> and finished goods per location. This guide is the setup checklist plus the gotchas; the setting-by-setting detail lives in [initial setup](/getting-started/initial-setup/), and every one of these settings can be changed from **Settings → General** at any time.

The one decision that shapes everything: **do your locations share physical stock, or not?** Locations that are just labels over one physical pile need much less of what follows.

<Steps>

1. **Get Shopify right first.**

   Multi-location tracking mirrors Shopify's location model. Make sure your locations exist in Shopify admin, the component variants are stocked at the locations that actually hold them, and inventory tracking is on for each.

2. **Set the default location.**

   The <Term def="default-location">default location</Term> ([initial setup](/getting-started/initial-setup/#default-location)) is the fallback anchor whenever an event doesn't name a location. Pick your primary warehouse.

3. **Turn on multi-location mode.**

   **Settings → General → Multi-location sensitive adjustments → Respect order and fulfillment locations when available** ([Multiple locations](/getting-started/initial-setup/#multiple-locations)). With it on, BOM execution applies each adjustment at the location carried by the incoming order or fulfillment event, and material availability checks become location-aware. With it off, everything targets the default location as one pool.

4. **Decide on location-sensitive dynamic adjustments.**

   [Location-sensitive dynamic adjustments](/getting-started/initial-setup/#location-sensitive-dynamic-adjustments), only relevant if you use <Term def="dynamic-adjustment">dynamic adjustment</Term>. Turn it **on** when locations hold separate physical stock — "how many can we build *here*?" is then computed per location. Leave it **off** when locations share one physical pile; a single global buildable number is more accurate there.

5. **Pin component locations where it matters.**

   A BOM's component rows can carry a specific location ([Creating a BOM](/features/bill-of-materials/creating-a-bom/)). Use this when a component should always be consumed from one place — e.g., raw stock that only exists in the production warehouse. Components consumed from a location also restore to that same location on refund or cancellation.

6. **Consider order reservations.**

   In multi-location stores there's a window between order routing and fulfillment where a BOM's components are still sellable to other orders. [Order reservations](/features/bill-of-materials/order-reservations/) close that over-promise window by moving resolved components to Shopify's `reserved` bucket at routing time. It's opt-in and store-wide — read that page's prerequisites before enabling.

   With order reservations off, components are deducted at fulfillment. When that fulfillment consumes components for a BOM with Dynamic adjustment enabled, Assemblified recalculates its Shopify availability from the remaining preassembled stock and component-derived buildable quantity. This fulfillment recalculation also runs when **Auto-update on inventory change** is off; that switch controls recalculation triggered by separate component inventory updates. For BOMs using **Maintain inventory level**, each fulfillment restores only the units consumed from its matching reservations, including partial shipments and split fulfillment orders.

7. **Verify with a test order per location.**

   Route one test order to each location (Shopify's routing follows your fulfillment settings) and read its run in **Logs**: the adjustment should land at the routed location, not the default. Then cancel and confirm the restore goes back to the same location.

</Steps>

<Aside type="caution" title="Multi-location mode can shift *when* inventory is deducted">
Shopify often exposes the final fulfillment location only on the **fulfillment** webhook, not at order creation. With multi-location mode on, the moment of component deduction can therefore move from order-payment time to fulfillment time. If you need deduction at checkout, keep multi-location mode off — or use [order reservations](/features/bill-of-materials/order-reservations/) to lock components at routing time instead.
</Aside>

## Gotchas

- **Location mapping is by Shopify location id.** Renaming a location in Shopify is fine; deleting and recreating one is not — re-check the default location and any pinned component locations afterwards.
- **Historical replays have a multi-location safeguard** — see [Historical orders replay](/features/bill-of-materials/historical-orders/) before replaying old orders whose location data predates your current setup.
- **Virtual materials track per-location too.** Their total is the sum of their locations, so seed their opening stock at the locations that actually hold it ([Virtual materials](/features/raw-materials/virtual-materials/)).
- **Drift happens at the busiest location first.** When a shared component's numbers look off, [Reconcile inventory](/guides/reconcile-inventory/) per location rather than adjusting the global figure.

## Where to next

- [Order reservations](/features/bill-of-materials/order-reservations/) — the full lifecycle, webhook by webhook.
- [Pre-assembled stock](/features/bill-of-materials/pre-assembled/) — finished-goods shelves are per-location as well.

<DocUpdated date="2026-11-19" />