---
id: "de_stnr"
kind: "datatype"
status: "draft"
is_pii: true
categories: ["finances"]
country: ["DE"]
langs: ["de"]
quality: 100
url: "http://registry.apicrafter.io/datatype/de_stnr"
---

# German tax number (Steuernummer) (`de_stnr`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Steuernummer (St.-Nr.), the number that a regional German tax office gives to taxable individuals and organisations. The regional form has 10 or 11 digits and is usually written with slashes; the form that is unique in all of Germany has 13 digits. It holds the tax office number, a district number, a serial number and a check digit. The tax identification number (Steuer-ID) and, for businesses, the W-IdNr. are replacing it.

- Personal data (PII): yes
- Categories: Finances and banking (finances)
- Countries: Germany (DE)
- Languages: German (de)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^(?:\d{2,3}[/ ]\d{3,4}[/ ]\d{4,5}|\d{10,11}|\d{13})$
```

## Examples

- `31 5565/0251` — Synthetic number in the documented format
- `810 576 0864` — Synthetic number in the documented format
- `31/556/50251` — The first example in its printed form
- `315565025` (invalid example) — One character too few

## Mappings

- presidio: `DE_TAX_NUMBER`
- schema_org: `taxID`
- stdnum: `de.stnr`

## Supported by tools

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

## Translations

- de: Steuernummer (St.-Nr.)
- ru: Налоговый номер Германии (Steuernummer): Номер, который региональная налоговая инспекция присваивает налогоплательщику, - 10-11 цифр в региональной форме или 13 цифр в общефедеральной.

## Sources

- wikipedia: <https://de.wikipedia.org/wiki/Steuernummer>
- other: <https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.de.stnr.html>
- other: <https://docs.dataprep.ai/user_guide/clean/clean_de_stnr.html>

## Quality

Score 100/100.

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