Commerce Layer API, explained — Explore our Data Model.
Inventory Management

Inventory Models

When a customer requests to purchase a line item, the inventory is checked to determine the product's availability. In this section, you will learn about inventory models and how to build one for each market in an organization.
Inventory model relationships with market and inventory/return stock locations.

What is an inventory model?

An inventory (also referred to as stocks) is the goods and raw materials that any business would hold and are ready (or will be prepared) for sale. An inventory model comprises several inventory stock locations ordered by priority. The priority order determines how the availability of SKUs gets calculated within a market.

Inventory stock locations build a hierarchy of stock locations within an inventory model. They can be a physical warehouse, a retail store, or a virtual location that tracks your inventory in a given market. In cases where an SKU is available in more stock locations, it gets shipped from those with the highest priority during an order.

Return stock locations build a hierarchy of stock locations within an inventory model. In cases where an SKU is available in more stock locations, it gets returned to those with the highest priority.

When a customer requests to purchase an item, the available inventory stock locations are checked with the required product and total required quantity. This is then used to determine the product's availability.

Different stock locations are checked in the order of priority predefined by the merchant until the customer's order is available. If an order contains line items from two or more stock locations, the order is split into two or more shipments, one for each stock location.

You can import inventory from any stock location with tokens and get availability information for each SKU in every market. Using the availability information, you can display shipping costs and delivery lead times for each delivery option available.

Ready to get started?