# Customer groups

Managing customer groups in the e-shop.

## List of customer groups

 - [GET /api/customers/groups](https://api.docs.shoptet.com/shoptet-api/openapi/customer-groups/getlistofcustomergroups.md): Returns list of customer groups ordered by priority. List is not paginated.

## Creation of customer group

 - [POST /api/customers/groups](https://api.docs.shoptet.com/shoptet-api/openapi/customer-groups/createcustomergroup.md): Creates a new customer group with specified settings. The customer group name must be unique. Returns the full list of customer groups including the newly created one.

Note: To use wholesale features (registrationAllowed, wholesale, tableLayout, fullProfileRequired), the wholesale module must be active in the e-shop.

## Deletion of customer group

 - [DELETE /api/customers/groups/{id}](https://api.docs.shoptet.com/shoptet-api/openapi/customer-groups/deletecustomergroup.md): Is not possible to delete default customer group. Deletion of customer group will not delete customers assigned to this group, but they will be assigned to default customer group.

## Update of customer group

 - [PATCH /api/customers/groups/{id}](https://api.docs.shoptet.com/shoptet-api/openapi/customer-groups/updatecustomergroup.md): Updates an existing customer group with specified settings. Returns the full list of customer groups including the updated one.

Note: To use wholesale features (registrationAllowed, wholesale, tableLayout, fullProfileRequired), the Wholesale module must be active in the e-shop.

