Command: order.updateFee
Updates a fee, regardless of its scope (delivery or order line). Non-specified fields will be left unchanged.
Body
feeId | uuid The ID of the Fee to update |
feeType | string (optional) Opaque fee type key. Core does not interpret it; apps assign meaning. |
valueType | "absolute" | "percentage" (optional) Whether Value is an absolute amount or a percentage of the fee's scope base. |
value | number (optional) The value of the fee. For percentage fees a factor (e.g. 0.1 = 10%). |
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. Clears taxFactor. |
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. |