Magento Open Source multi-source inventory (MSI) implementation

A practical guide to planning and building multi-source inventory in Magento Open Source across warehouses, stores and drop shippers, with the decisions, data work and ERP sync that drive effort.

On this page

When Magento Open Source multi-source inventory (MSI) implementation is worth the effort

If your stock sits in several warehouses, physical stores or with drop shippers, and each order has to be fulfilled from the right location, MSI is the core inventory module for that job in Magento Open Source. It lets one catalog draw on several stock locations, decide which location ships each order, and show customers a single salable quantity per product. A single-warehouse store that keeps one stock count per SKU usually does not need it. Before you build anything, confirm the feature set in your edition, since the open source version includes only the MSI capabilities that ship with it, not every option Adobe Commerce adds.

In Magento terms, a source is a physical location that holds stock, such as a warehouse, a store or a drop shipper's inventory. A stock is a sales channel that groups sources and links them to one or more websites. Salable quantity is what a customer can actually buy: the quantity across the assigned sources, minus reservations for orders that have been placed but not yet shipped. Reservations are what keep two orders from selling the same unit, so a mistake in source assignment or stock mapping shows up as overselling or as products that look out of stock when they are not.

Before the build starts, the team has to decide which sources are real fulfillment points and which are only reporting locations, how each stock maps to websites and sales channels, and which fulfillment rule applies when more than one source can ship an order. Those choices depend on your ERP or warehouse system, which remains the system of record for on-hand quantities in most setups. Ask your implementation partner to document the source list, stock mapping, source selection rule and the sync method from the ERP in writing, and confirm each item against your own operations before you commit to a design.

What the MSI module does in Magento Open Source

Multi-source inventory in Magento Open Source splits stock tracking into a few linked objects. Sources hold physical or virtual stock locations, stocks group sources for a sales channel, and salable quantity is what the storefront can actually sell after reservations are applied.

Sources and their addresses

A source is a location that holds inventory, such as a warehouse, store or drop shipper partner. Each source carries an address, a status (enabled or disabled) and a priority. You create and edit sources in the Magento admin, while bulk changes are usually handled through CSV or an integration. Confirm early which locations will be sources, since a drop shipper that never physically holds stock may need different handling than an owned warehouse.

Stocks that group sources

A stock is the set of sources that serve one sales channel, such as a website or a marketplace feed. The default stock is created at installation, and additional stocks are assigned to websites in the admin. Map each sales channel to its stock before you assign products, because the salable quantity shown on a storefront depends on which sources sit in that stock.

Source items per SKU

A source item records the quantity and status of one SKU at one source. It is the lowest-level stock record, and it is where per-location quantities live. Source items are set in the product edit screen, in the source item grid, or through the inventory CSV import and the inventory API. For large catalogs, plan one owner for source item updates so that a warehouse file and an ERP feed do not overwrite each other.

Salable quantity and reservations

Salable quantity is calculated from the quantity held by the sources in a stock, minus reservations for orders that have been placed but not yet shipped. Reservations are created and compensated as orders move through their states, so a failed or cancelled order must release its reserved quantity. Test this path with cancellations and partial shipments before launch, because errors here cause overselling or phantom out-of-stock products.

Source selection rules

When an order is placed, the source selection algorithm decides which sources fulfill each line. The documented options include priority-based and distance-based selection, and the choice affects shipping cost, delivery time and how many packages a customer receives. Confirm which algorithm your Magento version provides and how it treats shipping addresses outside the coverage of each source before you commit to a fulfillment rule.

Which MSI configuration choices fit which business model

This table compares the main MSI design choices for stock sharing, source selection and drop shipping, with what each fits, what it complicates and what to confirm in the Magento Open Source documentation before committing. Read each row against your sales channels and fulfillment model, then check the confirmation column with your implementation team. The main takeaway is that stock structure and source selection are hard to reverse once orders and catalogs depend on them.

ChoiceFitsComplicatesConfirm before committing
One stock per websiteSeparate storefronts with their own assortments, prices and warehouses that do not share inventoryProducts sold across sites need duplicate source assignments, and stock counts can drift apartWhich warehouses each website can draw from and how assignments are set per stock
Shared stock across websitesSeveral storefronts selling one pool of goods from the same warehousesSalable quantity on one site is affected by reservations from another, so reservation review matters moreHow reservations from every linked sales channel reduce salable quantity in the admin
Source selection by priorityBusinesses with a preferred warehouse that ships first and a fallback for overflowPriority order must be maintained as sources change, and it does not optimize for shipping costWhether the priority order is applied per stock and how it behaves when the top source is out of stock
Source selection by distanceBusinesses shipping to customers from the nearest location to cut transit timeNeeds accurate source addresses and customer geography, and results depend on the configured selection algorithmWhich selection algorithms ship in your release and how the distance calculation handles missing coordinates
Drop shippers modeled as sourcesCatalogs where a supplier ships directly and the store needs their stock visible at checkoutSupplier stock feeds must be kept current, and stock accuracy depends on the supplierWhether the supplier stock sync method is covered by your integration and how oversell is handled
Drop shippers handled outside MSISmall supplier catalogs where orders are forwarded manually or through a separate systemStock is not visible in the storefront, so availability messaging and order routing need custom workHow fulfillment status and supplier confirmations are recorded against orders
Single warehouse with future sourcesEarly-stage stores that expect to add locations but need no split fulfillment nowReconfiguring stock later touches product data, reservations and any ERP syncWhether adding sources later requires reindexing and how existing stock records migrate

How an MSI rollout runs from inventory audit to go-live

The sequence moves from an agreed picture of where stock sits and who owns it, through configured sources and stocks, to tested salable quantities and a controlled cutover. Each step closes with a document or check that the next step depends on.

  1. Audit locations and stock ownership

    List every physical location that holds sellable stock, including warehouses, store back rooms and drop shipper feeds, and record who owns the stock and who decides when it can be sold. The merchant's operations lead and finance contact sign off the list, with the drop shipper agreements attached where stock is not held on site. The output is a location register with an owner and a sales-eligibility rule for each row. The step is done when every SKU family that sells has at least one owner for its stock.

  2. Define sources and stocks

    Create a source for each location in the Magento admin under Stores, Inventory, Sources, with its address, status and the pickup and shipping flags it should carry. Group sources into stocks according to which storefront or sales channel may sell from them, and assign each stock to its sales channel. The output is a configured source and stock map that the team exports and reviews against the location register. Confirm in the current Magento Open Source documentation which options each source record exposes in your version before the build starts.

  3. Map SKUs to source items

    Decide which SKUs each source stocks, then record a source item for every SKU and source pair with its quantity and status. Check that each catalog product has an intended source before the data load, and flag products that need a stock owner but have none. The output is a SKU to source matrix that the merchandising and warehouse teams approve. Reconcile the matrix with the catalog export so that no active product is left without a source item or with a duplicate source code.

  4. Set source selection rules

    Choose how orders are assigned to sources, either by priority order or by distance, and configure the source selection algorithm your version provides. Test the rule with a sample set of addresses and carts that cover single-source, split and out-of-stock cases. The output is a documented rule set with worked examples showing which source fulfills each test order. Confirm which algorithms your release ships, since the choice affects shipping cost and split shipments.

  5. Load initial stock by CSV or API

    Import the opening quantities using the source item CSV import or the Inventory REST endpoints, starting with a small file so that the format and error handling are proven before the full load. Keep the source of each file, the import date and the person who ran it. The output is an import log and a reconciliation report that compares the counted quantities from each warehouse with the quantities stored in Magento for every source item. Investigate every difference before moving on.

  6. Connect ERP stock sync

    Decide which system owns stock: the ERP or Magento. Build the sync job that pushes source quantities from the ERP to Magento on the agreed schedule, using the source item endpoints, and define how failed or partial updates are retried and logged. Agree which order events, such as shipments and returns, flow back to the ERP. The output is a sync specification and a test run report showing matched totals per source over several cycles. Ask the ERP vendor and your integrator to confirm the interface and rate limits in writing.

  7. Test reservations and salable quantity on staging

    On a staging copy with production-like data, place orders that consume stock from one and several sources, cancel some, and ship others, then check reservations and the salable quantity shown on product pages and in the cart. Run the test with the indexers and caches in the state production will use. The output is a signed test log listing each scenario, the expected result and the observed result, with any defects logged and retested. Do not move to cutover until the log shows no open stock discrepancies.

  8. Cut over to live sources

    Schedule a maintenance window, freeze manual stock changes, run a final CSV or ERP import, and reconcile again against the last physical count. Switch the live stock records to the signed source map, re-enable the sales channels one at a time, and watch orders and reservations for the first business cycle. The output is a cutover record with the final reconciliation report, the approved rollback point and the named owner for stock discrepancies after go-live.

How to load stock data into MSI without overselling

The main rule for loading stock into Multi-Source Inventory is that no source should go live until its source items match the physical count. Stock arrives through the source import (the CSV import in the admin under the sources grid), and each SKU needs one row per source. The fields that matter are sku, source_code, quantity, and status, where status tells MSI whether that source can ship the item. A row with the right quantity but status set to out of stock removes the item from salable quantity, which is a common cause of an apparently empty catalog after cutover. Confirm the exact column headers and any optional fields against the import template in your installed version, because the header set is what the import validates before it writes anything. After the import, run a reconciliation: export the source items, compare totals per SKU and per source against the count sheets, and investigate every difference before enabling the next step.

Open orders are the second risk during cutover. Reservations are created when orders are placed, and salable quantity is calculated as source quantity minus open reservations for the stock linked to a sales channel. If you load a count taken while orders are still being placed, the new quantity can be double-counted against orders that already reserved stock, or the reverse. Choose a cutover window, freeze or drain fulfillment at the affected sources, and take the count after the last shipment decision for that window. Then compare reservations with open orders on the sales channel before re-enabling sales. Confirm with your team how reservations are handled during any ERP sync that runs in parallel, because a sync that overwrites source quantity without accounting for reservations is a direct path to overselling.

The first load should always be verified against the physical count, not against the previous system figure. The previous system may already contain the errors that caused the stock discrepancy you are trying to fix. Ask the warehouse team to count a sample of high-value and fast-moving SKUs at each source, then test a small set of orders against those SKUs in a staging environment before launch. Record which person approved each source's opening figures. Plan the ERP feed for the same cutover so that later stock updates use the same SKU and source codes, and confirm with your integration partner how failed rows are reported and retried. These checks take longer than the import itself, so include them in the implementation scope and timeline you agree in writing.

What drives MSI effort and cost, and how to keep it down

This table lists the factors that change how much work a multi-source inventory build takes and what a partner would price into a written scope. Each row explains why a driver matters and what the team can do to reduce it. Cost components are set by scope, so use the drivers to decide what to fix before asking for a quote.

DriverWhy it changes effort or costHow to keep it down
Number of sourcesEach warehouse, store or drop shipper needs its own source data, stock settings, address and sync path to test.Confirm which locations hold sellable stock now and phase in the rest after launch.
SKU count and catalog cleanlinessDuplicate, retired or inconsistent SKUs multiply mapping work and stock import errors.Clean and deduplicate SKUs before the first CSV import and agree a naming rule for new products.
Source selection complexityPriority rules, distance-based selection and split shipments each need design decisions and test cases.Start with one selection method, such as priority order, and add distance logic only if the business case requires it.
Number of sales channels and stocksEach stock linked to a website or channel adds salable quantity logic and channel-specific tests.Map which channels share stock and which keep separate stock before the build starts.
ERP or WMS integration depthTwo-way stock sync, error handling, reconciliation and cutover planning often take more time than the MSI configuration itself.Decide which system owns source quantities and limit the first version to one direction of sync.
Custom extensions touching inventoryThird-party modules that read or write stock may need review and retesting after every Magento patch.Inventory each extension, check its compatibility with the target release line and remove unused ones before build.
Reservation and salable quantity test volumeOrder placement, partial shipments, cancellations and returns each need repeatable tests across sources.Write a short test matrix for the top order paths and automate the repeatable ones before cutover.
Written scope and change controlScope changes after kickoff reopen design, testing and cutover work, which affects the quote.Agree sources, stocks, integrations and acceptance tests in writing, then route later requests through a change process.

How MSI setup differs by merchant type

A retailer that ships from several owned warehouses usually models each building as its own source, then assigns those sources to a stock, often one default stock for the storefront. Illustrative example: a retailer with three regional distribution centers needs each center to hold its own quantities, while shoppers see one combined availability figure. Stock assignment decides which sources feed the salable quantity, so the layout depends on which warehouse can fulfill which orders.

  • Source layout: One source per physical warehouse, with address, source code and pickup availability agreed with operations before any stock imports run.
  • Stock assignment: Usually one default stock linked to all warehouse sources, with a separate stock only when a sales channel needs its own pool of inventory.
  • Source selection: Set the selection priority to match shipping cost and transit time, and document the tie-break rule for when two warehouses hold the same item.
  • Main risk to test: Quantities that are duplicated or left stale after a transfer, because a move recorded in only one source inflates the salable quantity.

Test an order from each region and confirm it routes to the warehouse your operations team expects, then reconcile transfers against a physical count.

How sources, stocks and ERP stock feeds connect in MSI

The diagram starts with the ERP or warehouse system, which holds the stock counts for each physical location. Those counts reach Magento sources either through a CSV import or an API feed inside your own infrastructure. Each source is then assigned to a stock, which is the set of sources serving one sales channel. When an order is placed, Magento creates a reservation against the stock, and the salable quantity returned to the storefront is the source quantity minus open reservations. Check that every feed writes to the correct source code and that reservations are reconciled after each sync.

Stock flows from the ERP through sources and stocks to salable quantity on the storefront.

How MSI connects to the rest of the Magento Open Source platform

MSI sits between the ERP, the order pipeline, the storefront and the carriers, and each link has a different owner. Most go-live problems come from one of these hand-offs being assumed rather than agreed in writing before the build starts.

ERP stock feed

The ERP usually owns on-hand quantities for each warehouse, and the Magento side owns source items and the salable quantity shown to shoppers. Decide whether the feed is a full replacement or a delta, how often it runs, and what happens when a file arrives late or twice. Ask the integrator how the source item feed is reconciled against the ERP's own count after a failed run, and who signs off on the mapping of SKUs and source codes.

Magento 2 source code

Order assignment and fulfillment

When an order is placed, Magento selects sources to reserve against and the warehouse system picks, packs and ships it. Agree which system chooses the source, whether the warehouse system confirms shipments back to Magento, and how partial shipments and cancellations release reservations. Confirm with the fulfillment team how the shipment status returns to the order record and which party holds the audit trail.

Storefront catalog and indexers

Stock status and salable quantity reach the storefront through indexers and caches, so a stock change is not visible until those jobs run. Decide how much lag is acceptable between a warehouse count and a product page, and who monitors indexer status. Confirm with the team running the store how cron and indexers run on your servers, since a stalled indexer can show stale stock while the ERP is correct.

Shipping carriers and rate logic

Carrier rates and delivery promises depend on which source ships the order, so shipping configuration must match the source model. Check which carrier integrations you need, whether rates are calculated per source or per order, and how origin addresses are stored on each source. Ask your carrier integrator to confirm how multiple origin addresses are handled before you commit to a source selection rule.

Marketplace and channel connectors

Marketplaces and channel tools often hold their own stock counts and push orders into Magento. Decide which system is authoritative for each channel, whether channel orders reserve stock in the same way as storefront orders, and how returns and cancellations flow back. Confirm with each connector vendor whether it works with the MSI source and stock model you plan, because connector support for MSI varies.

Returns and reverse logistics

Returned goods must be received into the correct source and become salable only after inspection, which affects the stock count on the next storefront refresh. Define who approves a return to stock, which source receives it, and how a refund is linked to the restock. Confirm with the returns team and the payment integrator how refunds are triggered, since refund timing and stock timing often drift apart.

Questions buyers ask before hiring help with MSI

What drives the cost of a Magento Open Source MSI project?

The number of sources, stocks and integrations drives most of the cost, along with how clean your current stock data is. Each warehouse or drop shipper adds configuration, testing and an import path, and an ERP sync adds mapping, error handling and monitoring work. Costs split into one-time work (design, build, data cleanup, testing, go-live) and recurring work (patching, ERP sync maintenance, and changes when you add a location). Ask any partner for a quote that lists each source, each integration and the test plan separately, so you can see what each line buys.

How long does an MSI implementation usually take?

Duration depends on scope more than on the MSI module itself. A store with a few sources and manual stock imports is a smaller job than one that syncs stock from an ERP across several warehouses and storefronts. Time also depends on how quickly your team confirms source priorities, stock data and fulfillment rules. No duration is fixed in this guide, so ask for a timeline tied to a written scope, with the milestones for design, build, testing and cutover shown separately.

What do we need to provide before the work starts?

Plan to provide accurate stock counts for every location, a list of sources with their addresses, carrier and pickup rules, and the rules for which stock can be sold on which storefront. For an ERP sync, you need API or database access in a test environment, field mappings, and a named owner who can answer questions about stock movements. Also provide your current catalog export, SKU naming rules and any existing reservation or order-status logic. Missing data at this stage is the most common reason timelines slip.

Can our own team implement MSI without a partner?

Yes, a capable Magento team can configure sources, stocks and source selection in the admin and run CSV imports without outside help. The harder parts are the ERP sync, reservation logic under load, and testing source selection for real orders. Teams usually weigh their in-house skills, the number of integrations and the cost of a mistake in stock levels. A partner is one option for scoping, building and testing that work, and your team still owns the decisions about fulfillment rules.

Which Magento Open Source versions support MSI work now?

Adobe's system requirements for Magento Open Source 2.4.9 list PHP 8.5, MySQL 8.4 or MariaDB 12.3 (recommended) or 11.8, OpenSearch 3, Redis or Valkey 9, RabbitMQ 4.3, Composer 2.10 and nginx 1.30 on Linux x86-64, and Adobe supports only the listed combinations. Adobe's lifecycle policy gives 2.4.9 support until May 31, 2029, and 2.4.8 until May 31, 2028. Confirm the exact version and stack you will run against Adobe's system requirements before scoping, because the stack choice affects the build and the upgrade path.

What should a fixed-scope quote for MSI include?

Ask for a written scope that names each source and stock, the storefront channels they serve, the source selection rule, each ERP or CSV integration, the data migration and test plan, and the go-live and rollback steps. The quote should separate one-time work from any retainer for patching and support, and state what the client must provide and by when. It should also list what is excluded, such as custom fulfillment logic or third-party warehouse software. Fixed scope is agreed in writing before work starts, so changes to sources or integrations should go through a documented change request.

What goes wrong most often in MSI projects?

The most common problems are inaccurate starting stock, unclear source priority rules, and ERP sync jobs that write quantities without checking reservations. Teams also miss that salable quantity depends on reservations from open orders, so a stock count can look correct while the storefront shows the wrong number. Test source selection with real order samples, reconcile stock after cutover, and set alerts for sync failures. These checks belong in the scope from the start, not added after launch.

How DeployOpen scopes and delivers MSI work

A written, fixed scope comes before any MSI configuration. For a multi-source inventory project, the scope should name each source (warehouse, store pickup point or drop shipper), each stock and the sales channels mapped to it, the source selection rule to be used, the ERP or CSV feeds that will update quantities, and the acceptance tests that show salable quantities are correct. DeployOpen agrees these items, the deliverables and the timeline in writing before work starts, and most engagements run on that fixed scope. Ask any partner to show how each source and feed is written down, and who signs off the decisions that change stock visibility at checkout.

The work is delivered inside your own infrastructure. DeployOpen builds the sources, stocks, feed processes and test data in the environments you control, whether that is your cloud accounts, data center or an air-gapped network. Access for the partner team, the test environments and the path to production should be defined in the scope, along with who approves each release into production. Confirm with your platform team which environments hold real stock and order data, since that decides how test data is created and masked.

Handover is what keeps the project running after launch. At the end of the engagement, you should receive the configuration record for sources and stocks, the data maps that connect ERP fields to source codes and SKUs, the import and sync runbooks, and the test evidence for reservations and salable quantity. Optional retainers cover upgrades to later Magento Open Source patch releases and continuous testing of the feed and checkout paths. Ask how the handover will be checked, and whether your own team can rerun the CSV import and ERP sync without the partner present.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.