Home / Use cases
EU VAT API Integration Guides
Practical guides for integrating EU VAT validation into your product. Each guide covers the implementation steps, working code examples, and API response handling — scoped to the platform or workflow you're building on.
All guides use the TaxID API: GET /api/v1/validate/:country/:vat — VIES-backed, sub-10ms for cached results, 100 free validations/month.
Platform integrations (Stripe, Shopify, WooCommerce) show how to add VAT validation to existing checkout flows with minimal code changes — typically a single API call before the payment intent is confirmed.
Code and framework guides provide copy-pasteable examples in Node.js, Python, PHP, React, and Next.js that handle the three response states —active,invalid, andservice_unavailable — correctly.
Business workflow guides cover less obvious cases: bulk validation for ERP imports, periodic re-validation for marketplace sellers, and DAC7-compliant onboarding flows where a validated VAT number is a prerequisite for payout.
Country-specific guidesdocument the format quirks that trip developers — Germany's Umsatzsteuer-Identifikationsnummer prefix rules, France's two-character SIREN-derived key, and Spain's three distinct identifier types (NIF, CIF, NIE).
Platform integrations
Add EU VAT validation to existing checkout and commerce platforms.
Stripe EU VAT: Validate Tax IDs Before Charging Customers
Stripe EU VAT integration guide: validate EU VAT numbers server-side before applying zero-rate B2B exemptions in Stripe Checkout. Ensures you only exempt valid registered EU businesses from VAT.
UK VAT validation in Shopify B2B
Validate UK VAT numbers for B2B customers in Shopify. Required under UK Making Tax Digital rules for businesses selling cross-border to UK companies.
WooCommerce Spain NIF/CIF validation
Validate Spanish NIF and CIF numbers in WooCommerce checkout. Automatically apply B2B tax exemptions for verified Spanish businesses and autonomos.
Code & framework guides
Language-specific examples for Node.js, Python, PHP, React, and Next.js.
Node.js VAT API — EU VAT Validation in Node.js
Node.js VAT API integration guide: implement EU VAT number validation in a Node.js or Express application using the TaxID REST API. Includes TypeScript types, error handling for VIES downtime, and caching strategy.
Python VAT API — EU VAT Validation in Python / Django
Validate EU VAT numbers in Python applications using the TaxID REST API. Works with Django, FastAPI, Flask, and any HTTP-capable Python code.
EU VAT validation in PHP / Laravel
Validate EU VAT numbers in PHP applications with Laravel, Symfony, or plain PHP. Includes service class, validation rule, and database storage pattern.
Real-time VAT validation in React checkout
Add real-time VAT number validation to your React checkout form. Validates as the user types, shows company name confirmation, and handles loading/error states.
Next.js server action for VAT validation
Use Next.js 14 Server Actions to validate EU VAT numbers server-side in a React form. No API route needed — validation runs securely on the server with full TypeScript types.
Business workflows
Implement VAT validation across billing systems, onboarding flows, and compliance pipelines.
EU VAT compliance for SaaS billing
Handle EU VAT for SaaS subscriptions. Validate customer VAT numbers at signup, determine B2B vs B2C tax treatment, and generate compliant invoices with the correct VAT amount.
DAC7 marketplace seller VAT verification
Verify seller VAT numbers during marketplace onboarding for DAC7 compliance. EU platforms must collect and validate tax IDs for sellers earning above the reporting threshold.
ERP supplier VAT number validation
Validate supplier VAT numbers in SAP, NetSuite, or Xero during onboarding. Prevent invalid numbers from entering your accounting system and causing rejected invoices.
Bulk VAT number validation via CSV import
Validate hundreds of EU VAT numbers in batch using parallel API requests. Ideal for CRM data cleansing, supplier audits, and initial data migrations.
B2B Invoice VAT Validation — Validate VAT Numbers Before Invoicing
Automatically validate customer VAT numbers before generating B2B invoices. Prevent invalid numbers from appearing on invoices that could be rejected by tax authorities.
EU OSS VAT validation for digital services
Validate customer registration status for EU One Stop Shop (OSS) digital services compliance. Determine whether B2B reverse charge applies or you must collect and remit local VAT.
Build a tax compliance platform with VAT validation
Integrate EU VAT validation as a core module in a tax compliance SaaS platform. Includes webhook notifications, audit logging, and multi-tenant architecture patterns.
Country-specific guides
Format details, common edge cases, and validation quirks for major EU markets.
Validate German USt-IdNr. (DE VAT numbers)
Specifically validate German Umsatzsteuer-Identifikationsnummern (USt-IdNr.) via VIES. Understand the difference between the local Steuernummer and the EU VAT number.
Validate French TVA numbers (FR VAT)
Validate French Numéro de TVA intracommunautaire. French VAT numbers have a unique format with alphanumeric characters that can include letters O and I.
Validate Dutch BTW numbers (NL VAT)
Validate Dutch BTW (Belasting over de Toegevoegde Waarde) numbers. Dutch VAT numbers include a unique B-sequence that identifies subsidiaries within a group.
Validate Spanish NIF and CIF numbers
Validate Spanish tax identifiers (NIF/CIF/NIE) through the VIES system. Understand the different formats for companies, individuals, and foreign nationals in Spain.
Validate Italian Partita IVA
Validate Italian Partita IVA numbers for B2B transactions. Includes local checksum validation (Luhn algorithm) and VIES lookup for active registration status.
Industry use cases
VAT validation requirements by business type — SaaS, e-commerce, marketplaces, accounting tools, and HR platforms.
EU VAT Validation for SaaS Businesses
SaaS companies selling B2B across EU borders must validate customer VAT numbers to legally apply reverse charge. Integrate the TaxID API into your checkout and subscription flow to avoid VAT liability on unverified customers.
EU VAT Validation for E-commerce
E-commerce stores selling B2B across EU borders must verify customer VAT numbers before applying zero-rate treatment. Use the TaxID API at checkout to validate EU VAT numbers in real time and prevent costly misapplied tax exemptions.
B2B Marketplace EU VAT Compliance
B2B marketplaces facilitating cross-border EU sales must verify buyer VAT numbers to determine the correct tax treatment for each transaction. The TaxID API provides real-time VIES validation so you can apply zero-rate correctly at scale.
VAT Validation API for Accounting and Invoicing Tools
Accounting and invoicing software that handles EU B2B transactions can use the TaxID API to validate customer VAT numbers before generating zero-rated invoices. Prevent incorrectly zero-rated invoices and give users an auditable validation record.
EU VAT Validation for HR and Payroll Platforms
HR and payroll platforms that invoice EU clients for employer-of-record or contractor services must verify client VAT numbers before applying cross-border zero-rate treatment. Use the TaxID API to validate EU VAT numbers at client onboarding and on recurring invoices.
More guides
Additional framework, platform, and workflow guides.
EU VAT validation in Go
Validate EU VAT numbers in Go using the standard net/http package. No external dependencies required — works with any Go 1.18+ project, from simple CLIs to high-throughput microservices.
EU VAT validation in Java
Validate EU VAT numbers in Java using the built-in HttpClient (Java 11+) and Jackson for JSON deserialization. Works with Spring Boot, Quarkus, Micronaut, or any Java 11+ application.
EU VAT validation in Ruby / Rails
Validate EU VAT numbers in Ruby or Ruby on Rails using the standard Net::HTTP library. Zero gem dependencies — integrates cleanly with ActiveRecord models and Rails service objects.
EU VAT validation in .NET / C#
Validate EU VAT numbers in .NET 6+ and C# using HttpClient and System.Text.Json. Includes async/await pattern, strongly-typed response record, and IHttpClientFactory-ready setup.
EU VAT validation in Cloudflare Workers
Run EU VAT validation at the Cloudflare edge with Workers. Store your API key as a Worker secret, validate VAT numbers globally with no cold starts, and cache results at the edge.
EU VAT validation in Deno
Validate EU VAT numbers in Deno using the built-in fetch API and TypeScript. Deployable to Deno Deploy with zero configuration — no npm install, no package.json needed.
EU VAT validation on Vercel Edge
Add EU VAT validation to your Next.js app using Vercel Edge Functions. The edge runtime runs your validation globally with sub-50ms cold starts and built-in Next.js caching via next: { revalidate }.
VAT Validation for Anti-Money Laundering (AML) Compliance
AML frameworks require businesses to verify the identity and tax registration of counterparties before entering high-value transactions. Use the TaxID API to validate VAT numbers as part of your AML due diligence workflow, with a full audit trail per transaction.
Tax ID Verification for KYC (Know Your Customer) Workflows
KYC for B2B onboarding requires verifying that counterparty businesses are legitimately registered. Use the TaxID API to validate VAT and Tax ID numbers as part of your KYC workflow, with real-time registry lookup and structured audit records.
VAT Number Verification for B2B Vendor and Supplier Onboarding
Validating supplier VAT numbers during vendor onboarding prevents incorrect tax treatment on purchase invoices, flags shell suppliers, and satisfies EU record-keeping requirements. Use the TaxID API to automate VAT checks in your vendor management workflow.
Vue.js VAT Validation: Real-time Tax ID Checks with Composition API
Integrate real-time EU VAT number validation into Vue.js 3 applications using the Composition API. Custom composable, debounced input, and a server-side proxy pattern to protect your API key.
Next.js VAT API Integration: Server Components & API Routes
Integrate VAT number validation into Next.js 14 applications using both App Router API routes (server-side proxy) and React Server Components. Covers client-side UX and server-side billing flows.
VAT API Rate Limiting & Caching: Production Best Practices
Optimise VAT API usage with effective caching and rate limit management. Covers in-memory cache, Redis distributed cache, request deduplication, quota tracking, and graceful 429 handling.
Ready to integrate?
100 validations/month free. No credit card. API key in two minutes.