Create or update variant
loyverse_upsert_variantCreate a new item variant or update an existing one by passing its variant_id. Adjust prices, costs, and store stock without rewriting the whole item.
Instructions
Create a variant on an existing item, or update one by passing variant_id. Use this to change a price without rewriting the whole item.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | No | ||
| cost | No | ||
| stores | No | ||
| barcode | No | ||
| item_id | Yes | The item this variant belongs to. | |
| variant_id | No | Omit to create. | |
| default_price | No | ||
| option1_value | No | ||
| option2_value | No | ||
| option3_value | No | ||
| purchase_cost | No | ||
| default_pricing_type | No |