Create product
create_productCreates a Medusa product with variants, prices, stock, and catalog details. Use it to add simple products or multi-option variants via the Medusa Admin API.
Instructions
Creates a product with its variants and prices. For a simple product without options pass just 'prices' (and optionally 'sku', 'stock'). For variants define 'options' (e.g. Size: S, M, L) and one variant per combination. Defaults: status draft, the store's default sales channel, the default shipping profile. Category and collection IDs come from list_catalog.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | No | Simple product: SKU of its single variant | |
| tags | No | Tag values; missing tags are created | |
| stock | No | Simple product: initial stock | |
| title | Yes | ||
| handle | No | URL slug; derived from the title when omitted | |
| images | No | Image URLs | |
| prices | No | Simple product: prices of its single variant | |
| status | No | draft | |
| weight | No | Grams | |
| options | No | E.g. [{ title: 'Size', values: ['S','M','L'] }] | |
| metadata | No | ||
| subtitle | No | ||
| variants | No | ||
| thumbnail | No | Image URL | |
| description | No | ||
| location_id | No | Stock location for initial stock; defaults to the only one | |
| category_ids | No | ||
| discountable | No | ||
| collection_id | No | ||
| sales_channel_ids | No | ||
| shipping_profile_id | No |