Skip to content
← Back to Index

Command: order.addOrderLineFee ​

Adds a fee to an Order Line

Body
orderLineIduuid The ID of the Order Line to add the fee to
feeIduuid (optional) Optional Id. Must be unique.
feeTypestring 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
valuenumber 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.
descriptionstring (optional) Description/Name of the fee. Should be meaningful to the customer as it's used on invoices and customer communication.
taxnumber (optional) Sets the tax amount of the fee. Can not be combined with taxFactor command field.
taxFactornumber (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.
dynamicmap of string to any value (optional)

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