Skip to content
← Back to Index

Command: order.createStaticShippingDiscount ​

Creates a static discount on a delivery's native shipping charge

Body
deliveryIduuid (optional) Deprecated: use fulfillmentId. The ID of the Delivery to set the shipping discount to
fulfillmentIduuid (optional) The ID of the Fulfillment to set the shipping 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)
descriptionstring (optional) Description/Name of discount. Should be meaningful to the customer as it's used on invoices and customer communication.

Exactly one of. deliveryId and fulfillmentId are alternatives — supply exactly one of them. Supplying both, or neither, is an INVALID_COMMAND error.

© 2026 Hantera AB. Org. no.: 559242-9582