Create or Update Variant
Creates or updates a product variant in Loyverse.
Query
Comma-separated response fields to include.
Body
The read only internal id of the variant. If included in the POST request it will cause an update instead of a creating a new object.
The item id this variant is attached to.
The variant sku. It should be unique.
External reference id for the variant
The value of the first option for this variant. Required if option1_name is set for the item this variant is attached to.
The value of the second option for this variant. Required if option2_name is set for the item this variant is attached to.
The value of the third option for this variant. Required if option3_name is set for the item this variant is attached to.
The variant cost
The variant purchase cost
The default variant pricing type. If the value is `VARIABLE` than the price is specified at the time of a sale. If there are several stores in the account than the price of the variant in each store is equal to this value by default unless different value is specified in the `stores` array for a particular store.
The default variant price (only for `pricing_type: FIXED`) If there are several stores in the account than the price of the variant in each store is equal to this value by default unless different value is specified in the `stores` array for a particular store.
The list of values that are unique for each store
The time when this resource was created
The time when this resource was created
The time when this resource was created