This update action can only be used if a Customer is not assigned to a Cart. If a Customer is already assigned, the Cart has the same Customer Group as the assigned Customer.

Setting the Customer Group also updates the [LineItem](ctp:api:type:LineItem) `prices` according to the Customer Group.
interface CartSetCustomerGroupAction {
    action: "setCustomerGroup";
    customerGroup?: CustomerGroupResourceIdentifier;
}

Properties

action: "setCustomerGroup"

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

Generated using TypeDoc