@gradientedge/commercetools-utils
    Preparing search index...

    Interface CartSetLineItemTaxAmountAction

    Can be used if the Cart has the ExternalAmount TaxMode. This update action sets the taxedPrice and taxRate on a Line Item and must be used after any price-affecting change occurs.

    interface CartSetLineItemTaxAmountAction {
        action: "setLineItemTaxAmount";
        externalTaxAmount?: ExternalTaxAmountDraft;
        lineItemId?: string;
        lineItemKey?: string;
        shippingKey?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    action: "setLineItemTaxAmount"
    externalTaxAmount?: ExternalTaxAmountDraft

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

    lineItemId?: string

    id of the LineItem to update. Either lineItemId or lineItemKey is required.

    lineItemKey?: string

    key of the LineItem to update. Either lineItemId or lineItemKey is required.

    shippingKey?: string

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