Update variant
easystore_update_variantWRITE. Change one variant's price, compare-at price, cost price, SKU, barcode or enabled flag. Only the fields you pass change. To change stock use the inventory tools. Needs write_products. PUT /api/3.0/products/{product_id}/variants.json.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | No | SKU. | |
| price | No | Selling price in the store's primary currency. | |
| barcode | No | Barcode. | |
| cost_price | No | Cost price. | |
| is_enabled | No | Whether the variant can be sold. | |
| product_id | Yes | The product the variant belongs to. | |
| variant_id | Yes | Variant id. | |
| compare_at_price | No | Original price shown struck through. |