Validate European VAT
What's the best workflow to validate VAT? Currently,we're only using VIES and relative SOAP, but it seems not to 开发者_开发技巧be working all that well, as it fails my own VAT number and few others that I know are correct.
I'm open to third party, paid services as long as they offer a good standard of reliability.
The term "Validate VAT" could mean the following two things:
- Check VAT number for syntactical correctness - this means that the number follows the rules for the VAT number in the given EU member state. The rules for GB (United Kingdom) VAT numbers are different than the rules for DE (Germany) VAT numbers. Here you can check the format: http://ec.europa.eu/taxation_customs/vies/faqvies.do#item_11. This check can only tell you that the given VAT is correct but can't check if it belongs to an actual company;
- Check the VAT number in the VIES system - this means calling the official web service: http://ec.europa.eu/taxation_customs/vies/faqvies.do#item_18. If the check of know valid number fails you should contact your tax administration: http://ec.europa.eu/taxation_customs/vies/faqvies.do#item_12. This is the only "official" way to check if given VAT number is actually connected to a company;
- Important point: see the http://ec.europa.eu/taxation_customs/vies/faqvies.do#item_23. There is no single database (system) that contains all the valid and associated to companies VAT numbers. The VIES system is distributed system. Each member state (country) maintains a register of their own VAT numbers. The VIES web service queries (actually sends a "message" to the particular member state system) with a request for checking the VAT validity state.
You can also check these resources. They could contain useful information:
- https://web-beta.archive.org/web/20100414023719/http://www.halecomm.net:80/blog/2010/03/vat-number-validation-with-vies/
- http://www.braemoor.co.uk/software/vat.shtml
- https://web-beta.archive.org/web/20100528125946/http://sima-pc.com/nif.php
- http://code.google.com/p/vatnumber/
https://github.com/viruschidai/validate-vat is a node.js lib that calls the official soap service(http://ec.europa.eu/taxation_customs/vies/faqvies.do#item16) if you are running node.js.
精彩评论