# @medusajs/stock-location

> Stock Location Module for Medusa

Latest version **2.22.6** (published 2026-11-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @medusajs/stock-location
pnpm add @medusajs/stock-location
yarn add @medusajs/stock-location
bun add @medusajs/stock-location
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score; popular repo.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 2.22.6 |
| Published | 2026-11-09 |
| First published | 2023-01-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=22.22.0 |
| Dependencies | 0 |
| Unpacked size | 56.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 36437 |
| Author | Medusa |
| Maintainers | sebrindom, nicolas-gorga, sradevski, olijuhl, shahednasser |

## Links

- npm: https://www.npmjs.com/package/@medusajs/stock-location
- Repository: https://github.com/medusajs/medusa
- Homepage: https://github.com/medusajs/medusa#readme
- Issues: https://github.com/medusajs/medusa/issues
- npm.io page: https://npm.io/package/@medusajs/stock-location

## Recent versions

- 2.22.6 (latest) — 2026-11-09
- 2.22.7-snapshot-20261111153147 (snapshot) — 2026-11-11
- 2.22.4-preview-20261106081111 (preview) — 2026-11-06
- 2.16.0-options-preview-20260605124754 (options-preview) — 2026-06-05
- 2.0.0-rc-20241022183311 (rc) — 2024-10-22
- 1.11.6-next-20240430121402 (next) — 2024-04-30
- 1.9.1-beta-20230619170349 (beta) — 2023-06-19
- 1.8.5-nextjs-commerce-20230515081748 (nextjs-commerce) — 2023-05-15
- 1.8.4-canary-20230512135047 (canary) — 2023-05-12
- 1.8.5-nextjs-20230507103235 (nextjs) — 2023-05-07
- 1.0.1-alpha.0 (alpha) — 2023-01-10
- 2.22.5 — 2026-11-09
- 2.22.4 — 2026-11-06
- 2.22.3 — 2026-11-04
- 2.22.3-snapshot-20261103230838 — 2026-11-03
- … 497 more at https://npm.io/package/@medusajs/stock-location/versions

## README

<p align="center">
  <a href="https://www.medusajs.com">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/59018053/229103275-b5e482bb-4601-46e6-8142-244f531cebdb.svg">
    <source media="(prefers-color-scheme: light)" srcset="https://user-images.githubusercontent.com/59018053/229103726-e5b529a3-9b3f-4970-8a1f-c6af37f087bf.svg">
    <img alt="Medusa logo" src="https://user-images.githubusercontent.com/59018053/229103726-e5b529a3-9b3f-4970-8a1f-c6af37f087bf.svg">
    </picture>
  </a>
</p>
<h1 align="center">
  @medusajs/stock-location
</h1>

<h4 align="center">
  <a href="https://docs.medusajs.com">Documentation</a> |
  <a href="https://www.medusajs.com">Website</a>
</h4>

<p align="center">
  Building blocks for digital commerce
</p>
<p align="center">
  <a href="https://github.com/medusajs/medusa/blob/develop/LICENSE">
    <img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="Medusa is released under the MIT license." />
  </a>
  <a href="https://github.com/medusajs/medusa/blob/develop/CONTRIBUTING.md">
    <img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat" alt="PRs welcome!" />
  </a>
  <a href="https://discord.gg/xpCwq3Kfn8">
    <img src="https://img.shields.io/badge/chat-on%20discord-7289DA.svg" alt="Discord Chat" />
  </a>
  <a href="https://twitter.com/intent/follow?screen_name=medusajs">
    <img src="https://img.shields.io/twitter/follow/medusajs.svg?label=Follow%20@medusajs" alt="Follow @medusajs" />
  </a>
</p>

Stock Location Module for Medusa: manages stock locations (such as warehouses) and their addresses. It's installed and registered by default with `@medusajs/medusa`, so Medusa applications use it through the `Modules.STOCK_LOCATION` service rather than installing this package directly.

## At a glance

| | |
| --- | --- |
| Package | `@medusajs/stock-location` |
| Type | Commerce Module |
| Module key | `Modules.STOCK_LOCATION` (`"stock_location"`) |
| Registered by default | Yes |
| Import from | `@medusajs/medusa/stock-location` |

## Installation

No installation needed. The module ships with `@medusajs/medusa` and is registered by `defineConfig`.

## Usage

Resolve the module's service from the Medusa container, for example in a workflow step:

```ts
import { createStep, StepResponse } from "@medusajs/framework/workflows-sdk"
import { Modules } from "@medusajs/framework/utils"

const createStockLocationStep = createStep(
  "create-stock-location",
  async ({}, { container }) => {
    const stockLocationModuleService = container.resolve(Modules.STOCK_LOCATION)

    const stockLocation = await stockLocationModuleService.createStockLocations({
      name: "Warehouse 1",
    })

    return new StepResponse({ stockLocation }, stockLocation.id)
  }
)
```

## Resources

- [Stock Location Module](https://docs.medusajs.com/resources/commerce-modules/stock-location)
- [Stock Location Concepts](https://docs.medusajs.com/resources/commerce-modules/stock-location/concepts)
- [Links to Other Modules](https://docs.medusajs.com/resources/commerce-modules/stock-location/links-to-other-modules)

---
_Source: https://npm.io/package/@medusajs/stock-location · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
