Skip to content
Aisles of shelving and cartons in a distribution warehouse.
E-commerce2 min readNovember 24, 2026

Sync Shopify and ERP inventory without promising the last unit twice

D
Written by
Daillac
Contents
In this example, a buyer places an order for the last box of an item on Shopify. Almost at the same time a second buyer orders that SKU at the counter. The ERP sees one sale and the online store sees another. Decide which system can reserve the unit, and when, before wiring the stock feeds together.

Assign an owner to each inventory movement

The ERP may hold physical stock while Shopify shows what is available to sell at each location. Write rules for turning receipts, reservations, transfers and unavailable inventory into a sellable count. When several channels share stock, name the system that resolves competing reservations. Buffer stock can reduce exposure while updates are in transit. Make this ownership decision part of e-commerce development before connecting available quantities to sales.

Test Shopify’s location routing

Shopify assigns orders based on inventory and routing rules. Its documentation describes split orders and circumstances in which a location can oversell. Test your actual locations with a real cart. Place two orders at the same time, then simulate a connection failure between order creation and the inventory update.
TableSuggested ownership of inventory changes · shareable block
Suggested ownership of inventory changes
Proposed ownerAcceptance scenario
Online saleShopify emits the order. The designated system settles the reservation.Two sales compete for one unit.
Warehouse transferERP tracks dispatch, transit and receipt.Goods in transit stay unavailable.
CancellationThe inventory owner releases the reservation after confirmation.A repeated notification adds no extra unit.
Damaged returnThe warehouse inspects it and ERP updates available inventory.The return does not increase online stock.

Reconcile differences without undoing recent sales

Compare counts daily for items that move quickly. For any difference, look up the latest movement, its identifier and its source. Preserve the identifier when replaying an event. Before writing a corrected quantity to the store, check whether a newer order has already reserved the unit. When the ERP is the source of truth, send the expected prior quantity along with the correction. As of Shopify Admin API 2026-04, inventorySetQuantities with changeFromQuantity can flag a stock change caused by a concurrent reservation. Read the current quantity before recalculating the adjustment. During ERP integration, decide who will review discrepancies after a retry.

Frequently asked questions

Should the ERP always own inventory?+
That depends on how you sell. Name a source of truth for each movement and avoid concurrent writes to the same quantity.
What is sellable inventory?+
It is what you are willing to promise after accounting for reservations, unavailable goods and any safety-stock rules.
Can inventory sync once a day?+
It depends on order volume and the cost of overselling. Sale events need to reach the other systems soon enough for the business to keep its promises.
How do we test recovery after an outage?+
Replay the same event twice and check that it changes the final quantity only once.

Review your inventory sync

Pick two locations and one fast-moving item. We can use it to test reservation and reconciliation in a small pilot.
D
Written by
Daillac