Medusa Inventory Items API

An inventory item is a stock-kept product whose inventory is managed. These API routes allow admin users to manage inventory items.

GitHub OpenAPI
Business capability
Stock Level Management BC-530.10

Operations 12

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/inventory-items List inventory items · List Inventory Items #
Ask an LLM
“Which products are tracked in inventory?”
“Can I filter inventory items by SKU or country of origin?”
Tell an agent
List inventory items with SKU {sku}.
Show inventory items from {origin_country}.
POST /admin/inventory-items Create an inventory item · Create Inventory Item #
Ask an LLM
“How do I add a new product to inventory?”
“Can I set an HS code and material when creating an inventory item?”
Tell an agent
Create an inventory item titled {title} with SKU {sku}.
Add a new inventory item {title} made of {material}.
POST /admin/inventory-items/export Export inventory items to CSV · Export Inventory Items #
Ask an LLM
“How do I export all inventory items as a CSV?”
“Can I export only inventory items that require shipping?”
Tell an agent
Export inventory items matching {q}.
Start an inventory items export for {sku}.
POST /admin/inventory-items/location-levels/batch Create, update or delete inventory levels in bulk · Manage Inventory Levels #
Ask an LLM
“How do I bulk update inventory levels across all locations?”
“Can I force-delete inventory levels even if stock is still held?”
Tell an agent
Bulk manage inventory levels with creates {create}, updates {update}, deletes {delete}.
Force-delete inventory levels {delete} even with stocked quantity.
GET /admin/inventory-items/{id} Get an inventory item · Get a Inventory Item #
Ask an LLM
“What are the details of one inventory item?”
“Can I look up an inventory item by its ID?”
Tell an agent
Get inventory item {id}.
Show the details of inventory item {id}.
POST /admin/inventory-items/{id} Update an inventory item · Update an Inventory Item #
Ask an LLM
“How do I change the weight or dimensions of an inventory item?”
“Can I mark an existing inventory item as not requiring shipping?”
Tell an agent
Update inventory item {id} to have weight {weight}.
Set inventory item {id} to require shipping {requires_shipping}.
DELETE /admin/inventory-items/{id} Delete an inventory item · Delete Inventory Item #
Ask an LLM
“How do I remove an inventory item?”
“Can I delete an inventory item that still has stock?”
Tell an agent destructive · confirm first
Delete inventory item {id}.
Remove the inventory item {id} from stock tracking.
GET /admin/inventory-items/{id}/location-levels List an inventory item's location levels · List Inventory Levels #
Ask an LLM
“How much stock of an item is held at each location?”
“Can I see the incoming quantity for one inventory item at a location?”
Tell an agent
List location levels for inventory item {id}.
Show stock and incoming quantities for item {id} at location {location_id}.
POST /admin/inventory-items/{id}/location-levels Create an inventory level for an item at a location · Create Inventory Level for Inventory Item #
Ask an LLM
“How do I record stock of an item at a specific warehouse?”
“Can I set incoming quantity when creating an inventory level?”
Tell an agent
Create an inventory level for item {id} at location {location_id}.
Record {stocked_quantity} stock of item {id} at location {location_id}.
POST /admin/inventory-items/{id}/location-levels/batch Manage an item's location levels in bulk · Manage Inventory Levels of Inventory Item #
Ask an LLM
“How do I bulk update stock levels for an item across locations?”
“Can I bulk delete inventory levels for one item?”
Tell an agent
Bulk manage location levels for inventory item {id} with creates {create}, updates {update}, deletes {delete}.
Bulk delete location levels {delete} of item {id}.
POST /admin/inventory-items/{id}/location-levels/{location_id} Update an item's stock level at a location · Update an Inventory Level of an Inventory Item #
Ask an LLM
“How do I adjust the stock of an item at one location?”
“Can I change the incoming quantity of an item at a location?”
Tell an agent
Update the stock of item {id} at location {location_id} to {stocked_quantity}.
Set incoming quantity of item {id} at location {location_id} to {incoming_quantity}.
DELETE /admin/inventory-items/{id}/location-levels/{location_id} Remove an item's stock level at a location · Remove Inventory Level of Inventory Item #
Ask an LLM
“How do I remove stock tracking for an item at one location?”
“Why can't I delete an inventory level that still has reserved stock?”
Tell an agent destructive · confirm first
Remove the inventory level of item {id} at location {location_id}.
Delete stock tracking for item {id} at location {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-inventory-items-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-inventory-items-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2.19.0
  title: Medusa Admin Inventory Items API
  license:
    name: MIT
    url: https://github.com/medusajs/medusa/blob/develop/LICENSE
  description: 'An inventory item is a stock-kept product whose inventory is managed.


    These API routes allow admin users to manage inventory items.'
servers:
- url: http://localhost:9000
- url: https://api.medusajs.com
tags:


# --- truncated at 32 KB (98 KB total) ---
# Full source: https://artifacts.apis.io/medusa/openapi/medusa-inventory-items-api-openapi.yml