If you are doing cross border business in the European Union, then will have to deal with so called “VAT IDs”. I’ve written a small example how to validate VAT ID’s from a DElphi 2007 program.

VAT ID’s identify business entities for taxation purposes. You have
to put your own and  the ID of your business partner onto your
invoices. Basically you are responsible to check the validity of VAT
IDs.

There is an official Webservice that can be used to validate VAT ID’s. The “VAT-ID Checker” example shows how to consume that Webservice. It was a snap to implement in Delphi 2007 and there is nothing special to note :-)

Source code : VAT-Checker.zip

Executable: VAT-Checker.exe.zip

21/07/2010 Update: The webservice’s has been changed by EU a while ago. Source and EXE are updated to reflect these changes.

  • steffenwagner

    Hi Olaf,

    your VAT ID validation tool worked fine until recently. Now it always returns “error”.
    Maybe the source website form changed?
    Will you fix the tool?

    Best regards
    Steffen

  • http://www.monien.net/blog Olaf Monien

    It appears they have taken this service offline or moved it to a different place. If you find its new location I would re-compile it for you – and make the service URL configurable then :-)

    Regards / Grüße,
    Olaf Monien
    ——————————————
    EDV-Beratung Monien

    Embarcadero Technology Partner
    Delphi Experts Chairman
    http://www.delphiexperts.net
    http://www.monien.net

    Am 12.03.2010 um 05:42 schrieb Disqus:

  • steffenwagner

    Hello Olaf,

    as per VIES FAQ (http://ec.europa.eu/taxation_customs/vies/faqvi…)
    there seems to be a new service for automatic VAT inquiries:

    “Q16: Is it possible to have an open interface to the Commission's web
    site?
    A SOAP service, offering the same functionality as the interactive
    service is available. The disclaimer, help and FAQ pages are also
    applicable for this service. Its WSDL file can be obtained here. Since
    March 5th 2010 the endpoint of the SOAP service has changed and is now
    http://ec.europa.eu/taxation_customs/vies/servi…. Any
    technical question related to this service can be submitted to TAXUD –
    Vies on Internet”

    Can you make something out of it?

    Best regards,
    Steffen Wagner

  • http://www.monien.net/blog/index.php/2010/07/update-vat-id-validation-with-delphi/ Olaf’s Thoughts About Development » Update: VAT ID Validation with Delphi

    [...] A while ago I posted a small tool that validates a VAT ID through an official Web service provided by the EU. In the meantime they change the Web service. The downloads below updated to reflect that change and I also updated to Delphi 2010. [...]

blog comments powered by Disqus
CodeGear Technology Partner