Command: order.createStaticShippingDiscount
Back to IndexCreates a static discount on a shipping fee
Body
deliveryId | uuid The ID of the Delivery to set the shipping discount to |
discountId | uuid (optional) Optional Id. Must be unique. |
isPercentage | boolean (optional) Whether the Value should be treated as a percentage. If true, Value should be a factor (e.g. 0.1 = 10%). |
value | number 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. |
dynamic | map of string to any value (optional) |