Can be used if the Cart has the External TaxMode.

interface CartSetCustomLineItemTaxRateAction {
    action: "setCustomLineItemTaxRate";
    customLineItemId?: string;
    customLineItemKey?: string;
    externalTaxRate?: ExternalTaxRateDraft;
    shippingKey?: string;
}

Properties

action: "setCustomLineItemTaxRate"
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.

externalTaxRate?: ExternalTaxRateDraft

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

shippingKey?: string

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