Check VAT-number

Hi,

I need code to check a entered VAT-number in the countries of the EU.

Have anyone some suggestions?

Subject: Check VAT-number

Koos,

Do you mean to check if the field has been populated , or check the format of the number entered?

Mike

Subject: RE: Check VAT-number

Sorry. I mean to check the format of the number entered. Is the VAT-number a valid number?

Subject: RE: Check VAT-number

To check if the field has content is no problem: I am a Notes developer. But I have to check the validity of the VAT-number. Are there rules to check if the VAT-number is a valid number (To check if the VAT-number belongs to a certain company is not a point).

Subject: RE: Check VAT-number

Are there rules to check if the VAT-number is a valid number?

This depends from country to country. See the url in my other post for a description of all the formats used in the EU.

Keep in mind that VAT numbers with a valid structure still may be unassigned and hence be invalid for accounting & taxes.

cheers,

Bram

Subject: Check VAT-number

Koos,

Check http://europa.eu.int/comm/taxation_customs/vies/en/vieshome.htm for a EU webpage that can check VAT number for validity (and depending on the member state return more information).

With a java agent it should be relatively easy to use this particular service for validating VAT numbers, but read the FAQ and the Disclaimer first – it’s really not designed for automating a large number of lookups.

cheers,

Bram