立即开始
Cloudcart Tools

Cloudcart Create Discount

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

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

服务提供商说明

Create a new CloudCart discount for promotions, sales, or special offers. Supports fixed, percent, flat, and shipping discount types, with targeting options including all products, specific products, categories, and vendors.

价格与限制

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

输入

  • codestring
    Optional discount code that customers can use to apply the discount.
  • namestring
    必填
    Name of the discount for identification purposes.
  • activestring
    Discount active status. Use 'yes' to activate or 'no' to keep inactive.
  • targetobject
    必填
    Target configuration specifying what the discount applies to.
  • date_endstring
    End date of the discount in YYYY-MM-DD format. If not provided, discount has no end date.
  • max_usesinteger
    Maximum number of times this discount can be used in total.
  • date_startstring
    必填
    Start date of the discount in YYYY-MM-DD format.
  • order_overinteger
    Minimum order amount required for the discount to apply (in smallest currency unit).
  • type_valueinteger
    必填
    Value of the discount. For 'percent' type, use basis points (e.g., 1000 = 10%). For 'fixed' type, use the amount in smallest currency unit (e.g., cents).
  • discount_typestring
    必填
    Type of discount to apply. 'fixed' for fixed amount, 'percent' for percentage, 'flat' for flat discount, 'shipping' for shipping discount.

可观察输出

  • 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

使用此操作的技能

相关使用场景

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

官方来源

服务提供商来源