Back to Medusa

{metadata.title}

www/apps/resources/app/commerce-modules/stock-location/concepts/page.mdx

2.14.21.3 KB
Original Source

export const metadata = { title: Stock Location Concepts, }

{metadata.title}

In this guide, you’ll learn about the main concepts in the Stock Location Module.

Stock Location

A stock location, represented by the StockLocation data model, represents a location where stock items are kept. For example, a warehouse.

Each stock location can have custom metadata associated with it, allowing you to store additional information as key-value pairs.

<Note>

The metadata field is available since Medusa v2.14.0.

</Note>

Medusa uses stock locations to provide inventory details, stored and managed by the Inventory Module, per location.


StockLocationAddress

The StockLocationAddress data model belongs to the StockLocation data model. It provides detailed location information including:

  • Address lines: Primary and secondary address information
  • Geographic details: Country code, city, province, and postal code
  • Contact information: Company name and phone number
  • Custom metadata: Additional key-value pairs for extra location data