A Shipping Method Tax Rate can be set if the Cart has the External TaxMode.

interface CartSetShippingMethodTaxRateAction {
    action: "setShippingMethodTaxRate";
    externalTaxRate?: ExternalTaxRateDraft;
    shippingKey?: string;
}

Properties

action: "setShippingMethodTaxRate"
externalTaxRate?: ExternalTaxRateDraft

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.