Command: order.addOrderLineFee
Adds a fee to an Order Line
Body
orderLineId | uuid The ID of the Order Line to add the fee to |
feeId | uuid (optional) Optional Id. Must be unique. |
feeType | string Opaque fee type key. Core does not interpret it; apps assign meaning. |
valueType | "absolute" | "percentage" Whether Value is an absolute amount or a percentage of the order line's value |
value | number The value of the fee. For percentage fees a factor (e.g. 0.1 = 10%) of the order line's value after discounts. For absolute fees including or excluding tax depending on the Order's TaxIncluded setting. |
description | string (optional) Description/Name of the fee. Should be meaningful to the customer as it's used on invoices and customer communication. |
tax | number (optional) Sets the tax amount of the fee. Can not be combined with taxFactor command field. |
taxFactor | number (optional) Sets the tax factor of the fee. If set, the fee's tax will be calculated automatically based on the fee's discounted total. Can not be combined with tax command field. |
dynamic | map of string to any value (optional) |