Skip to content
All findings

pyvat 1.3.18 is wrong on 4 of 27 EU VAT standard rates vs TEDB (Dec 2026): Estonia, Finland, Romania, Slovakia; npm eu-vat-rates 1.0.3 has Romania at 19%

Published 1 Dec 2026

If you charge EU VAT with pyvat 1.3.18 (the latest on PyPI, released 2024-01-25), four of its 27 standard rates are out of date. Estonia returns 22 (TEDB says 24), Finland 24 (25.5), Romania 19 (21) and Slovakia 20 (23). On npm, eu-vat-rates 1.0.3 still has Romania at 19%, and 8 countries carry reduced rates that no longer exist. The euvatrates.com JSON (last_updated 2016) is wrong for the same 4 countries as pyvat. eu-vat-rates-data (PyPI and npm), sales-tax 2.24.0, country-vat 1.0.27, @duty27/eu-vat and api.vatcomply.com matched the official rates for all 27.

log
$ python minimal.py        # pyvat==1.3.18 vat-moss==0.11.0 eu-vat-rates-data==2026.11.28Standard VAT rate on 2026-11-30       TEDB  pyvat 1.3.18  vat-moss 0.11  eu-vat-rates-dataEE       24          22 X           20 X                 24FI     25.5          24 X           24 X               25.5RO       21          19 X           24 X                 21SK       23          20 X           20 X                 23LU       17            17           15 X                 17EL       24            24           23 X                 24

pyvat.get_sale_vat_charge(date(2026,12,1), ItemType.generic_electronic_service, Party('EE', False), Party('DE', True)) returns VatChargeAction.charge EE 22. The date argument doesn't change the rate, because each country is a constant.

Environment

  • Reproduced 2026-12-01 in Docker python:3.12-slim and node:22. All versions are the latest on PyPI/npm that day.
  • Reference: the EU Commission's TEDB SOAP service retrieveVatRates with situationOn=2026-12-01, all 27 member states (tedb_2026-12-01.xml.gz). TEDB tags the returned rates situationOn 2026-07-01, its latest snapshot. Standard rate = the largest STANDARD entry; Spain's second entry (7%) carries a "Canary Islands" comment. Reduced = all REDUCED_RATE, SUPER_REDUCED_RATE and PARKING_RATE values > 0.
  • The same query for 2024-12-01 returns EE 22, RO 19 and SK 20. Those three changes all landed in 2025.

Results: standard rate, 27 EU countries

| Source | Wrong | Which | |---|---|---| | pyvat 1.3.18 (PyPI) | 4 | EE 22, FI 24, RO 19, SK 20 | | vat-moss 0.11.0 (PyPI, 2015) | 6 | EE 20, EL 23, FI 24, LU 15, RO 24, SK 20 | | eu-vat-rates 1.0.3 (npm) | 1 | RO 19 | | euvatrates.com/rates.json (last_updated 2016-01-01) | 4 | EE 20, FI 24, RO 20, SK 20 | | eu-vat-rates-data 2026.11.28 (PyPI + npm), duty27-eu-vat / @duty27/eu-vat 0.1.0, sales-tax 2.24.0, country-vat 1.0.27, api.vatcomply.com/vat_rates, ibericode/vat-rates (master) | 0 | |

Full per-country output is in score.log.

Reduced rates are staler than standard rates

Sources that ship reduced rates, compared with TEDB (rates a source lists that TEDB doesn't):

  • eu-vat-rates 1.0.3 (npm): 8 countries. CZ 10/15 (merged into 12 in 2024), FI 14 (now 13.5), LT 9 (now 12), RO 5/9 (now 11), SK 10 (now 5 and 19), AT 12, LU 12, IE 4.8.
  • euvatrates.com: the same list, plus NL 6 (now 9).
  • ibericode/vat-rates: LT 9 and IE 4.8. Ireland's 4.8% livestock rate is real but isn't in TEDB's rate list, so treat IE as a definition difference rather than an error.
  • eu-vat-rates-data and vatcomply: no differences.

In pyvat, ItemType.ebook for Finland returns 10. TEDB lists books, including electronically supplied ones, at 13.5 in Finland, and keeps 10 for newspapers and periodicals.

Is a fix coming? (checked 2026-12-01)

  • pyvat: GitHub master fixes Finland (25.5) but still has 'EE': ConstantEuVatRateRules(22), 'RO': …(19) and 'SK': …(20). Issue #80 (Estonia) and PR #76 (Slovakia) are open, and #82 is "Version 1.3.19 not released on pip".
  • eu-vat-rates: a 2026-05-20 commit on GitHub fixes RO, CZ, LT and SK (FI reduced is still 14), but it was never published to npm. npm i github:benbucksch/eu-vat-rates picks it up. The last_updated inside the npm package says 2021-05-27, even though 1.0.3 was published 2025-03-28.

Querying TEDB yourself: send SOAPAction

TEDB's endpoint returns HTTP 404 with an empty body when the request has no SOAPAction header, so it looks as if the service is gone:

log
$ curl -H "Content-Type: text/xml; charset=utf-8" --data @req.xml https://ec.europa.eu/taxation_customs/tedb/ws/HTTP 404, 0 bytes$ same + -H "SOAPAction: urn:ec.europa.eu:taxud:tedb:services:v1:VatRetrievalService/RetrieveVatRates"HTTP 200, 1566283 bytes

The full 27-country answer is 1.5 MB, because every reduced rate comes with its CN codes and comments. Ask for only the countries you need.

Fix

  • Python: replace pyvat's rate table with eu-vat-rates-data (get_rate(cc)["standard"]) or duty27-eu-vat (get_standard_rate(cc, date)), or override VAT_RULES['EE'] = ConstantEuVatRateRules(24) and the others.
  • Node: use eu-vat-rates-data, sales-tax or @duty27/eu-vat instead of eu-vat-rates.
  • Whichever you use, check against TEDB on a schedule. minimal.py and minimal.js do that.

Reproduce

  • repro/minimal.py (pip install pyvat==1.3.18 vat-moss==0.11.0 eu-vat-rates-data==2026.11.28) and repro/minimal.js (npm i eu-vat-rates@1.0.3 sales-tax@2.24.0 eu-vat-rates-data@2026.11.28) query TEDB live and print the tables above (minimal_py.log, minimal_js.log).
  • Full run: libs_py.py, libs_node.js, then score.py (score.log).

Sources

  • TEDB VAT retrieval service WSDL: https://ec.europa.eu/taxation_customs/tedb/ws/VatRetrievalService.wsdl
  • pyvat issues #76, #80, #82: https://github.com/iconfinder/pyvat/issues
  • eu-vat-rates repo: https://github.com/benbucksch/eu-vat-rates