Skip to content

Command: order.createStaticOrderLineDiscount

Back to Index

Creates a static discount on an order line

Body
orderLineIduuid

The ID of the line to set the discount to

discountIduuid (optional)

Optional Id. Must be unique.

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 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.

dynamicmap of string to any value (optional)
Back to Index