立即开始
Givebutter Tools

Givebutter Create Discount Code

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

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

服务提供商说明

Tool to create a discount code for a campaign. Use when you need to provide promotional pricing or discounts for campaign items.

价格与限制

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

输入

  • codestring
    必填
    The discount code string that users will enter. Must be unique within the campaign and no more than 255 characters.
  • typestring
    必填
    Type of discount: 'percentage' for a percentage-based discount (e.g., 10% off), or 'fixed' for a fixed amount discount (e.g., $10 off).
  • usesinteger
    Maximum number of times the discount code can be used. If not provided, there is no usage limit.
  • itemsarray
    List of item IDs that the discount code applies to. If not provided, the code applies to all items in the campaign.
  • activeboolean
    必填
    Whether the discount code is active and can be used immediately.
  • amountnumber
    必填
    Discount amount. For 'percentage' type, this is the percentage (e.g., 10 for 10% off). For 'fixed' type, this is the amount in cents (e.g., 1000 for $10.00 off).
  • campaigninteger
    必填
    The campaign ID to create the discount code for.
  • starts_atstring
    UTC datetime string when the discount code becomes active (ISO-8601 format). If not provided, the code is active immediately.
  • expires_atstring
    UTC datetime string when the discount code expires (ISO-8601 format). If not provided, the code will not expire.

可观察输出

  • 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

使用此操作的技能

相关使用场景

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

官方来源

服务提供商来源