Can be used if the Cart has the ExternalAmount TaxMode.

interface CartSetCustomLineItemTaxAmountAction {
    action: "setCustomLineItemTaxAmount";
    customLineItemId?: string;
    customLineItemKey?: string;
    externalTaxAmount?: ExternalTaxAmountDraft;
    shippingKey?: string;
}

Properties

action: "setCustomLineItemTaxAmount"
customLineItemId?: string

id of the CustomLineItem to update. Either customLineItemId or customLineItemKey is required.

customLineItemKey?: string

key of the CustomLineItem to update. Either customLineItemId or customLineItemKey is required.

externalTaxAmount?: ExternalTaxAmountDraft

Value to set. If empty, any existing value is removed.

shippingKey?: string

key of the ShippingMethod used for this Custom Line Item. This is required for Carts with Multiple ShippingMode.