Tool to create or update a single discount. Use when creating new discounts or modifying existing ones. Supports FIXED_PERCENT (percentage-based), FIXED_AMOUNT (fixed amount), and VARIABLE discount types.
nameRequiredstringThe discount name.
typeRequiredstringDiscount type. FIXED_PERCENT for percentage-based discounts, FIXED_AMOUNT for fixed amount discounts, or VARIABLE for variable discounts.
storesarrayArray of store IDs where discount is applicable. If not provided, discount applies to all stores.
discount_amountnumberFixed discount amount (required for FIXED_AMOUNT type). Value should be a positive number.
discount_percentnumberDiscount percentage (required for FIXED_PERCENT type). Value should be between 0 and 100.
restricted_accessbooleanWhether discount has restricted access (requires password verification to apply).
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.