---
id: "handelsregisternr"
kind: "datatype"
status: "stable"
is_pii: false
categories: ["companies", "finances"]
country: ["DE"]
langs: ["de"]
quality: 100
url: "http://registry.apicrafter.io/datatype/handelsregisternr"
---

# German commercial register number (Handelsregisternummer) (`handelsregisternr`)

Number of an entry in the German commercial register (Handelsregister), which the local courts (Amtsgerichte) keep. It is the register section and a number of up to six digits: HRA for sole traders and partnerships such as OHG and KG, HRB for corporations such as GmbH and AG. Some courts add a letter suffix, as in HRB 12345 B. The cooperative (GnR), partnership (PR) and association (VR) registers number their entries the same way. A number is unique only together with the court, as in Amtsgericht München HRB 123456. HRA entries can name natural persons (sole traders).

- Personal data (PII): no
- Categories: Companies/business/organizations (companies), Finances and banking (finances)
- Countries: Germany (DE)
- Languages: German (de)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^(?:HRA|HRB|GnR|PR|VR) ?[1-9][0-9]{0,5}(?: ?[A-Z]{1,3})?$
```

## Examples

- `HRA 11223` — python-stdnum reference value (court Aachen)
- `HRB 12345 B` — Format of the court Berlin-Charlottenburg, with a suffix letter
- `GnR 11223` — Cooperative register
- `HRC 44123` (invalid example) — There is no section HRC
- `H12345` (invalid example) — The section is HRA or HRB, not a single letter

## Mappings

- orgid: `DE-CR`
- presidio: `DE_HANDELSREGISTER`
- stdnum: `de.handelsregisternummer`

## Metacrafter rules

2 rules: 1 match the field name, 1 match values.

- `dehrbfield` (field, `de/de_tax.yaml`)
- `dehrbvalue` (data, `de/de_tax.yaml`)

## Supported by tools

- `dataprep`
- `metacrafter`
- `presidio`
- `pythonstdnum`

## Translations

- de: Handelsregisternummer
- ru: Номер в торговом реестре Германии (Handelsregisternummer): Номер записи в торговом реестре, который ведут участковые суды, - раздел (HRA для единоличных предпринимателей и товариществ, HRB для GmbH, AG и других корпораций) и номер до шести цифр. Номер уникален только вместе с названием суда.

## Sources

- doc: <https://www.handelsregister.de/>
- wikipedia: <https://en.wikipedia.org/wiki/German_Trade_Register>
- other: <https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.de.handelsregisternummer.html>

## Quality

Score 100/100.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/handelsregisternr.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/DE/finances/handelsregisternr.yaml>
