Portuguese tax identification number (NIF)
ID pt_nif
DatatypePersonal data (PII)identifierDraft
This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).
Número de identificação fiscal, the 9-digit tax number of individuals and legal persons in Portugal (for legal persons also called NIPC). The first digit is not 0 and the last is a check digit. With the PT prefix it is the VAT number.
- Parent datatype
- EU VAT ID
vatin - Categories
- Finances and banking, Personally identifiable information
- Countries
- Portugal
- Languages
- Portuguese
- Microsoft Purview
Portugal tax identification number,EU Tax Identification Number (TIN),EU Tax identification number- Schema.org
taxID,vatID- python-stdnum
stdnum.pt.nif- ORG-ID.guide
- PT-NIPPC
- Quality
- 100/100
- Metacrafter rules
- no detection rule yet
- Supported by tools
- AWS Glue Sensitive Data Detection, Azure AI Language PII detection, DataPrep, Microsoft Purview Data Loss Prevention, python-stdnum, Snowflake sensitive data classification
Regular expression
^(?:PT[ -]?)?[1-9]\d{2} ?\d{3} ?\d{3}$
Python re syntax.
Examples
| Value | Description |
|---|---|
| 301211760 | Synthetic number with a valid check digit |
| 290048842 | Synthetic number with a valid check digit |
| 3012117607 invalid | One character too many |
Translations
| Language | Name | Description |
|---|---|---|
| Portuguese | Número de identificação fiscal (NIF) |
Sources
- wikipedia: https://pt.wikipedia.org/wiki/N%C3%BAmero_de_identifica%C3%A7%C3%A3o_fiscal
- other: https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.pt.nif.html
- other: https://docs.dataprep.ai/user_guide/clean/clean_pt_nif.html
Use this record
- Page URL:
http://registry.apicrafter.io/datatype/pt_nif - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/PT/finances/pt_nif.yamlon GitHub