Commencer maintenant
Loyverse Tools

Loyverse Create Or Update Variant

Utilisez Loyverse Create Or Update Variant avec Loyverse Tools via Aident Loadout. Vérifiez les entrées, sorties, la configuration, le tarif et le risque avant exécution.

Action d'écritureNiveau de risque 2 sur 5Connexion par clé API

Description du fournisseur

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…

Tarifs et limites

Tarif
Action gratuite
Paiement unifié
Non pris en charge actuellement

Entrées

  • skustring
    Stock Keeping Unit identifier for the variant. Used for inventory tracking.
  • costnumber
    Cost price of the variant for profit margin calculations.
  • storesarray
    Array of store-specific settings including pricing, availability, and stock levels for each store where this variant is sold.
  • barcodestring
    Barcode for the variant, used for scanning at point of sale.
  • item_idstring
    Obligatoire
    The 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_idstring
    The 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_pricenumber
    Default selling price for the variant. Used unless overridden by store-specific pricing.
  • option1_valuestring
    Value for the first option (e.g., 'Small', 'Medium', 'Large'). Required if the parent item has option1_name defined.
  • option2_valuestring
    Value for the second option (e.g., 'Red', 'Blue'). Required if the parent item has option2_name defined.
  • option3_valuestring
    Value for the third option. Required if the parent item has option3_name defined.
  • purchase_costnumber
    Purchase cost of the variant from suppliers.
  • default_pricing_typestring
    Pricing type for a variant.

Sortie observable

  • data
    Obligatoire
    Data from the action execution
  • errorstring
    Error if any occurred during the execution of the action
  • successfulboolean
    Obligatoire
    Whether or not the action execution was successful or not

Skills qui utilisent cette Action

Cas d’usage associés

Aucun cas d’usage associé et vérifié pour le moment.

Source officielle

Source du fournisseur