Set variant price
set_variant_priceUpdates a Medusa product variant's base price for one currency while preserving all other prices. Use it to change a variant price without affecting price rules.
Instructions
Sets the base price (no price rules) of a variant in one currency. All other prices of the variant are preserved. The amount is in major currency units (e.g. 49.99 = 49.99 EUR).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | ||
| product_id | Yes | ||
| variant_id | Yes | ||
| currency_code | Yes | E.g. eur, usd |