All Projects Project

VIES VAT Validation

EU-wide VAT ID validation in real time

The Challenge

An online retailer operating across Europe sold to B2B customers in all 27 EU member states. Correctly applying the VAT exemption for intra-community supplies requires a valid VAT ID from the buyer. Incorrect or invalid IDs regularly led to wrong tax calculations, corrective invoices and frustrated customers.

Our Solution

We integrated real-time VIES validation directly into the ordering process:

Real-Time Validation

Validation at the moment the order is entered:

  • VIES query via the official service of the European Commission
  • Validation in under 2 seconds
  • Automatic detection of the country prefix and format check
  • Support for all 27 EU member states plus Northern Ireland (XI)

Smart Tax Logic

Automatic application of the correct tax rules:

  • Valid VAT ID → automatic tax exemption (reverse charge)
  • Invalid VAT ID → order is charged with local VAT
  • Own country → no exemption, national tax is applied
  • Non-EU country → export rules

Fallback & Resilience

Reliability even during VIES outages:

  • Local cache of the most recent successful validations
  • Automatic retry on timeout
  • Manual approval queue if VIES is unavailable for an extended period
  • Subsequent batch validation of pending checks

The Result

  • 98.5% of validations completed in under 2 seconds
  • Corrective invoices reduced by 94%
  • Fully automatic tax exemption without manual intervention
  • Complete audit trail for every single validation

Highlights

✓ EU VIES SOAP/REST API
✓ Real-time validation at order entry
✓ Automatic tax exemption
✓ 27 EU member states
✓ Fallback when VIES is unavailable
✓ Audit trail for tax audits