EU Tax Number Validation
Less than to read
Overview
Sage Business Cloud Accounting is available for businesses operating in seven different regions. Five of those seven regions trade within EU legislation and taxation. When an EU business is accounting for trade within the EU, it is vital that correct and accurate information relating to the tax registration numbers of their customers and suppliers is stored against the correct contacts.
To ensure the correct formats are used, SBCA will validate tax numbers set against a contact based on the ‘main_address’ ‘country_id’ and ‘country_group_id’. Failure to use the correct format would result in an HTTP 422 error response when trying to set the tax number information of a contact.
[
{
"$severity": "error",
"$dataCode": "RecordInvalid",
"$message": "The tax number does not match the main address.",
"$source": "tax_number"
}
]
This document aims to outline the different validation used by SBCA to ensure the data is entered in the correct format for the location of the target business.
EU Tax Number Formats
EU Country | VAT/NIF Validation | Formats | Country Code |
---|---|---|---|
Austria (1995) | First character is a U followed by 8 Numeric chars | U12345678 | AT |
Belgium (1958) | 10 numeric chars. If only 9 chars prefix with 0 | 1234567890 | BE |
Bulgaria (2007) | 9 or 10 Numeric chars | 123456789/1234567890 | BG |
Croatia (2013) | 11 Numeric chars | 12345678901 | HR |
Cyprus (2004) | 9 Chars, first 8 are numeric and the last char must be alpha | 12345678X | CY |
Czech Republic (2004) | 8,9 or 10 Numeric chars, if more than 10 chars entered delete the first 3 chars as these represent a tax code. | 12345678, 123456789, 1234567890 | CZ |
Denmark (1973) | 8 Numeric chars | 12345678 | DK |
Estonia (2004) | 9 Numeric chars | 123456789 | EE |
Finland (1995) | 8 Numeric chars | 12345678 | FI |
France (1958) | 11 chars may include alpha chars as first or second or first and second char(O & I not allowed). | 12345678901, X1234567890, XX123456789, 1X234567890 | FR |
Germany (1958) | 9 Numeric chars | 123456789 | DE |
Greece (1981) | 9 Numeric chars | 123456789 | GR |
Hungary (2004) | 8 Numeric chars | 12345678 | HU |
Ireland (1973) | 8 Or 9 chars, inc 1 or 2 alpha chars last or second and last or last two. | 12345678X, 1X234567X, 123456XX | IE |
Italy (1958) | 11 Numeric chars | 12345678901 | IT |
Latvia (2004) | 11 Numeric chars | 12345678901 | LV |
Lithuania (2004)) | 9 or 12 Numeric chars | 123456789, 12345678901 | LT |
Luxembourg (1958) | 8 Numeric chars | 12345678 | LU |
Malta (2004) | 8 Numeric chars | 12345678 | MT |
Netherlands (1958)) | 12 Chars, 11 numeric and the 10th is always B | 123456789B01 | NL |
Poland (2004) | 10 Numeric Chars | 1234567890 | PL |
Portugal (1986) | 9 Numeric chars | 123456789 | PT |
Romania (2007) | From 2 - 10 Numeric chars | 12, 123, 1234, 12345, 123456, 1234567, 12345678, 123456789, 1234567890 | RO |
Slovakia (2004) | 10 Numeric chars | 1234567890 | SK |
Slovenia (2004) | 8 Numeric chars | 12345678 | SI |
Spain (1986) | 9 chars including 1 or 2 alpha chars. First or last, or first and last | X12345678, 12345678X, X1234567X | ES |
Sweden (1995) | 12 Numeric chars | 123456789012 | SE |
United Kingdom (1973 - 2020) | 9 Numeric chars | 123456789 | GB |