1 export const metadata = {
2 title: `Inventory Concepts`,
3 }
4
5 # {metadata.title}
6
7 In this guide, you'll learn about the main concepts in the Inventory Module and how data is stored and connected.
8
9 ## InventoryItem
10
11 An inventory item, represented by the [InventoryItem data model](/references/inventory-next/models/InventoryItem), is a stock-kept item whose inventory can be managed. For example, a product.
12
13 The `InventoryItem` data model holds details about the stock item. It connects to other data models like `InventoryLevel` that store stock and quantity details.
14
15 ![A diagram showcasing the relation between data models in the Inventory Module](https://res.cloudinary.com/dza7lstvk/image/upload/v1709658103/Medusa%20Resources/inventory-architecture_kxr2ql.png)
16
17 ### Unit of Measure
18
19 <Note>
20
21 This feature is available since [Medusa v2.20.0](https://github.com/medusajs/medusa/releases/tag/v2.20.0).
22
23 </Note>
24
25 An inventory item has an optional `unit_of_measure` field that stores the unit in which the item's stock is measured (for example, `lb` or `kg`). When set, the Medusa Admin displays inventory quantities with the unit appended (for example, `98.25 lb`).
26
27 Because stock can be held in a unit that is sold in fractions of itself (for example, a pound of cheese sold as quarter-pounds), inventory quantities support fractional values. The `required_quantity` of an inventory kit item can also be a decimal number.
28
29 ### Inventory Shipping Requirement
30
31 An inventory item has a `requires_shipping` field that indicates whether the item needs shipping. This field is enabled by default.
32
33 For example, if you're selling a digital license with limited stock that doesn't need shipping, you can set this field to `false`.
34
35 When a customer buys a product variant in the Medusa application, this field determines whether the item needs shipping. Learn more in the [Configure Selling Products](../../product/selling-products/page.mdx) guide.
36
37 ---
38
39 ## InventoryLevel
40
41 An inventory level, represented by the [InventoryLevel data model](/references/inventory-next/models/InventoryLevel), stores the inventory and quantity details of an inventory item in a specific location.
42
43 It has three quantity properties:
44
45 - `stocked_quantity`: The available stock quantity of an item in the associated location.
46 - `reserved_quantity`: The quantity reserved from the available `stocked_quantity`. This quantity is still in stock but unavailable when checking if an item is available.
47 - For example, when an order is placed but not yet fulfilled, the ordered quantity is reserved from available stock.
48 - `incoming_quantity`: The incoming stock quantity of an item into the associated location. This property doesn't affect the `stocked_quantity` or availability checks.
49
50 ### Associated Location
51
52 The inventory level's location is set in the `location_id` property. Medusa links the `InventoryLevel` data model with the `StockLocation` data model from the [Stock Location Module](../../stock-location/page.mdx).
53
54 ---
55
56 ## ReservationItem
57
58 A reservation item, represented by the [ReservationItem](/references/inventory-next/models/ReservationItem) data model, represents unavailable quantity of an inventory item in a location.
59
60 When an order is placed, Medusa creates a reservation item for each inventory item in the order. The reservation item stores the reserved quantity of the inventory item in the location associated with the order's sales channel.
61
62 You can also use reservation items for custom use cases. For example, if you're selling event tickets, you can create a reservation item when a customer selects a ticket. Then, you can remove the reservation item if the customer doesn't complete the purchase within a specific time.
63
64 The reserved quantity is linked to a location, so it has a similar relationship to the `InventoryLevel` with the [Stock Location Module](../../stock-location/page.mdx).