Links between Stock Location Module and Other Modules
This document showcases the module links defined between the Stock Location Module and other Commerce Modules.
Summary#
The Stock Location Module has the following links to other modules:
First Data Model | Second Data Model | Type | Description |
|---|---|---|---|
FulfillmentSet in Fulfillment Module | StockLocation | Stored - many-to-one | |
FulfillmentProvider in Fulfillment Module | StockLocation | Stored - many-to-many | |
InventoryLevel in Inventory Module | StockLocation | Read-only - has many | |
SalesChannel in Sales Channel Module | StockLocation | Stored - many-to-many |
Fulfillment Module#
A fulfillment set can be conditioned to a specific stock location.
Medusa defines a link between the FulfillmentSet and StockLocation data models.
Medusa also defines a link between the FulfillmentProvider and StockLocation data models to indicate the providers that can be used in a location.
Inventory Module#
Medusa defines a read-only link between the Inventory Module's InventoryLevel data model and the StockLocation data model. Because the link is read-only from the InventoryLevel's side, you can only retrieve the stock location of an inventory level, and not the other way around.
Sales Channel Module#
A stock location is associated with a sales channel. This scopes inventory quantities in a stock location by the associated sales channel.
Medusa defines a link between the SalesChannel and StockLocation data models.