{
  "id": "euvat",
  "kind": "datatype",
  "status": "stable",
  "name": "EU VAT number (VIES format)",
  "doc": "VAT identification number of a business registered for VAT in a European Union member state, in the compact form that the VIES system checks. It is the 2-letter code of the member state followed by the national number without spaces or punctuation. Greece uses EL rather than GR, and businesses in Northern Ireland use XI for trade in goods with the EU. Each member state has its own fixed structure for the national part, from 8 to 12 characters (2 to 10 digits in Romania); the national records describe them and their check digits.",
  "parent": "vatin",
  "children": [
    "at_vat",
    "bg_vat"
  ],
  "is_pii": true,
  "categories": [
    "finances"
  ],
  "country": [
    "EU"
  ],
  "langs": [
    "en"
  ],
  "classification": "identifier",
  "regexp": "^(?:ATU\\d{8}|BE[01]\\d{9}|BG\\d{9,10}|CY\\d{8}[A-Z]|CZ\\d{8,10}|DE\\d{9}|DK\\d{8}|EE\\d{9}|EL\\d{9}|ES(?:[A-Z]\\d{7}[A-Z0-9]|\\d{8}[A-Z])|FI\\d{8}|FR[0-9A-HJ-NP-Z]{2}\\d{9}|HR\\d{11}|HU\\d{8}|IE(?:\\d{7}[A-W][A-IW]?|\\d[A-Z+*]\\d{5}[A-W])|IT\\d{11}|LT(?:\\d{9}|\\d{12})|LU\\d{8}|LV\\d{11}|MT\\d{8}|NL\\d{9}B\\d{2}|PL\\d{10}|PT\\d{9}|RO[1-9]\\d{1,9}|SE\\d{10}01|SI\\d{8}|SK\\d{10}|XI(?:\\d{9}|\\d{12}|GD\\d{3}|HA\\d{3}))$",
  "examples": [
    {
      "value": "ATU13585627",
      "description": "Austria, python-stdnum reference value",
      "valid": true
    },
    {
      "value": "DE136695976",
      "description": "Germany, python-stdnum reference value",
      "valid": true
    },
    {
      "value": "ESB64717838",
      "description": "Spain, company, python-stdnum reference value",
      "valid": true
    },
    {
      "value": "FR40303265045",
      "description": "France, python-stdnum reference value",
      "valid": true
    },
    {
      "value": "IT00743110157",
      "description": "Italy, python-stdnum reference value",
      "valid": true
    },
    {
      "value": "NL004495445B01",
      "description": "Netherlands, python-stdnum reference value",
      "valid": true
    },
    {
      "value": "PL8567346215",
      "description": "Poland, python-stdnum reference value",
      "valid": true
    },
    {
      "value": "SE556012579001",
      "description": "Sweden, Aktiebolaget Volvo",
      "valid": true
    },
    {
      "value": "SK2022749619",
      "description": "Slovakia, python-stdnum reference value",
      "valid": true
    },
    {
      "value": "XI432525179",
      "description": "Northern Ireland, value published online",
      "valid": true
    },
    {
      "value": "GR072830684",
      "description": "Greece uses the prefix EL, not GR",
      "valid": false
    },
    {
      "value": "DE 136695976",
      "description": "The VIES form has no spaces",
      "valid": false
    },
    {
      "value": "DE13669597",
      "description": "One digit short for Germany",
      "valid": false
    }
  ],
  "mappings": {
    "fibo": "BE/LegalEntities/FormalBusinessOrganizations/ValueAddedTaxIdentificationNumber",
    "google_dlp": "VAT_NUMBER",
    "schema_org": "vatID",
    "stdnum": "eu.vat"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/VAT_identification_number"
    },
    {
      "type": "doc",
      "url": "https://ec.europa.eu/taxation_customs/vies/"
    },
    {
      "type": "doc",
      "url": "https://ec.europa.eu/taxation_customs/vies/faq.html"
    },
    {
      "type": "doc",
      "url": "https://ec.europa.eu/taxation_customs/taxation/vat/how_vat_works/identifiers/index_en.htm"
    },
    {
      "type": "other",
      "url": "https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.eu.vat.html"
    }
  ],
  "translations": {
    "en": {
      "name": "VAT identification number"
    },
    "fr": {
      "name": "Numéro d'identification à la TVA intracommunautaire"
    },
    "de": {
      "name": "Umsatzsteuer-Identifikationsnummer"
    },
    "es": {
      "name": "Número de identificación del IVA intracomunitario"
    },
    "it": {
      "name": "Numero di identificazione IVA"
    },
    "nl": {
      "name": "BTW-identificatienummer"
    },
    "pt": {
      "name": "Número de identificação de IVA"
    }
  },
  "detected_by": {
    "tools": [
      "googledlp",
      "greatexpectations",
      "metacrafter",
      "pythonstdnum"
    ],
    "metacrafter_rules": [
      {
        "rule": "vatfield",
        "type": "field",
        "match": "text",
        "file": "eu/eu_tax.yaml"
      },
      {
        "rule": "vatvalue",
        "type": "data",
        "match": "ppr",
        "file": "eu/eu_tax.yaml"
      }
    ]
  },
  "quality": {
    "score": 100,
    "missing": []
  },
  "source": {
    "path": "data/datatypes/EU/finances/euvat.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/EU/finances/euvat.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/EU/finances/euvat.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/euvat",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/euvat.json"
  }
}