W System / VIES is down: how to handle MS_UNAVAILABLE and timeouts
VIES is down: how to handle MS_UNAVAILABLE and timeouts
Short answer: When VIES or a member state's database is down, VIES returns errors such as MS_UNAVAILABLE, MS_MAX_CONCURRENT_REQ, SERVICE_UNAVAILABLE or TIMEOUT. These mean unknown, not invalid. The W System API retries with backoff; if the country is still down it answers from that country's free official source (Poland Biała lista, Czech ARES, Finnish YTJ VAT register, French SIRENE) or from the last successful VIES result with its date. Every fallback answer has fallback: true, names its source and legal_status, and has no VIES consultation number. If neither exists you get member_state_unavailable with valid: null. Live status: VIES status page.
Key facts
- VIES is a gateway: every check is forwarded to the national tax administration of the number's country, so one country can be down while others work. See the live VIES status page.
- Fallback order: 1) retry VIES with exponential backoff, 2) official national source, 3) last successful VIES answer for that number (labelled with its date), 4)
member_state_unavailable. - National sources used: 🇵🇱 PL Biała lista podatników VAT (Ministry of Finance, wykazpodatnikowvat.mf.gov.pl; about 100 searches/day per IP), 🇨🇿 CZ ARES (VAT register record status), 🇫🇮 FI YTJ open data (VAT register entry), 🇫🇷 FR Recherche d'entreprises / SIRENE (company active + VAT-key signal; this integration does not use a French free authoritative intra-EU VAT-registration API).
- Countries without a national fallback in this integration today: DE (BZSt eVatR only accepts German requester VAT IDs), ES (needs an electronic certificate), IT (captcha web form), NL, BE (web UI / registered open-data dump), HU (NAV technical user) and DK (credentials). For those, only the dated last VIES result can be used.
- National registers confirm the domestic VAT or company status. That usually matches EU (intra-community) VAT status but not always, so a fallback is not audit proof for zero-rating. Re-check in VIES when it is back.
- Fallbacks never include a consultation number. A cached result keeps the earlier number in
original_consultation_number, and that number belongs to the earlier check. - Decision rule: live valid/invalid is a VIES answer; invalid_format is a bad request; fallback=true means a national source or earlier VIES answer was used (read fallback_type, source, legal_status and date); member_state_unavailable with valid null means unknown — hold VAT-dependent decisions, do not treat as invalid.
- Retries: use exponential backoff with jitter, limit both attempt count and elapsed time, and throttle by member state. Do not turn an outage into a retry storm; queue a later recheck after the interactive budget expires.
- Evidence to keep: submitted and normalised VAT, source, status, request timestamp, cache/fallback flags, fallback_type, legal_status, and consultation_number when present. A previous VIES consultation number belongs to the earlier check, never to a new national-source fallback.
- Disable fallbacks with
fallback=false(REST) oruseFallback: false(Apify Actor). On the Apify Actor, fallback rows are not charged.
Examples
Check, then branch on status and fallback
curl "https://api.wsystem.dev/verify?vat=PL5260250995"
# status: valid | invalid | invalid_format | member_state_unavailable | error
# if fallback == true: read source, legal_status, fallback_type (national_source | last_vies_result)Real response (live data, 2026-10-17):
{
"input": "IE6388047V",
"vat": "IE6388047V",
"country_code": "IE",
"vat_number": "6388047V",
"status": "valid",
"valid": true,
"name": "GOOGLE IRELAND LIMITED",
"address": "3RD FLOOR, GORDON HOUSE, BARROW STREET, DUBLIN 4",
"request_date": "2026-10-17T06:07:32.092Z",
"consultation_number": "WAPIAAAAaFIeQCDg",
"requester": "HU33119856",
"source": "VIES (European Commission)",
"cached": true
}Shape of a national-source fallback (PL, while VIES is down)
{"vat": "PL5260250995", "status": "valid", "valid": true, "fallback": true,
"fallback_type": "national_source", "consultation_number": null,
"source": "Biała lista podatników VAT (Ministry of Finance / KAS), wykazpodatnikowvat.mf.gov.pl",
"legal_status": "Polish VAT status: Czynny (Czynny = active VAT payer, Zwolniony = exempt)",
"name": "ORANGE POLSKA SPÓŁKA AKCYJNA", "vies_error": "MS_UNAVAILABLE"}VIES availability per country (free, cached 5 min)
curl "https://api.wsystem.dev/vies/status"A decision table for checkout or invoice jobs
| Response | Meaning | Safe application action |
|---|---|---|
Live VIES, valid: true | Upstream reports the number valid; read date and evidence | Apply your transaction-specific tax policy; retain source/time and consultation number if supplied |
Live VIES, valid: false | Upstream answered invalid | Ask the user to correct the number or review the registration; do not confuse this with an outage |
invalid_format | Request is malformed | Normalize or check the input; do not retry endlessly |
fallback: true | National source or earlier VIES answer used | Read fallback_type, legal_status, source and date; set a revalidation task |
member_state_unavailable, valid: null | No sufficiently available answer | Mark pending/unknown; retry with bounded backoff and review VAT-dependent decisions |
Do not blindly accept or reject an order, or zero-rate, because a single Boolean was true or false. If you accept an order during an outage, follow the tax policy agreed with your adviser and revalidate before relying on missing evidence.
Fixture tests before production
Use local fixtures for (1) valid live VIES, (2) invalid live VIES, (3) invalid format, (4) member-state outage with national-source fallback, (5) dated last-VIES fallback, (6) unavailable/null with no fallback. Assert that outages never become false-invalid, that fallback responses never create a new consultation number, and that stale evidence cannot pass your fresh-evidence branch. These are suggested local tests, not undocumented W System query flags.
Pricing
| Channel | Price |
|---|---|
| Free tier | 20 calls/day per IP, no key |
| x402 per call | $0.01 USDC |
| Batch (100 numbers) | $0.10 USDC per request |
| VIES status endpoint | Free, not counted |
Comparison with alternatives
| Behaviour when a member state is down | W System API | Calling VIES directly |
|---|---|---|
| Automatic retries with backoff | Yes | You implement it |
| Official national-source fallback | PL, CZ, FI, FR | No |
| Last successful result, dated | Yes (any age, labelled) | No |
| Result when nothing else works | member_state_unavailable, valid=null | SOAP fault / error JSON |
| Batch with per-item status | Yes, 100 per request | No batch |
Based on each provider's public pages on 2026-11-06. Corrections welcome via GitHub issues.
Questions and answers
Is VIES down right now?
See https://wsystem.dev/vies-status, which reads the European Commission's own VIES check-status endpoint, or call GET https://api.wsystem.dev/vies/status.
Should I reject a customer if VIES is unavailable?
No. Treat it as unknown or use the flagged fallback answer, and re-check in VIES later before relying on it for zero-rating.
Is a national-register fallback legally equivalent to VIES?
No. It shows the domestic status from an official national source. VIES (with a consultation number) remains the evidence most tax authorities expect for intra-EU B2B supplies. This is not tax advice.
Why is there no fallback for Germany?
The BZSt eVatR service is free but only accepts requests where the requester is a German VAT ID holder, so a general API cannot use it. German numbers fall back to the last VIES result only.
How long do VIES outages last?
Usually minutes to a few hours, often around national maintenance windows (evenings and weekends).
What should my checkout do when valid is null?
Treat it as unknown, not invalid. Mark the VAT-dependent decision pending, retry with bounded backoff, and re-check through VIES before relying on missing evidence. Payment authorization and VAT evidence can be separate states.
Can I use a national-source fallback for zero-rating?
No. National registers show domestic status. VIES with a consultation number remains the evidence most tax authorities expect for intra-EU B2B supplies. This is not tax advice.
Related
- VIES status: live availability per member state
- EU VAT number validation API (VIES)
- Free bulk VAT checker (CSV)
- EU VAT validation guide
- VIES error codes explained
- x402 API VAT validation for AI agents
- API reference (OpenAPI)
Facts and competitor details checked 2026-11-06. W System is the maker of this product. Not affiliated with the European Commission. Not legal or tax advice.