A Shipping Method tax amount can be set if the Cart has the ExternalAmount TaxMode.

interface CartSetShippingMethodTaxAmountAction {
    action: "setShippingMethodTaxAmount";
    externalTaxAmount?: ExternalTaxAmountDraft;
    shippingKey?: string;
}

Properties

action: "setShippingMethodTaxAmount"
externalTaxAmount?: ExternalTaxAmountDraft

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

shippingKey?: string

key of the ShippingMethod to update. This is required for Carts with Multiple ShippingMode.