|
1
|
export const metadata = { |
|
2
|
title: `Stock Location Concepts`, |
|
3
|
} |
|
4
|
|
|
5
|
# {metadata.title} |
|
6
|
|
|
7
|
In this guide, you’ll learn about the main concepts in the Stock Location Module. |
|
8
|
|
|
9
|
## Stock Location |
|
10
|
|
|
11
|
A stock location, represented by the [StockLocation data model](/references/stock-location-next/models/StockLocation), represents a location where stock items are kept. For example, a warehouse. |
|
12
|
|
|
13
|
Each stock location can have custom metadata associated with it, allowing you to store additional information as key-value pairs. |
|
14
|
|
|
15
|
<Note> |
|
16
|
|
|
17
|
The metadata field is available since Medusa [v2.14.0](https://github.com/medusajs/medusa/releases/tag/v2.14.0). |
|
18
|
|
|
19
|
</Note> |
|
20
|
|
|
21
|
Medusa uses stock locations to provide inventory details, stored and managed by the [Inventory Module](../../inventory/concepts/page.mdx), per location. |
|
22
|
|
|
23
|
--- |
|
24
|
|
|
25
|
## StockLocationAddress |
|
26
|
|
|
27
|
The [StockLocationAddress data model](/references/stock-location-next/models/StockLocationAddress) belongs to the `StockLocation` data model. It provides detailed location information including: |
|
28
|
|
|
29
|
- **Address lines**: Primary and secondary address information |
|
30
|
- **Geographic details**: Country code, city, province, and postal code |
|
31
|
- **Contact information**: Company name and phone number |
|
32
|
- **Custom metadata**: Additional key-value pairs for extra location data |