update_variant_price
Update a product variant's price and compare-at price. Set a new regular price, modify or remove the compare-at price by passing null or an empty string.
Instructions
This tool updates the price and/or compare-at price of a specific product variant. It can set a new regular price, add/update a compare-at price, or remove a compare-at price by passing null or an empty string.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_price | No | The new price for the variant. If omitted, price is unchanged. | |
| variant_id | Yes | The Global ID (GID) of the product variant to update (e.g., 'gid://shopify/ProductVariant/98765') | |
| new_compare_at_price | No | The new compare-at price. Send null or empty string to remove it. If omitted, compare-at price is unchanged. |