立即开始
Loyverse Tools

Loyverse Create Or Update Variant

通过 Aident Loadout 使用 Loyverse Tools 的 Loyverse Create Or Update Variant。执行前查看输入、输出、设置、价格和风险。

写入操作风险等级 2/5API 密钥连接

服务提供商说明

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…

价格与限制

价格
免费操作
统一支付
暂不支持

输入

  • 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
    必填
    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.

可观察输出

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

使用此操作的技能

相关使用场景

尚未关联经过验证的相关使用场景。

官方来源

服务提供商来源