PT_NIF (PT - NIF number)

From CDQ Wiki
DataModel:CDQ/Business Partner/Identifier/PT NIF
Jump to navigation Jump to search
Property Value
A technical identifier, unique in a certain context. Technical key PT_NIF
The country a linked concept is active or generally relevant for. Country scope PT (Portugal)
Language-specific name. Monolingual name NIF number (pt), NIF number (en)
Language-specific short name. Monolingual short name PT - NIF number (en)
Informal and comprehensive human-readable definition of a concept. Description NIF is for individuals, NIF means Tax Identification Number. The NIF number consists of 9 sequential digits (with a control digit). The structure of fiscal numbers depending on the type of taxpayer:
  • For individuals:
    • 1xx xxx xxx
    • 2xx xxx xxx
    • 3xx xxx xxx (not allocated yet)
  • For individuals – non-residents (only subject to final withholding at source):
    • 45x xxx xxx
Category of business identifiers. Identifier category Tax Number
Legacy property. A technical SAP code. SAP mapping STCD1

Formal definition

Details Informal and comprehensive human-readable definition of a concept. Description The type in terms of a categorization of regular expressions. Regular expression type TThe formal expression of a regular expression. Regular expression
000000000012QXXA0C3M0RJ1WZ Specifies the allowed formats for the NIF number (Portugal) IDENTIFIER_FORMAT
^([\s\.-]*)[123]([\s\.-]*\d){8}([\s\.-]*)$|^([\s\.-]*)4[\s\.-]*5([\s\.-]*\d){7}([\s\.-]*)$
000000000057H0CS5Z46ACS04Y The first digit indicates whether the record represents an individual, i.e.: 1-3 are regular people, 5 are companies, for non-residents (only subject to final withholding at source) the ID starts with "45" NATURAL_PERSON_IDENTIFICATION
^([\s\.-]*)[12345]([\s\.-]*\d){8}([\s\.-]*)$

Data quality rules

Rule Informal and comprehensive human-readable definition of a concept. Description nonetheless, we continue to offer the most recent available data., The release status in terms of development progress or maturity.<br/><code>EMPTY</code> (0): No feature considered yet, just a rough idea.<br/><code>IDEA</code> (1): Just an idea, not yet designed in detail.<br/><code>DESIGN</code> (2): Software design ready, development not yet started.<br/><code>DEVELOPMENT</code> (3): Software development in progress.<br/><code>ALPHA</code> (4): First functional release, in terms of a Minimal Viable Product (MVP).<br/><code>BETA</code> (5): Tested by selected users.<br/><code>RC</code> (6): Release candidate, fully tested, not yet used in production by many customers.<br/><code>LIVE</code> (7): Used in production by customers, fully monitored and supported.<br/><code>DEPRECATED</code> (-1): End of life planned, but still available.<br/><code>EOL</code> (-2): End of life, historic service, no longer available.<br/><code>BROKEN</code> (-3): Service was used in production but is currently not available. However, CDQ tries to repair or reactivate it.<br/><code>DISCONTINUED</code> (-4): The data source has ceased providing updates Release status Criticality<br/>Specifies how critical of the violation of a data quality rule.<br/>ERROR: Indicates a critical data quality rule violation that requires correction.<br/>WARNING: Indicates a potential data quality issue that should be reviewed.<br/>INFO: Indicates an informational finding with no immediate impact on data quality. Criticality
Identifier checkdigit invalid (NIF number (Portugal)) This rule checks the checkdigit of NIF number (Portugal). RELEASED ERROR
Identifier format invalid (NIF number (Portugal)) The NIF in Portugal consists of exactly 9 numerical digits. This rule checks the existence of exactly 9 digits without considering possible whitespaces, hyphens or dots that might be comprised in the identifier value. The rule also checks if the NIF number begins with "1", "2", "3" followed by 8 digits, or "45" followed by 7 digits. If there are less/more digits or non-numeric digits the rule is violated. RELEASED ERROR