add_product_variant
Add a new product variant with specific option values and price to an existing product using its Global ID.
Instructions
Adds a new variant (combination of options like color/size) with its price to an existing product.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | No | Optional Stock Keeping Unit (SKU) for this variant. | |
| price | Yes | The price for this new variant. | |
| product_id | Yes | The Global ID (GID) of the product to add the variant to (e.g., 'gid://shopify/Product/12345') | |
| option_values | Yes | Comma-separated list of the option values for this specific variant, **in the exact order** they appear on the product (e.g., 'Red,Small' for options Color then Size). | |
| compare_at_price | No | Optional compare-at price for this variant. |