All posts

Magento MSI: “in stock” but not salable

The admin grid says 40 in stock. The product page says out of stock, or the cart refuses the item. With Multi-Source Inventory, both can be true, because Magento sells against salable quantity, not the number you typed in.

Free checkout scan

Enter your store address. A real browser adds a product to the cart and walks the checkout up to the payment step, like a customer, and shows you every step with a screenshot.

  • Free, no account
  • Stops before payment, no order
  • Nothing to install
· Updated · 2 min read
A long warehouse aisle with stocked shelves

Quantity versus salable quantity

Salable quantity is the stock of all sources assigned to the sales channel’s stock, minus reservations for orders not yet shipped, minus the out-of-stock threshold. An order places a reservation; shipping it, or cancelling it, adds a compensating one.

ValueWhere you see itWhat changes it
Quantity per sourceProduct → SourcesManual edit, import, ERP
Reservationsinventory_reservation tableOrders, shipments, cancellations
Salable quantityProduct grid columnBoth of the above, per stock

How it drifts

Reservations are supposed to add up to zero once orders are shipped or cancelled. They stop doing so when an order is deleted directly in the database, when an import or ERP sync bypasses the inventory API, when the reservation consumer is not running, or when a source is not assigned to the stock of the website.

Products silently stop selling

Leftover reservations lower salable quantity until it reaches zero. The product disappears from sale while the shelf is full.

Find and fix inconsistencies

Magento ships commands for exactly this. List orders whose reservations do not balance, then create compensating reservations for them:

bash
# Orders whose reservations do not add up
bin/magento inventory:reservation:list-inconsistencies

# Compensate them in one go (raw output piped into the fixer)
bin/magento inventory:reservation:list-inconsistencies -r \
  | bin/magento inventory:reservation:create-compensations
Take a database backup first, and run it at a quiet hour on large stores.
  1. Check the stock assignment. Stores → Inventory → Stocks: the website must be on a stock that contains the source with quantity.
  2. Check the consumer. inventory.reservations.updateSalabilityStatus must be running; see message queue consumers.
  3. Reindex. bin/magento indexer:reindex inventory, then open the product as a new visitor.

Keeping it honest

Never delete orders in SQL, send imports through the inventory API, and run the inconsistency check on a schedule. From outside, a check that adds a real product to the cart notices when an item stops being salable. Related: Magento cron and indexers.

Check your own store now with the free Magento checkout test: it walks the checkout in a real browser and shows the step where it stops.

Find out your checkout broke before your customers do.

Real checkout checks for Magento and WooCommerce · free plan · no card requiredMagento checkout monitoring →
FAQ

Common questions

Still have a question?More answers, and a way to reach us.Support →
01What is salable quantity in Magento?

The stock of the sources assigned to a sales channel’s stock, minus reservations for unshipped orders and the out-of-stock threshold. Magento sells against it.

02Why is salable quantity lower than quantity?

Reservations from open orders, or leftover reservations from orders that were deleted or changed outside the inventory API.

03How do I fix wrong salable quantity?

Run inventory:reservation:list-inconsistencies and pipe its raw output into inventory:reservation:create-compensations, then reindex inventory.