How do I validate Y-tunnus (Finnish company ID) + VIES for EU B2B?
Two Finnish B2B identifiers, two validators:
- Y-tunnus (Yritys- ja yhteisötunnus, Business ID), 7-digit + hyphen + check digit format (e.g.
1234567-8). Identifies a Finnish company in the YTJ (Yritys- ja yhteisötietojärjestelmä) register. Validated against the free YTJ API from PRH (Patentti- ja rekisterihallitus) and Verohallinto (Finnish Tax Administration). - VAT number / TVA intracommunautaire, format
FI + 8 digits(the Y-tunnus without hyphen, check digit included). Validated via the VIES VAT service (EU-wide).
For Magento B2B we:
- Add Y-tunnus + VAT-number fields to the
customerentity (or B2Bcompanyif on Adobe Commerce). - Validate Y-tunnus against the YTJ API on registration, rejects invalid / dissolved companies, auto-fills company name + address.
- Validate VIES for cross-border zero-rated B2B sales (intra-EU reverse charge).
- Apply 0% ALV on B2B intra-EU sales with valid VIES; 25.5% on B2C and FI→FI B2B.
- Cache validations 30 days, re-validate on any address change.