# Customer Group Hierarchy

When managing Sales data within Claret, a key data element is who you sell to. In order to define this, we begin with a Customer Group hierarchy. This allows you to structure your customers in whichever way makes sense for your business.

To build out your customer group hierarchy:

### Navigate to the Customer Group Hierarchy page

1. Go to the navigation sidebar.
2. Click on "Settings" menu item.
3. Click on "Master Data" menu item.
4. Click on "Customer Group Hierarchy".

<figure><img src="/files/sMmrRYPxGAhiCOvy6mhM" alt=""><figcaption></figcaption></figure>

If this is the first hierarchy you are creating, you will be able to select the 'Create hierarchy type' button on the main screen. Otherwise, go to the Options (...) menu and select 'Add Customer Group Hierarchy.

<figure><img src="/files/Ejn2AmWG4UGuXi6bKsHD" alt=""><figcaption><p>Adding a new Customer Group Hierarchy</p></figcaption></figure>

Give your hierarchy a name and description and select Save. Your hierarchy will then be created with an initial lowest level.

### Update the name of the initial lowest level

1. Click on the name of a level.
2. This will turn the text into an input box where you can update the name.
3. Make your update.
4. To save your update, simply click outside of the hierarchy-level rectangle you're updating.

![](/files/-MiXOLXD1bMOv6jAChkZ)

### Adding your first new level

When you're first creating a hierarchy, you will be provided the initial lowest level. When you want to add a new level, you'll be able to add a parent to this initial lowest level

1. Click into the "Add new level" rectangle and begin typing the name of the level.

![](/files/-MiXOaeibtPQfg5leu8d)

### Deleting a level

You can only delete the top most level in the hierarchy. You do this by clicking on the delete icon (trashcan) on the right-hand side of the level.

![](/files/-MiXSeV9m2iSCXigWqUD)

{% hint style="warning" %}
When adding or deleting rows, any customer groups you have set up will be affected. If you have any questions relating to the impact of adding or deleting hierarchy levels once you have all your customer groups in place, then contact Claret support to talk through your requirement
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.claret.app/master-data/customer-group-hierarchy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
