create_product
Create products with configurable options, SKU variants, prices, images, and inventory settings, then publish them live or stage them as drafts.
Instructions
Create a product. Provide options (e.g. Size/Color) and variants that reference those options. Variant prices use major currency units (25 = $25.00). Images are passed as an array of public URLs. Set status 'published' to make it live, or 'draft' to stage it. Example variant: { title:'Medium', sku:'TL-M', options:{ Size:'M' }, prices:[{ amount:25, currency_code:'usd' }], manage_inventory:true }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Array of { value } or { id } tag objects. | |
| title | Yes | ||
| width | No | ||
| handle | No | URL slug; auto-generated from title if omitted. | |
| height | No | ||
| images | No | Array of image objects: [{ url }] or array of URL strings. | |
| length | No | ||
| status | No | Defaults to 'draft'. | |
| weight | No | ||
| options | No | e.g. [{ title:'Size', values:['S','M','L'] }]. | |
| type_id | No | ||
| material | No | ||
| subtitle | No | ||
| variants | No | Each: { title, sku?, options:{OptionTitle:'value'}, prices:[{amount,currency_code}], manage_inventory? }. | |
| thumbnail | No | Public image URL for the main thumbnail. | |
| description | No | ||
| category_ids | No | Category ids to attach. | |
| discountable | No | ||
| collection_id | No | ||
| sales_channel_ids | No | Sales channel ids the product is available in. |