A simple C# VAT Checker. Of a supplied Country Code and VAT Number, this library checks the VIES database (http://ec.europa.eu/taxation_customs/vies/).
I couldn't find a free REST implementation.
TriggerMe.VATChecker is available from NuGet.
dotnet add package TriggerMe.VATChecker
var vatQuery = new VATQuery();
var vatResult = await vatQuery.CheckVATNumberAsync("IE", "3041081MH"); // The Squarespace VAT Number
Console.WriteLine(vatResult.Valid); // Is the VAT Number valid?
Console.WriteLine(vatResult.Name); // Name of the organisation
Compile the library using dotnet build
. For reference, check the sample project.
Feel free to suggest edits, features, issues and pull requests.