Skip to content

Command: order.setStaticValueDiscount

Back to Index

Updates the value of an existing static discount

Body
discountIduuid

The static discount to update

isPercentageboolean (optional)

Whether the Value should be treated as a percentage. If true, Value should be a factor (e.g. 0.1 = 10%).

valuenumber

The value of the manual discount. If IsPercentage is true, this should be a factor (e.g. 0.1 = 10%). For non-percentage discounts, this will be treated as including Tax or not depending on the Order’s TaxIncluded setting.

Back to Index