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.
价格与限制
- 价格
- 免费操作
- 统一支付
- 暂不支持
输入
- The discount code string that users will enter. Must be unique within the campaign and no more than 255 characters.codestring必填
- Type of discount: 'percentage' for a percentage-based discount (e.g., 10% off), or 'fixed' for a fixed amount discount (e.g., $10 off).typestring必填
- Maximum number of times the discount code can be used. If not provided, there is no usage limit.usesinteger
- List of item IDs that the discount code applies to. If not provided, the code applies to all items in the campaign.itemsarray
- Whether the discount code is active and can be used immediately.activeboolean必填
- 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).amountnumber必填
- The campaign ID to create the discount code for.campaigninteger必填
- UTC datetime string when the discount code becomes active (ISO-8601 format). If not provided, the code is active immediately.starts_atstring
- UTC datetime string when the discount code expires (ISO-8601 format). If not provided, the code will not expire.expires_atstring
可观察输出
- Data from the action executiondata必填
- Error if any occurred during the execution of the actionerrorstring
- Whether or not the action execution was successful or notsuccessfulboolean必填
使用此操作的技能
相关使用场景
尚未关联经过验证的相关使用场景。