VatValidation 1.0.0

dotnet add package VatValidation --version 1.0.0
                    
NuGet\Install-Package VatValidation -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="VatValidation" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="VatValidation" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="VatValidation" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add VatValidation --version 1.0.0
                    
#r "nuget: VatValidation, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package VatValidation@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=VatValidation&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=VatValidation&version=1.0.0
                    
Install as a Cake Tool

Validation of VAT or company registration numbers

  • VatNumber structure
  • TryParse (some numbers can match multiple countries and not return, try with countrycode first)
  • FormatStripped for unique key in database (use together with CountryCode)
  • FormatNational readable format of national number
  • FormatVat readable format of VAT number
  • FormatVatStripped stripped to minimal VAT representation for data (format not yet finall)

Countries still work in progress

Country Prefix Name Short name Length Checksum FormatNational FormatStripped FormatVat FormatVatStripped Status
Austria AT Umsatzsteuer-Identifikationsnummer UID-Nummer 9 (U + 8) luhn 10 +4 ATU10223006 ATU10223006 ATU10223006 ATU10223006 Verified
Belgium BE BTW identificatienummer BTW-nr 10 (old 9) mod 97 0566.988.259 0566988259 BE 0566988259 BE0566988259 Verified
Bulgaria BG - - - - - - - - Not yet supported
Croatia HR - - - - - - - - Not yet supported
Cyprus CY - - - - - - - - Not yet supported
Czechia CZ - - - - - - - - Not yet supported
Denmark DK Momsregistreringsnummer CVR 8 mod 11 25 31 37 63 25313763 DK 25313763 DK25313763 Verified
Estonia EE Käibemaksukohustuslase number KMKR 9 mod 10 100931558 100931558 EE 100931558 EE100931558 Verified no official source
Finland FI Arvonlisäveronumero ALV nro 8 mod 11-2 0201724-4 02017244 FI 02017244 FI02017244 Verified official
France FR Numéro de TVA intracommunautaire / SIREN N° TVA 11, 9 mod 97, luhn 10 404 833 048 404833048 FR83 404 833 048 FR83404833048 Verified
Germany DE - - - - - - - - Not yet supported
Greece EL - - - - - - - - Not yet supported
Hungary HU - - - - - - - - Not yet supported
Ireland IE - - - - - - - - Not yet supported
Italy IT Imposta sul valore aggiunto Partita IVA 11 luhn 10 07643520567 07643520567 IT07643520567 IT07643520567 Verified
Latvia LV Pievienotās vērtības nodokļa reģistrācijas numurs PVN 11 mod 11 40003521600 40003521600 LV40003521600 LV40003521600 No official source
Lithuania LT Pridėtinės vertės mokestis mokėtojo kodas PVM kodas 9, 12 mod 11 119511515 119511515 LT119511515 LT119511515 No official source
Luxembourg LU Numéro d'identification à la taxe sur la valeur ajoutéee No. TVA 8 mod 89 15027442 15027442 LU 15027442 LU15027442 Verified
Malta MT - - - - - - - - Not yet supported
Netherlands NL Btw-nummer Btw-nr. 12 mod 11 / mod 97 NL004495445B01 004495445B01 NL004495445B01 NL004495445B01 Verified
Norway NO Organisasjonsnummer Orgnr 9 mod 11 977 074 010 977074010 NO 977 074 010 NO977074010 Verified
Poland PL - - - - - - - - Not yet supported
Portugal PT Número de Identificação de Pessoa Coletiva NIPC 9 mod 11 999999990 999999990 PT 999999990 PT999999990 Verified
Romania RO - - - - - - - - Not yet supported
Slovakia SK - - - - - - - - Not yet supported
Slovenia SI - - - - - - - - Not yet supported
Spain ES Número de Identificación Fiscal NIF 9 luhn 10 B12345674 B12345674 ES B12345674 ESB12345674 Verified no official
Sweden SE Momsnummer Momsnr. 12, 10 luhn 10 101010-1010 1010101010 SE 1010101010 01 SE101010101001 Verified official
Switzerland CH Numéro d'identification suisse des entreprises (IDE) MWST/TVA/IVA 10 mod 11 CHE-109.322.551 CHE109322551 CHE-109.322.551 CHE109322551 Verified
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 523 9/17/2025
0.26.0 2,020 3/18/2025
0.25.0 1,156 1/21/2025
0.0.13 10,194 8/29/2024
0.0.12 1,430 4/12/2024
0.0.11 829 1/9/2024
0.0.10 230 12/13/2023
0.0.9 162 12/7/2023
0.0.2 163 11/28/2023
0.0.1-alpha 120 11/27/2023