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

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

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.

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.