Spain (ES) VAT & VIES Validator
Instant sub-1ms offline checksum validation, syntax verification, and 2026 tax rate lookup for Spain (ES) VAT numbers.
Quick Technical Summary: Instant sub-1ms offline checksum validation, syntax verification, and 2026 tax rate lookup for Spain (ES) VAT numbers. Implementation conforms to EU Council Directive 2006/112/EC.
Specification & Structural Breakdown
In Spain, the Value Added Tax (VAT) identification number begins with the country prefix 'ES', followed by the national format: 8 digits plus letter, or letter plus 7 digits plus letter (NIF/CIF).
The number format is governed by national tax authorities and verified via strict syntax and structural pattern matching.
For 2026 tax calculations, the standard VAT rate in Spain is 21%, with applicable reduced rates of 10%, 4%.
| Parameter | Value | Details |
|---|---|---|
| Country Prefix | ES | ISO 3166-1 alpha-2 / VIES code |
| Format Structure | 8 digits plus letter, or letter plus 7 digits plus letter (NIF/CIF) | National syntax specification |
| Checksum Algorithm | Format & regex validation | Offline check digit formula |
| 2026 Standard VAT Rate | 21% | Standard statutory rate |
| 2026 Reduced VAT Rates | 10%, 4% | Applicable reduced & super-reduced rates |
Test Spain (ES) VAT & VIES Validator Live
Paste raw inputs up to 32KB and inspect deterministic parsed JSON in real-time across 330+ Cloudflare edge locations. Pure compute, zero cold-starts.
Parsed JSON Response Model
The edge microservice transforms input payloads into strongly-typed hierarchical JSON with zero cold starts:
{
"valid": true,
"countryCode": "ES",
"countryName": "Spain",
"vatNumber": "ES123456789",
"syntaxValid": true,
"checksumValid": true,
"rates": {
"standardRate": 21,
"reducedRates": [
10,
4
],
"effectiveYear": 2026
}
}
Copy-Paste Integration Code
Integrate this validator directly into your application using your production API key:
curl --request POST \
--url "https://eu-uk-vat-validator-rate-engine.stanzaapi.com/api/v1/vat/validate" \
--header "Content-Type: application/json" \
--header "x-api-key: YOUR_API_KEY" \
--data '{
"vatNumber": "DE123456789"
}'
const response = await fetch("https://eu-uk-vat-validator-rate-engine.stanzaapi.com/api/v1/vat/validate", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": process.env.API_KEY || "YOUR_API_KEY"
},
body: JSON.stringify({
"vatNumber": "DE123456789"
})
});
const data = await response.json();
console.log(data);
import requests
import json
url = "https://eu-uk-vat-validator-rate-engine.stanzaapi.com/api/v1/vat/validate"
headers = {
"Content-Type": "application/json",
"x-api-key": "YOUR_API_KEY"
}
payload = {
"vatNumber": "DE123456789"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
package main
import (
"bytes"
"fmt"
"io"
"net/http"
"os"
)
func main() {
url := "https://eu-uk-vat-validator-rate-engine.stanzaapi.com/api/v1/vat/validate"
payload := []byte(`{"vatNumber":"DE123456789"}`)
req, _ := http.NewRequest("POST", url, bytes.NewBuffer(payload))
req.Header.Add("Content-Type", "application/json")
req.Header.Add("x-api-key", os.Getenv("API_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Frequently Asked Questions & Technical Notes
The standard VAT rate in Spain is 21%. Certain goods and services qualify for reduced rates of 10%, 4%.
Yes. Our API executes deterministic mathematical checksums and regex format rules at the Cloudflare edge in <1ms, shielding your checkout flow from slow or offline European Commission VIES servers.
Related EU & UK VAT Validator & Rate Engine API Formats
Explore sibling specifications and standards in the same developer cluster:
Austria (AT) VAT & VIES Validator
Instant sub-1ms offline checksum validation, syntax verification, and 2026 tax rate lookup for Austria (AT) VAT numbers.
View Format →Belgium (BE) VAT & VIES Validator
Instant sub-1ms offline checksum validation, syntax verification, and 2026 tax rate lookup for Belgium (BE) VAT numbers.
View Format →Bulgaria (BG) VAT & VIES Validator
Instant sub-1ms offline checksum validation, syntax verification, and 2026 tax rate lookup for Bulgaria (BG) VAT numbers.
View Format →Cyprus (CY) VAT & VIES Validator
Instant sub-1ms offline checksum validation, syntax verification, and 2026 tax rate lookup for Cyprus (CY) VAT numbers.
View Format →