Templates / Download KSeF (Poland’s e-invoicing system) invoices to an Excel spreadsheet

Download KSeF (Poland’s e-invoicing system) invoices to an Excel spreadsheet

Ready for 3.0

by Greg Brzezinka · 745 views · created 2026-03-06 · Invoice Processing

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 14 nodes and runs manually, when you click “Execute workflow”. It uses only n8n's built-in nodes.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. ⚙️ Config (Edit Fields (Set)): sets or maps fields
  2. Get Public Key (HTTP Request): calls an HTTP API
  3. Get Challenge (HTTP Request): calls an HTTP API (POST)
  4. Encrypt Token (Code): runs custom JavaScript code
  5. Init Auth (HTTP Request): calls an HTTP API (POST)
  6. Wait 2s (Code): runs custom JavaScript code
  7. Check Auth Status (HTTP Request): calls an HTTP API
  8. Redeem Token (HTTP Request): calls an HTTP API (POST)
  9. Query Invoices (HTTP Request): calls an HTTP API (POST)
  10. Extract Invoices (Code): runs custom JavaScript code

…plus 3 more steps. See the full node list below.

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

  • Still check Spreadsheet File (Write XLSX): Convert to File / Extract from File.
Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (5)

From the author

TL;DR; Download invoices from Poland's KSeF (Krajowy System e-Faktur) and export them as an XLSX spreadsheet. Handles the full v2 authentication flow automatically. --- Download KSeF invoices through n8n What it does This workflow connects to Poland's KSeF…

Excerpt from Greg Brzezinka's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.