EU_VAT_ID_UK (UK - VAT identification number)

From CDQ Wiki
DataModel:CDQ/Business Partner/Identifier/EU VAT ID UK
Jump to navigation Jump to search
Property Value
A technical identifier, unique in a certain context. Technical key EU_VAT_ID_UK
The country a linked concept is active or generally relevant for. Country scope GB (United Kingdom of Great Britain and Northern Ireland)
Language-specific name. Monolingual name Value added tax identification number (en)
Language-specific short name. Monolingual short name UK - VAT identification number (en)
Category of business identifiers. Identifier category Tax Number
Legacy property. A technical SAP code. SAP mapping STCEG

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
REGEXP_0161 Specifies the allowed formats for the European value added tax identifier (United Kingdom) IDENTIFIER_FORMAT GB((GD[0-4]\d{2})

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 Specifies how critical of the violation of a data quality rule. The following levels are defined:<br/><code>ERROR</code>: The violation (e.g. missing information) puts a process at risk or hinders regular processing of data.<br/><code>WARNING</code>: The violation does not hinder regular processing of data but represents semantically defective data.<br/><code>INFO</code>: The data quality rule has not uncovered a data defect, but some information is available that might be interesting for the user.<br/> Criticality
Deprecated identifier found (European value added tax identifier (United Kingdom)) This rule checks whether there is still a European value added tax identifier (United Kingdom) maintained. These identifiers are no longer valid since the Brexit. LIVE INFO
Identifier format inaccurate (European value added tax identifier (United Kingdom)) This rule checks the syntax, i.e. format of the European value added tax identifier (United Kingdom) with respect to the reference format. Any deviation (i.e. white spaces where they are not specified) result in a violation.

European value added tax identifier (United Kingdom) consists of code GB followed by either:

  • A) standard: 9 digits (block of 3, block of 4, block of 2 – e.g. GB999 9999 73),
  • B) branch traders: 12 digits (as for 9 digits, followed by a block of 3 digits),
  • C) government departments: the letters GD then 3 digits from 000 to 499 (e.g. GBGD001)
  • D) health authorities: the letters HA then 3 digits from 500 to 999 (e.g. GBHA599)

This rule checks possible whitespaces, hyphens or dots that might be comprised in the identifier value. If there are any whitespaces, hyphens or dots then the rule is violated.

INFO
Identifier format invalid (European value added tax identifier (United Kingdom)) This rule checks the format of European value added tax identifier (United Kingdom). Country code GB followed by either:

standard: 9 digits (block of 3, block of 4, block of 2 – e.g. GB999 9999 73) branch traders: 12 digits (as for 9 digits, followed by a block of 3 digits) government departments: the letters GD then 3 digits from 000 to 499 (e.g. GBGD001) health authorities: the letters HA then 3 digits from 500 to 999 (e.g. GBHA599)

For the 9-digit scheme the rules checks presence of exactly 9 digits without any non-digit characters.

For the short scheme (government departments and health authorities) the rules has the following restrictions:

  • for prefix "GD": 3 digits after the prefix should be from 000 to 499,
  • for prefix "HA": 3 digits after the prefix should be from 500 to 999.
LIVE INFO
Identifier missing (European value added tax identifier (United Kingdom)) Each legal entity in the United Kingdom should have a European value added tax identifier. INFO
Identifier unknown (European value added tax identifier (United Kingdom)) United Kingdom European VAT IDs are exchanged via a central system provisioned by the European Commission (i.e. VAT Information Exchange System (VIES)). This rule checks whether the United Kingdom EU VAT ID is known to this central exchange system. If it is not available, the identifier is treated as invalid and the data quality rule is violated. ERROR
Invalid checksum of EU VAT ID UK (United Kingdom) This rule checks the checksum of the European VAT number in the United Kingdom. For the standard identifier format (9 characters) validation of the 8th and 9th checksum digits follows the logic:
  • R1 = (8*C1 + 7*C2 + 6*C3 + 5*C4 + 4*C5 + 3*C6 + 2*C7 + C8C9) modulo 97
  • R2 = ((8*C1 + 7*C2 + 6*C3 + 5*C4 + 4*C5 + 3*C6 + 2*C7 + C8C9) + 55) modulo 97
  • Either R1 or R2 must equal to zero.

The following restrictions should be considered:

MOD97 (R1):

  • Not in 0100000...0999999
  • Not in 9490001...9700000
  • Not in 9990001...9999999

MOD9755 (R2):

  • Not in 0000001...0100000
  • Not in 0100001...1000000
ERROR
Mandatory identifier not maintained (United Kingdom) A business partner in the United Kingdom should have at least a European value added tax identifier (United Kingdom) (still supported for now), a VAT registration number (United Kingdom) or a Company registration number (United Kingdom). If none of these three is available the record is invalid. LIVE ERROR