Skip to main content
Skip to main content

Relations between Inventory Module and Other Modules

When Commerce Modules are used together in a Medusa application, the Medusa application handles building the relations between these modules.

This document showcases the relation between the Inventory Module and other Commerce Modules.

Product Module

Each product variant has different inventory details. The Medusa application forms a relation between the ProductVariant and InventoryItem data models.

A diagram showcasing an example of how resources from the Inventory and Product Module are linked.

A product variant, whose manage_inventory attribute is enabled, has an associated inventory item. Through that inventory's items relations in the Inventory Module, you can manage and check the variant's inventory quantity.


Stock Location Module

Reservation items and inventory items are associated with a location. The Medusa application forms a relation between the ReservationItem and StockLocation data models, and the InventoryLevel and StockLocation data models.

A diagram showcasing an example of how resources from the Inventory and Stock Location modules are linked.

The stock location provides address details of the location.

Was this section helpful?