Typescript SDK Type Docs
    Preparing search index...

    Interface CartSetLineItemPriceAction

    Sets the LineItem price and changes the priceMode to ExternalPrice LineItemPriceMode.

    interface CartSetLineItemPriceAction {
        action: "setLineItemPrice";
        externalPrice?: _Money;
        lineItemId?: string;
        lineItemKey?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    action: "setLineItemPrice"
    externalPrice?: _Money

    Value to set. If externalPrice is not given and the priceMode is ExternalPrice, the external price is unset and the priceMode is set to Platform.

    To set the money value in high precision, use [HighPrecisionMoneyDraft](ctp:api:type:HighPrecisionMoneyDraft).
    
    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.