Setting the Customer Group of the Customer produces the CustomerGroupSet Message.

To reflect the new Customer Group, this update action can result in [updates](/api/carts-orders-overview#cart-updates) to the most recently modified active Cart. When this occurs, the following errors can be returned: [MatchingPriceNotFound](ctp:api:type:MatchingPriceNotFoundError) and [MissingTaxRateForCountry](ctp:api:type:MissingTaxRateForCountryError).
interface CustomerSetCustomerGroupAction {
    action: "setCustomerGroup";
    customerGroup?: CustomerGroupResourceIdentifier;
}

Properties

action: "setCustomerGroup"

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