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.
| Value | Where you see it | What changes it |
|---|---|---|
| Quantity per source | Product → Sources | Manual edit, import, ERP |
| Reservations | inventory_reservation table | Orders, shipments, cancellations |
| Salable quantity | Product grid column | Both 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.
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:
# 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- Check the stock assignment. Stores → Inventory → Stocks: the website must be on a stock that contains the source with quantity.
- Check the consumer.
inventory.reservations.updateSalabilityStatusmust be running; see message queue consumers. - 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 →