Tool to create a new discount in CloudCart. Use when you need to add promotional discounts, sales, or special offers. Supports various discount types (fixed, percent, flat, shipping) and flexible targeting (all products, specific products, categories, or customers).
codestringOptional discount code that customers can use to apply the discount.
nameRequiredstringName of the discount for identification purposes.
activestringDiscount active status. Use 'yes' to activate or 'no' to keep inactive.
targetRequiredobjectTarget configuration specifying what the discount applies to.
date_endstringEnd date of the discount in YYYY-MM-DD format. If not provided, discount has no end date.
max_usesintegerMaximum number of times this discount can be used in total.
date_startRequiredstringStart date of the discount in YYYY-MM-DD format.
order_overintegerMinimum order amount required for the discount to apply (in smallest currency unit).
type_valueRequiredintegerValue 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_typeRequiredstringType of discount to apply. 'fixed' for fixed amount, 'percent' for percentage, 'flat' for flat discount, 'shipping' for shipping discount.
dataRequiredData from the action execution
errorstringError if any occurred during the execution of the action
successfulRequiredbooleanWhether or not the action execution was successful or not
API key connection. Risk level 2 of 5.
Free Action
No published Skills explicitly reference this Action yet.