https://github.com/zapadi/vies-dotnet
VIES (VAT Information Exchange System) dotNET API helps you to verify if EU VAT information exists and/or is valid
https://github.com/zapadi/vies-dotnet
api dotnet dotnetcore eu net validation validator vat vat-identification vat-information-exchange-system vat-number vat-validation vies
Last synced: 2 months ago
JSON representation
VIES (VAT Information Exchange System) dotNET API helps you to verify if EU VAT information exists and/or is valid
- Host: GitHub
- URL: https://github.com/zapadi/vies-dotnet
- Owner: zapadi
- License: apache-2.0
- Created: 2017-08-02T08:53:29.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2025-09-02T20:31:23.000Z (9 months ago)
- Last Synced: 2026-04-03T04:52:54.311Z (2 months ago)
- Topics: api, dotnet, dotnetcore, eu, net, validation, validator, vat, vat-identification, vat-information-exchange-system, vat-number, vat-validation, vies
- Language: C#
- Homepage:
- Size: 354 KB
- Stars: 26
- Watchers: 2
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# vies-dotnet-api
[](https://github.com/zapadi/vies-dotnet/actions/workflows/build.yml)
[](https://www.nuget.org/packages/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 3.1.0
```
**.NET CLI:**
```
dotnet add package vies-dotnet-api --version 3.1.0
```
**Package Reference**
```
```
# 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");
```
### 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***.
****
## License
[](https://github.com/zapadi/vies-dotnet/blob/master/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](http://www.jetbrains.com/) for my Open Source [](http://www.jetbrains.com/resharper/) licence
* AppVeyor for allowing free build CI services for Open Source projects