create_variant
Specify at least one option value to create a new variant. Set price, inventory, SKU, and shipping preferences.
Instructions
Create a new variant for a product. Must specify at least one option value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | Yes | The numeric Shopify product ID. | |
| option1 | No | Value for the first product option (e.g. 'Small'). | |
| option2 | No | Value for the second product option (e.g. 'Red'). | |
| option3 | No | Value for the third product option. | |
| price | No | Variant price (e.g. '29.99'). | |
| compare_at_price | No | Compare-at price for showing a sale (e.g. '39.99'). | |
| sku | No | SKU code. | |
| barcode | No | Barcode (ISBN, UPC, GTIN, etc.). | |
| weight | No | Weight in the specified unit. | |
| weight_unit | No | Weight unit. | |
| inventory_quantity | No | Initial stock quantity. | |
| requires_shipping | No | Whether the variant requires shipping. | |
| taxable | No | Whether the variant is taxable. |