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

    Interface CartSetCustomerIdAction

    Setting the Cart's customerId can lead to updates on all its LineItem prices.

    If the Customer with the specified `id` cannot be found, this update action returns a
    [ReferencedResourceNotFound](ctp:api:type:ReferencedResourceNotFoundError) error.
    
    interface CartSetCustomerIdAction {
        action: "setCustomerId";
        customerId?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    action: "setCustomerId"
    customerId?: string

    id of an existing Customer. If the Customer is assigned to a CustomerGroup, this update action also sets the value for the customerGroup field. If empty, the update action removes the value for both customerId and customerGroup.