Medusa Stock Locations API

A stock location is where stock-kept items (products) are kept. Stock locations are linked to fulfillment providers used to fulfill items from this location. A stock location is also link to a fulfillment set, indicating where an item is fulfilled from when an order is placed. These API routes allow admin users to manage stock locations and their linked data.

GitHub OpenAPI

Operations 8

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /admin/stock-locations List stock locations · List Stock Locations #
Ask an LLM
“Which stock locations hold my inventory?”
“Can I filter stock locations by name or address?”
Tell an agent
List all stock locations.
Find stock locations named {name}.
POST /admin/stock-locations Create a stock location · Create Stock Location #
Ask an LLM
“How do I add a new warehouse as a stock location?”
“Can I set metadata on a new stock location?”
Tell an agent
Create a stock location named {name}.
Create stock location {name} with address {address}.
GET /admin/stock-locations/{id} Get a stock location · Get a Stock Location #
Ask an LLM
“What address and metadata does a stock location have?”
“Can I look up one stock location by ID?”
Tell an agent
Get stock location {id}.
Show the address and metadata of stock location {id}.
POST /admin/stock-locations/{id} Update a stock location · Update a Stock Location #
Ask an LLM
“How do I change the address of an existing stock location?”
“Can I rename a stock location?”
Tell an agent
Rename stock location {id} to {name}.
Set the address of stock location {id} to {address}.
DELETE /admin/stock-locations/{id} Delete a stock location · Delete a Stock Location #
Ask an LLM
“How do I remove a stock location?”
“Can I delete a warehouse stock location?”
Tell an agent destructive · confirm first
Delete stock location {id}.
Remove the stock location {id}.
POST /admin/stock-locations/{id}/fulfillment-providers Add or remove fulfillment providers on a stock location · Manage Fulfillment Providers of a Stock Location #
Ask an LLM
“How do I make a stock location fulfill orders through a particular fulfillment provider?”
“Can I remove a fulfillment provider from a stock location?”
Tell an agent
Add fulfillment providers {add} to stock location {id}.
Remove fulfillment providers {remove} from stock location {id}.
POST /admin/stock-locations/{id}/fulfillment-sets Add a fulfillment set to a stock location · Add Fulfillment Set to Stock Location #
Ask an LLM
“How do I create a fulfillment set for a stock location?”
“Can I choose the type of a new fulfillment set?”
Tell an agent
Add a {type} fulfillment set named {name} to stock location {id}.
Create fulfillment set {name} of type {type} on stock location {id}.
POST /admin/stock-locations/{id}/sales-channels Add or remove sales channels on a stock location · Manage Sales Channels of a Stock Location #
Ask an LLM
“How do I make a stock location available on certain sales channels?”
“Can I take a stock location off a sales channel?”
Tell an agent
Add sales channels {add} to stock location {id}.
Remove sales channels {remove} from stock location {id}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/medusa:medusa-stock-locations-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

medusa-stock-locations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2.19.0
  title: Medusa Admin Stock Locations API
  license:
    name: MIT
    url: https://github.com/medusajs/medusa/blob/develop/LICENSE
  description: 'A stock location is where stock-kept items (products) are kept.


    Stock locations are linked to fulfillment providers used to fulfill items from this location.


    A stock location is also link to a fulfillment set, indicating where an item is fulfilled from when an order is placed.


    These API routes allow admin users to manage stock locations and their linked data.'
servers:
- url: http://localhost:9000
- url: https://api.medusajs.com
tags:


# --- truncated at 32 KB (55 KB total) ---
# Full source: https://artifacts.apis.io/medusa/openapi/medusa-stock-locations-api-openapi.yml