Invoice Reader FI

Read a Finnish invoice.
Check that it adds up.

Y-tunnus, IBAN, reference number, VAT, totals and the virtual barcode, checked in one pass. One invoice or a whole pile.

01Choose invoices

Method

  1. ReadPDF text is read with pdf.js. Scanned PDFs and photos are read with Tesseract OCR using Finnish and English language data.
  2. ExtractRules find Finnish and English labels, such as Eräpäivä, Viitenumero, ALV, Maksettava yhteensä, and pull out the values and every VAT row. Each value remembers where on the page it was found.
  3. ValidateY-tunnus check digit, IBAN mod-97, reference number (Finnish 7-3-1 or RF), net + VAT = total for each VAT rate, Finnish VAT rates, payment term.
  4. Cross-checkThe virtual barcode (virtuaaliviivakoodi, version 4 or 5) is decoded and compared with the printed IBAN, amount, reference and due date. In a batch, repeated invoices are flagged.
  5. Look upThe Y-tunnus is checked against PRH's open business register: does the company exist, is it active, does the name match, and is it in the VAT register.
  6. ExportCSV for spreadsheets, JSON for automations, and Finvoice 3.0 XML, the Finnish e-invoice format that accounting software imports.

No AI, no server, no tracking. The same validation code runs in an n8n workflow that processes invoices arriving by email.