workflows.fit
Back to n8n workflows
n8n templateFreeBy Łukasz

Download KSeF invoices to NocoDB and email formatted HTML copies

What Is This? This workflow is an improvement of [this workflow by Greg Brzezinka](https://n8n.io/workflows/13925-download-ksef-polands-e-invoicing-system-invoices-to-an-excel-spreadsheet/). This workflow connects to ...

CommunicationHITLCore NodesDevelopmentData & StorageSticky NoteSetHttp Request
Loading interactive preview...

Template notes

What Is This?

This workflow is an improvement of [this workflow by Greg Brzezinka](https://n8n.io/workflows/13925-download-ksef-polands-e-invoicing-system-invoices-to-an-excel-spreadsheet/).

This workflow connects to [KSeF](https://www.podatki.gov.pl/ksef/) (Krajowy System e-Faktur — Poland's national e-invoicing platform) and automatically downloads both issued and received invoices into a [NocoDB](https://nocodb.com/) database, sending you a human-readable HTML notification for each new one via email.

It handles the full KSeF v2 authentication flow — RSA-OAEP token encryption, session initialization, status polling, and token redemption — so you don't have to think about it. Once authenticated, it fetches invoice metadata, filters out duplicates already in your database, retrieves the full XML details for each new invoice, renders them as styled HTML, and stores everything in NocoDB before terminating the session cleanly.

Who Is It For?

Built for Polish businesses, accountants, and developers who need a reliable, automated way to pull KSeF invoices into a structured database without manually logging into the government portal.

Particularly useful if you want to track both cost (received) and issued invoices in one place, get notified by email whenever a new invoice arrives, or build downstream automation on top of your invoice data — without touching the KSeF UI.

How Does It Work?