Inventory overview

Ask about this Page
Copy for AI
View as Markdown

Learn how stock is tracked, limited, and reserved for the Products that customers buy.

Inventory tracks the sellable stock of each Stock Keeping Unit (SKU), the code that identifies a Product Variant, across the places that supply it, such as warehouses. A business uses Inventory to manage stock levels, enforce purchase limits, and reserve stock so that Products stay available while customers check out. This area covers inventory entries, Supply Channels and Distribution Channels, inventory modes, Reservations, quantity limits, and stock level notifications.

Merchandisers and storefront developers typically work with Inventory, either in the Merchant Center or with the APIs:

Key concepts

Inventory entry

An inventory entry represents the stock of a single SKU in one Supply Channel, or in no Channel. Only one inventory entry exists for each combination of a SKU and a Supply Channel.

An inventory entry tracks two quantities: the stock on hand, which is the overall amount of stock including reserved stock, and the available stock, which is the stock on hand minus the reserved stock. Changes that Orders and Reservations make to these quantities are not always visible instantly on the inventory entry.

For example, a retailer that holds the same SKU in two warehouses keeps one inventory entry for each warehouse.

Learn how inventory entries work and how to keep inventory in sync with external systems in the self-paced Inventory modeling module.

Supply Channels and Distribution Channels

A Supply Channel is where stock is held, such as a warehouse. A Distribution Channel is used for price selection. The roles have different purposes, but a Channel can have both. A Store configures its Supply Channels and Distribution Channels separately. A Cart that is bound to a Store filters available stock and Prices using the Channels that are configured for the Store. For how a Store limits the stock and Prices it shows, see Prices and stock available in a Store.

To fulfill a single SKU from several inventory locations, add several Line Items to the Cart, each with a different Supply Channel.

Inventory modes

The inventory mode defines how stock is managed when Line Items are added to a Cart and when the Order is created. A business can set the mode for a whole Cart, for individual Line Items, or for both. The following table summarizes the available modes:

ModeWhat happensWhen to use
NoneThis is the default mode. Stock is not checked or updated when Line Items are added to the Cart or when the Order is created.Products that are always in stock, for example digital goods. Businesses that do not require inventory management. Businesses that manage their inventory externally.
Track onlyStock is not checked when Line Items are added to the Cart. When the Order is created, the ordered quantity is deducted from the available stock. An Order can be placed even if the required stock is not available at that moment. If no inventory entry exists for an ordered Line Item, the Order fails.Products with high stock levels where reservations are unnecessary. Businesses that want to monitor stock without reserving it. Overselling scenarios and accepting backorders.
Reserve on orderStock is not checked or held when Line Items are added to the Cart. When the Order is created, the platform checks and deducts the stock. The Order fails if the required stock is not available at that moment, unless the inventory entry has a restock period set.Standard inventory management where stock is only deducted upon Order creation. Businesses that want to avoid holding stock before the Order is finalized.
Reserve on cartStock is checked and reserved when Line Items are added to the Cart. Reservations expire after a set time, which the business configures for the Project.High-demand Products where stock needs to be secured during checkout. Businesses that want to minimize the risk of stockouts during checkout.
Reserve on cart only works after the business has set how long Reservations last. For which mode applies when a Cart and its Line Items use different modes, see Which inventory mode applies.

Reservations

A Reservation temporarily holds stock for an individual Line Item in a Cart, so that the stock stays available to the customer during checkout. Reserve on cart is the mode that creates Reservations. If there is not enough stock to reserve a new Line Item, the platform does not add it to the Cart.

When a Reservation is created, the available stock of the inventory entry decreases by the reserved amount. When automatic release is enabled, expired Reservations make the stock available again; releasing a Reservation also increases the available stock. Deleting a Cart also removes all associated Reservations and releases the reserved quantity back to the corresponding inventory entries.

Reservations apply to both regular Line Items and Gift Line Items. Gift Line Items follow the same reservation behavior as regular Line Items.

The expiry time is set for the Project, or for the inventory entry if it has its own setting. A business can also release a Reservation before its expiry time, for example by changing the inventory mode of the Line Item or by removing the Line Item from the Cart.

For example, a retailer that sells a high-demand Product reserves the stock when the customer adds the Product to the Cart, so that the customer can finish checkout without losing the item.

Quantity limits

A business can restrict the quantity of a SKU that customers can add to a Cart by setting a minimum and a maximum limit on its inventory entry. For example, a minimum suits an item that customers can only order in a minimum amount, and a maximum helps ensure the availability of an item with limited stock, preventing denial of inventory scenarios.

A limit applies to a Line Item whose SKU and Supply Channel match the inventory entry. The following rules apply:

  • Quantity limits are independent of the inventory mode: the limits apply whichever mode is used (None, Track only, Reserve on order, or Reserve on cart). The inventory mode controls when and how stock is reserved or updated, but does not affect quantity limit enforcement.
  • Each Line Item is evaluated independently: each Line Item that matches an inventory entry is checked against that entry's limits. Other Line Items in the Cart can use the same SKU, the same Product Variant, or the same Supply Channel without changing this rule. This applies to several Line Items for the same SKU and Supply Channel, for example when Custom Fields distinguish them. It also applies to Line Items for the same SKU in different Supply Channels, so a business can enforce distinct quantity limits for each Line Item.

When a business introduces or changes limits, the change can affect Line Items that are already in Carts.

Enforcement scenarios

The following table details when quantity limits are enforced:

ScenarioEnforcementNotes
Cart creationYesIf any Line Item exceeds its quantity limits, the Cart creation fails.
Cart updateYesA Line Item that is outside its quantity limits is removed on the next Cart update. A request that causes a Line Item to exceed a limit fails.
Order creation from CartYesQuantity limits are enforced when creating an Order from a Cart. If any Line Item in the Cart violates the current limits, for example after limits change or for Frozen Carts, the Order creation fails.
Order EditsNoQuantity limits are not enforced during Order Edits.
Order ImportsNoQuantity limits are not enforced during Order Imports.

Stock level notifications

A business can set up stock level notifications to stay informed about inventory changes. A notification alerts the business when the stock on hand of an inventory entry reaches a threshold. Each threshold sends its own Message, a notification of the change, when the stock reaches it.

ThresholdPurposeTypical use cases
Reorder pointEarly-warning threshold that indicates stock is low and should be replenished before running out during lead time.Trigger notifications or automations in an enterprise resource planning (ERP) system or an order management system (OMS) to create purchase orders. Show "low stock" messaging on the storefront. Highlight low stock levels in internal dashboards.
Safety stockCritical minimum threshold that shows inventory has reached an urgent, buffer-level quantity.Signal a critical low-stock situation. Allow an OMS or ERP to limit or stop selling. Display "very low stock" or hide items on certain sales channels.

How the concepts relate

The following diagram shows how SKUs, inventory entries, Supply Channels, Stores, Line Items, and Reservations relate.

An inventory entry connects one SKU to one Supply Channel, or to no Channel. A Store shows the stock of its configured Supply Channels and inventory entries without a Supply Channel. A Line Item draws on the inventory entry that matches its SKU and Supply Channel, and a Line Item in Reserve on cart mode can have a Reservation on that entry.

Lifecycle and states

Reservation

The following diagram shows the states of a Reservation and what changes them.

A Reservation is Created when stock is reserved. The available stock decreases by the reserved quantity, and the stock on hand stays the same. It is Updated when its quantity or expiry time changes. The available stock then increases or decreases accordingly. It is Released when the reserved quantity is released, and the available stock increases. When automatic release of expired Reservations is enabled, a Reservation is marked Expired after its expiry time passes, and the available stock increases. This change can take a few minutes. If automatic release is turned off, tracking Line Items with expired Reservations is the business's responsibility; the diagram does not show an automatic Expired transition in that case. When an Order is created from the Cart, the reserved stock is deducted: the Reservation is Committed, the stock is allocated for fulfillment, and the stock on hand decreases.

Selection and precedence rules

Which inventory mode applies

A Line Item's inventory mode takes precedence over the Cart's inventory mode.

Common scenarios

Fulfill one SKU from several locations

A retailer holds the same SKU in two warehouses. The retailer adds two Line Items for that SKU to the Cart, each with a different Supply Channel, so that each Line Item draws on the stock of its own warehouse.

Secure stock during checkout

A retailer that sells a high-demand Product uses Reserve on cart. The platform reserves the stock when the customer adds the Product to the Cart. If checkout takes longer than expected, the retailer can extend the expiry time of the Reservations before they expire, so that the customer does not lose the items.