{
  "id": "handelsregisternr",
  "kind": "datatype",
  "status": "stable",
  "name": "German commercial register number (Handelsregisternummer)",
  "doc": "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).",
  "is_pii": false,
  "categories": [
    "companies",
    "finances"
  ],
  "country": [
    "DE"
  ],
  "langs": [
    "de"
  ],
  "classification": "identifier",
  "regexp": "^(?:HRA|HRB|GnR|PR|VR) ?[1-9][0-9]{0,5}(?: ?[A-Z]{1,3})?$",
  "examples": [
    {
      "value": "HRA 11223",
      "description": "python-stdnum reference value (court Aachen)",
      "valid": true
    },
    {
      "value": "HRB 12345 B",
      "description": "Format of the court Berlin-Charlottenburg, with a suffix letter",
      "valid": true
    },
    {
      "value": "GnR 11223",
      "description": "Cooperative register",
      "valid": true
    },
    {
      "value": "HRC 44123",
      "description": "There is no section HRC",
      "valid": false
    },
    {
      "value": "H12345",
      "description": "The section is HRA or HRB, not a single letter",
      "valid": false
    }
  ],
  "mappings": {
    "orgid": "DE-CR",
    "presidio": "DE_HANDELSREGISTER",
    "stdnum": "de.handelsregisternummer"
  },
  "links": [
    {
      "type": "doc",
      "url": "https://www.handelsregister.de/"
    },
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/German_Trade_Register"
    },
    {
      "type": "other",
      "url": "https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.de.handelsregisternummer.html"
    }
  ],
  "translations": {
    "de": {
      "name": "Handelsregisternummer"
    },
    "ru": {
      "name": "Номер в торговом реестре Германии (Handelsregisternummer)",
      "doc": "Номер записи в торговом реестре, который ведут участковые суды, - раздел (HRA для единоличных предпринимателей и товариществ, HRB для GmbH, AG и других корпораций) и номер до шести цифр. Номер уникален только вместе с названием суда."
    }
  },
  "detected_by": {
    "tools": [
      "dataprep",
      "metacrafter",
      "presidio",
      "pythonstdnum"
    ],
    "metacrafter_rules": [
      {
        "rule": "dehrbfield",
        "type": "field",
        "match": "text",
        "file": "de/de_tax.yaml"
      },
      {
        "rule": "dehrbvalue",
        "type": "data",
        "match": "ppr",
        "file": "de/de_tax.yaml"
      }
    ]
  },
  "quality": {
    "score": 100,
    "missing": []
  },
  "source": {
    "path": "data/datatypes/DE/finances/handelsregisternr.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/DE/finances/handelsregisternr.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/DE/finances/handelsregisternr.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/handelsregisternr",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/handelsregisternr.json"
  }
}