vies-dotnet-api 2.3.1

dotnet add package vies-dotnet-api --version 2.3.1                
NuGet\Install-Package vies-dotnet-api -Version 2.3.1                
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="vies-dotnet-api" Version="2.3.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add vies-dotnet-api --version 2.3.1                
#r "nuget: vies-dotnet-api, 2.3.1"                
#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.
// Install vies-dotnet-api as a Cake Addin
#addin nuget:?package=vies-dotnet-api&version=2.3.1

// Install vies-dotnet-api as a Cake Tool
#tool nuget:?package=vies-dotnet-api&version=2.3.1                

vies-dotnet-api

Build & Test NuGet package Nuget


European(EU) VIES API VAT validation for dotnet based on the most current information from the official source

The objective of this API is to allow persons involved in the intra-Community supply of goods or of services to obtain confirmation of the validity of the VAT identification number of any specified person.

Installing

The fastest way of getting started using Vies api is to install the NuGet package.

Package Manager:

Install-Package vies-dotnet-api -Version 2.3.1

.NET CLI:

dotnet add package vies-dotnet-api --version 2.3.1

Package Reference

<PackageReference Include="vies-dotnet-api" Version="2.3.1" />

Usage

Checking a VAT number using the vies-dotnet-api

Checking if a EU VAT number is valid

 var result = ViesManager.IsValid("RO123456789");

or

 var result = ViesManager.IsValid("RO","123456789");

Checking if a EU VAT number is active

var viesManager = new ViesManager();

var result = await viesManager.IsActiveAsync("RO123456789");

or

var result = await viesManager.IsActiveAsync("RO","123456789");

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

GitHub license

The API is released under 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 Resharper licence

  • AppVeyor for allowing free build CI services for Open Source projects

Product 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 was computed.  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. 
.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.
  • .NETStandard 2.0

    • No dependencies.
  • .NETStandard 2.1

    • No dependencies.
  • net5.0

    • No dependencies.
  • net6.0

    • No dependencies.
  • net7.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.

Version Downloads Last updated
2.3.1 23,854 3/31/2024
2.3.0 9,056 1/25/2024
2.2.1 1,005 12/23/2023
2.2.0 2,561 12/18/2023
2.1.0 123 12/18/2023
2.0.0 55,698 9/10/2022
2.0.0-beta-0068 138 9/11/2022
2.0.0-beta-0067 133 9/10/2022
2.0.0-beta-0066 136 9/10/2022
2.0.0-beta-0065 131 9/10/2022
2.0.0-beta-0064 132 9/10/2022
2.0.0-beta-0063 132 9/10/2022
2.0.0-beta-0061 131 9/10/2022
2.0.0-beta-0060 133 9/10/2022
1.1.0 5,844 9/2/2022
1.1.0-beta-0053 150 9/2/2022
1.0.2 55,481 3/1/2022
1.0.2-beta-0051 164 9/2/2022
1.0.2-beta-0050 178 3/2/2022
1.0.2-beta-0048 172 3/1/2022
1.0.2-beta-0029 3,699 11/5/2021
1.0.1 26,914 6/22/2021
1.0.1-beta-0028 234 11/5/2021
1.0.1-beta-0026 210 11/5/2021
1.0.1-beta-0025 204 11/5/2021
1.0.1-beta-0023 265 6/22/2021
1.0.0 1,823 12/5/2020
1.0.0-beta-0021 274 6/22/2021
1.0.0-beta-0014 327 12/5/2020
1.0.0-beta-0013 323 12/5/2020
1.0.0-beta-0011 446 8/12/2020
1.0.0-beta-0010 447 5/26/2020
1.0.0-beta-0009 404 3/20/2020
1.0.0-beta-0008 448 10/23/2019
1.0.0-beta-0007 381 10/17/2019
1.0.0-beta-0006 407 10/8/2019