Giter Site home page Giter Site logo

robinlaevaert / vies-dotnet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zapadi/vies-dotnet

0.0 0.0 0.0 245 KB

VIES (VAT Information Exchange System) dotNET API helps you to verify if EU VAT information exists and/or is valid

License: Apache License 2.0

Shell 0.20% C# 95.64% PowerShell 4.17%

vies-dotnet's Introduction

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.0

.NET CLI:

dotnet add package vies-dotnet-api --version 2.3.0

Package Reference

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

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.


Buy Me A Coffee

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

vies-dotnet's People

Contributors

zapadi avatar j-carvalho avatar lxbdev avatar robinlaevaert avatar sygmond avatar warredr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.