立即开始
Loyverse Tools

Loyverse Create Or Update Discount

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

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

服务提供商说明

Creates a single discount with a FIXED_PERCENT, FIXED_AMOUNT, or VARIABLE type.

价格与限制

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

输入

  • namestring
    必填
    The discount name.
  • typestring
    必填
    Discount type. FIXED_PERCENT for percentage-based discounts, FIXED_AMOUNT for fixed amount discounts, or VARIABLE for variable discounts.
  • storesarray
    Array of store IDs where discount is applicable. If not provided, discount applies to all stores.
  • discount_amountnumber
    Fixed discount amount (required for FIXED_AMOUNT type). Value should be a positive number.
  • discount_percentnumber
    Discount percentage (required for FIXED_PERCENT type). Value should be between 0 and 100.
  • restricted_accessboolean
    Whether discount has restricted access (requires password verification to apply).

可观察输出

  • 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

使用此操作的技能

相关使用场景

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

官方来源

服务提供商来源