Overview
The Products API allows you to create, update, retrieve, and manage products in your Medusa store. Products can have multiple variants, options, images, and be organized into collections and categories. Base Path:/admin/products
Source: packages/medusa/src/api/admin/products/route.ts
List Products
Retrieve a list of products with filtering and pagination.Query Parameters
Comma-separated list of fields to include (e.g.,
id,title,status,variants.sku).Maximum number of products to return.
Number of products to skip.
Filter by product status:
published, draft, or proposed.Filter products by sales channel ID.
Filter products by collection ID.
Filter products by tag IDs.
Filter products by category IDs.
Search query for product title or description.
Request
Response
Array of product objects.
Total number of products matching the filters.
packages/medusa/src/api/admin/products/route.ts:17
Create Product
Create a new product with variants and options.Request Body
The product’s title.
The product’s subtitle.
The product’s description.
Product status:
published, draft, or proposed.Unique URL-friendly identifier. Auto-generated from title if not provided.
Whether the product is a gift card.
Whether discounts can be applied to the product.
Product images.
URL of the product’s thumbnail image.
ID of the collection the product belongs to.
ID of the product type.
Product categories.
Product tags.
Product options (e.g., Size, Color).
Product variants.
Sales channels where the product is available.
Product weight.
Product length.
Product height.
Product width.
Key-value pairs of custom metadata.
Request
Response
packages/medusa/src/api/admin/products/route.ts:94
Types: packages/core/types/src/http/product/admin/payloads.ts:159
Get Product
Retrieve a single product by ID.Path Parameters
The product’s ID.
Request
Response
Update Product
Update an existing product.Path Parameters
The product’s ID.
Request Body
Accepts the same fields as Create Product, all optional.Request
Response
Delete Product
Delete a product (soft delete).Path Parameters
The product’s ID.
Request
Response
Product Variants
Create Variant
Add a new variant to an existing product.Update Variant
Update a product variant.Delete Variant
Remove a variant from a product.Product Options
Create Option
Add a new option to a product.Update Option
Update a product option.Delete Option
Remove an option from a product.Batch Operations
Batch Create/Update Products
Create or update multiple products in a single request.Request Body
Products to create.
Products to update.
Next Steps
Inventory
Manage product inventory
Pricing
Configure product pricing