Skip to content
← Back to Index

Command: order.createStaticOrderDiscount

Creates a static discount on an Order. An order discount value is distributed across all order lines and shipping fees proportionally to their value.

Body
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 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.
dynamicmap of string to any value (optional)
descriptionstring (optional) Description/Name of discount. Should be meaningful to the customer as it's used on invoices and customer communication.

© 2024 Hantera AB. All rights reserved.