vies-dotnet-api
4.0.0
dotnet add package vies-dotnet-api --version 4.0.0
NuGet\Install-Package vies-dotnet-api -Version 4.0.0
<PackageReference Include="vies-dotnet-api" Version="4.0.0" />
<PackageVersion Include="vies-dotnet-api" Version="4.0.0" />
<PackageReference Include="vies-dotnet-api" />
paket add vies-dotnet-api --version 4.0.0
#r "nuget: vies-dotnet-api, 4.0.0"
#:package vies-dotnet-api@4.0.0
#addin nuget:?package=vies-dotnet-api&version=4.0.0
#tool nuget:?package=vies-dotnet-api&version=4.0.0
vies-dotnet-api
European (EU) VIES API VAT validation for dotnet based on the most current information from the official source
The vies-dotnet-api enables users to verify the validity of a specified VAT identification number for intra-Community goods or services transactions
Installing
The fastest way of getting started using Vies api is to install the NuGet package.
Package Manager:
Install-Package vies-dotnet-api -Version 4.0.0
.NET CLI:
dotnet add package vies-dotnet-api --version 4.0.0
Package Reference
<PackageReference Include="vies-dotnet-api" Version="4.0.0" />
Usage
Checking a VAT number using the vies-dotnet-api
Checking if an EU VAT number is valid
var result = ViesManager.IsValid("RO123456789");
or
var result = ViesManager.IsValid("RO","123456789");
Checking if an EU VAT number is active
var viesManager = new ViesManager();
var result = await viesManager.IsActiveAsync("RO123456789");
or
var result = await viesManager.IsActiveAsync("RO","123456789");
Selecting the VIES endpoint
Starting with v4, ViesManager calls the VIES REST (JSON) API by default. The legacy SOAP endpoint remains available by passing ViesApiEndpoint.Soap:
var viesManager = new ViesManager(ViesApiEndpoint.Soap);
The existing examples above work unchanged and use the REST endpoint by default.
Clarification
Since January 1, 2021 the UK is no longer a member of the European Union and as a result, the VIES service provided by the European Commission no longer validates VAT ID's for the UK.
Checking GB VAT number
...
var validationResult = await viesManager.IsActiveAsync("GB434031494");
will return the following message:
Great Britain(GB) is no longer supported by VIES services provided by EC since 2021-01-01 because of Brexit.
<a href="https://www.buymeacoffee.com/vXCNnz9" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/lato-yellow.png" alt="Buy Me A Coffee" height="37" ></a>
License
The API is released under the Apache 2 open-source license. You can use it for both personal and commercial purposes, build upon it and modify it.
Thanks
- JetBrains for my Open Source
licence
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. 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 is compatible. 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 is compatible. 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 is compatible. 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. |
-
.NETStandard 2.0
- System.Memory (>= 4.6.3)
- System.Text.Json (>= 10.0.11)
-
.NETStandard 2.1
- System.Text.Json (>= 10.0.11)
-
net10.0
- No dependencies.
-
net5.0
- System.Text.Json (>= 10.0.11)
-
net6.0
- No dependencies.
-
net7.0
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.