Customer groups (*Kundengruppen*) give the end customers of your clients their own prices. Every group has a **price rule**: it starts from a price of the article master, takes a discount or adds a surcharge and rounds the result. For single articles an **article price** replaces the rule – as a fixed price or with its own percentage, from a quantity on (tier) and for a period you choose. A group can apply to the end customers of all your clients or of one client.

![Screenshot: Customer groups overview with key figures, filters and one card per group](/products/images/customer-groups-overview.png)

!!!
Orders use the customer groups: positions that arrive without price get the price of the group of the order – see [Customer groups in orders](#customer-groups-in-orders). **Payment term** and **Minimum order value** are stored for later use.
!!!

## Before you start

- Your user needs the permission **Customer groups & prices** (*Kundengruppen & Preise*) to see the page and **Create / Edit** (*Anlegen / Bearbeiten*) to change it. Ask your administrator if the menu entry is missing.
- The articles need the prices the rule starts from – net selling price, gross selling price, net purchase price or recommended retail price. See [Prices](/products/prices.md).
- A group for one client needs that client. See [Clients](/company/clients.md).

## Step by step

### Create a customer group

1. Go to **Catalogue › Customer groups** (*Katalog › Kundengruppen*) and click **Create customer group** (*Kundengruppe anlegen*).
2. Fill in the master data: **Name**, **Shortname** (*Kürzel*, e.g. B2B – for imports and interfaces), **Applies to the end customers of** (*Gilt für die Endkunden von*) – all clients or one –, **Order** (*Reihenfolge*), **Description** (*Beschreibung*) and a **Color** (*Farbe*).
3. Switch on **Active** (*Aktiv*). Switch on **Default group** (*Standardgruppe*) for the group that end customers without a group of their own belong to.
4. Set the price rule (see below) and the conditions.
5. Click **Create customer group** (*Kundengruppe anlegen*). You see *"Customer group saved"* (*Kundengruppe gespeichert*), and the page shows the saved group with the section for article prices.

![Screenshot: Master data of a customer group with name, shortname, clients, description, color and the switches Active and Default group](/products/images/customer-groups-master-data.png)

### Set the price rule

1. Under **Price rule** (*Preisregel*), choose the **Starting price** (*Ausgangspreis*): **Net selling price** (*VK netto*), **Gross selling price** (*VK brutto*), **Net purchase price** (*EK netto*) or **RRP** (*UVP*). Gross selling price and RRP give gross prices, the other two net prices.
2. Choose **Discount** (*Rabatt*) or **Surcharge** (*Aufschlag*) and enter the percentage – or move the slider.
3. Choose the **Rounding** (*Rundung*): to the cent, to 5 cents, price ending ,90 / ,95 / ,99 or to full euros. A price ending takes the nearest price with that ending; on a tie the higher one.
4. Check the result on the right under **How the group calculates** (*So rechnet die Gruppe*). Type any amount into the example field to see the price of the group and the difference.

![Screenshot: Price rule with starting price Net selling price, rounding Price ending ,99 and a discount of 15 %](/products/images/customer-groups-price-rule.png)

![Screenshot: "How the group calculates" with the live example 100,00 € → 84,99 €](/products/images/customer-groups-example.png)

### Add an article price or a tier

1. Open the group and scroll to **Article prices & tiers** (*Artikelpreise & Staffeln*).
2. Click **Add article price** (*Artikelpreis anlegen*).
3. Search the article by article number, EAN or name.
4. Enter **from quantity** (*ab Menge*): 1 means always, a higher number makes a tier.
5. Choose **Fixed price** (*Festpreis*) and enter the price per piece, or **Percent** (*Prozent*) and enter a percentage on the starting price (e.g. -20 for 20 % discount).
6. Optional: **Valid from** / **Valid until** (*Gültig ab* / *Gültig bis*) and a **Note** (*Notiz*).
7. The box at the bottom shows the starting price, the price by rule and the **Price of the group** (*Preis der Gruppe*). Click **Save** (*Speichern*).

![Screenshot: Dialog "Edit article price" with article, from quantity 12, fixed price 21,90 € and the calculated price of the group](/products/images/customer-groups-price-dialog.png)

The table lists every article price with the starting price, the price by rule, the price of the group with its difference and the state **active**, **planned** or **expired**. Use the pencil to change an article price and the bin to delete it – the article then gets the price of the rule again.

![Screenshot: Table "Article prices & tiers" with two tiers, a percentage price, a planned and an expired price](/products/images/customer-groups-article-prices.png)

### Check the prices of an article

At the bottom of the overview, the **Price preview** (*Preisvorschau*) shows what one article costs today in every active customer group that applies to it. Choose the article and the quantity; each line shows the price, where it comes from (**Rule** or **Article price** / **Tier from …**) and the difference to the starting price.

![Screenshot: Price preview of HS-GIN-07 for 12 pieces with the tier price of the retail partners, the surcharge of the hotels and the gross price of private customers](/products/images/customer-groups-preview.png)

## Customer groups in orders

Every order gets a customer group. X-Sitter takes the first one that applies:

1. The group chosen on the order – in the [order form](/orders/create-order.md) (**Customer group**, *Kundengruppe*) or sent through the API (field `customer_group` with the shortname).
2. The group set on the connection the order came through – **Customer group of the orders** (*Kundengruppe der Aufträge*) in the settings of the import job, see [Jobs and connections](/administration/jobs-and-connections.md).
3. The default group of the client, else the default group for all clients.

Switched-off groups and groups of other clients never apply. The group found is stored on the order.

**What gets a price:** when an order comes in – from a shop, a marketplace, an ERP system, a file, the API or the order form – every position **without price** gets the price of its group for the ordered quantity. Prices that came with the order (for example from the shop) stay as they are. Parts of a bill of materials and returns are left out. A net group writes the net price and the gross price with the VAT rate of the position; a gross group the other way round.

In the order form you can also take the prices of the group over on purpose: **Apply customer group prices** (*Preise der Kundengruppe übernehmen*) writes them into every position, also over existing prices.

## How the price is found

1. Of the article prices of the group for the article, X-Sitter takes the ones that are valid today and whose **from quantity** the order reaches.
2. Among them, the one with the **highest quantity** wins.
3. Without such an article price, the **rule** applies to the starting price.
4. If the article has no starting price, it has a price in this group only through a fixed price.

A fixed price is taken as it is. A percentage article price is rounded like the rule. A group for one client only applies to the articles of that client; a group for all clients applies to every article.

## Fields and options

| Field | Meaning | Required |
|---|---|---|
| **Name** | Name of the group, at most 128 characters | Yes |
| **Shortname** (*Kürzel*) | Letters, digits, `-` and `_`, at most 32 characters, unique; written in capitals | No |
| **Applies to the end customers of** (*Gilt für die Endkunden von*) | **All clients** (*Allen Mandanten*) or one client. A client user only creates groups for its own end customers | No |
| **Order** (*Reihenfolge*) | Order on the overview | No |
| **Color** (*Farbe*) | Color of the badge and the card | Yes |
| **Active** (*Aktiv*) | Switched-off groups are left out of the price preview | – |
| **Default group** (*Standardgruppe*) | One per set of clients; setting it on a group takes it from the previous one. Must be active | – |
| **Starting price** (*Ausgangspreis*) | Price of the article master the rule starts from | Yes |
| **Adjustment** (*Anpassung*) | Discount or surcharge, -100 % to +1000 % | Yes |
| **Rounding** (*Rundung*) | To the cent, to 5 cents, price ending ,90 / ,95 / ,99, to full euros | Yes |
| **Payment term** (*Zahlungsziel*) | Days until an invoice is due (stored, not used yet) | No |
| **Minimum order value** (*Mindestbestellwert*) | Smallest net order value per order (stored, not used yet) | No |

## Notes and troubleshooting

| Message | Cause | What to do |
|---|---|---|
| *Another customer group already has the shortname …* | The shortname is taken | Choose another shortname |
| *A default group must be active* | Default group is switched on, the group is switched off | Switch the group on or remove the default mark |
| *There already is a price from … pieces for this article* | Same article and quantity twice | Edit the existing article price |
| *The article was not found or does not belong to the client of the group* | Article of another client in a group for one client | Choose an article of that client |
| *Article has no …* (price preview) | The starting price is missing in the article master | Maintain the price or add a fixed price |
| *You can view this customer group, but not change it.* | You work for a client and the group applies to all clients | Ask the logistician |

## Related pages

- [Prices](/products/prices.md)
- [Create an order](/orders/create-order.md)
- [Jobs and connections](/administration/jobs-and-connections.md)
- [Consignment](/products/consignment.md)
- [Clients](/company/clients.md)
