Home > Uncategorized > Using the official #VIES API in c# for #VAT lookups

Using the official #VIES API in c# for #VAT lookups

 

Sometimes it surprises me how some companies repackage a free, official API, and then charge for it, VATAPI.com is a good example of this, the official VIES EU VAT commission offers a free webservice available here:

http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl

And you can use it from C# with some code as follows,

var vat = new vat.checkVatPortTypeClient();
bool blnValid;
string strName;
string strAddress;
vat.checkVat(ref strCountryCode, ref strVatNumber, out blnValid, out strName, out strAddress);

That’s what’s behind my VAT checker app for iOS:
https://itunes.apple.com/pl/app/vat/id524680827?mt=8

Advertisements
Categories: Uncategorized
  1. Owin
    May 13, 2016 at 12:26 pm

    Hi, nice post!

    I copied your code, but I get an error invalid_input on the checkvat() method. Am I missing some configuration?

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: