Tool to create or update a single item variant in Loyverse. Use when you need to add product variations (like size, color) or modify existing variant details. If variant_id is provided, it updates the existing variant; otherwise, it creates a new one. Note: The parent item must…
skustringStock Keeping Unit identifier for the variant. Used for inventory tracking.
costnumberCost price of the variant for profit margin calculations.
storesarrayArray of store-specific settings including pricing, availability, and stock levels for each store where this variant is sold.
barcodestringBarcode for the variant, used for scanning at point of sale.
item_idRequiredstringThe ID of the item this variant belongs to. The item must have option names defined (option1_name, option2_name, or option3_name) before variants can be created.
variant_idstringThe ID of the variant to update. If provided, updates existing variant instead of creating new one. Also referred to as 'id' in some API responses.
default_pricenumberDefault selling price for the variant. Used unless overridden by store-specific pricing.
option1_valuestringValue for the first option (e.g., 'Small', 'Medium', 'Large'). Required if the parent item has option1_name defined.
option2_valuestringValue for the second option (e.g., 'Red', 'Blue'). Required if the parent item has option2_name defined.
option3_valuestringValue for the third option. Required if the parent item has option3_name defined.
purchase_costnumberPurchase cost of the variant from suppliers.
default_pricing_typestringPricing type for a variant.
dataRequiredData from the action execution
errorstringError if any occurred during the execution of the action
successfulRequiredbooleanWhether or not the action execution was successful or not
API key connection. Risk level 2 of 5.
Free Action
No published Skills explicitly reference this Action yet.