Typescript SDK Type Docs
    Preparing search index...

    Interface CustomerSetCustomerGroupAction

    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#update-a-cart) 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;
    }

    Hierarchy (View Summary)

    Index

    Properties

    action: "setCustomerGroup"

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