Download KSeF (Poland’s e-invoicing system) invoices to an Excel spreadsheet
Ready for 3.0What 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”.
- ⚙️ Config (Edit Fields (Set)): sets or maps fields
- Get Public Key (HTTP Request): calls an HTTP API
- Get Challenge (HTTP Request): calls an HTTP API (POST)
- Encrypt Token (Code): runs custom JavaScript code
- Init Auth (HTTP Request): calls an HTTP API (POST)
- Wait 2s (Code): runs custom JavaScript code
- Check Auth Status (HTTP Request): calls an HTTP API
- Redeem Token (HTTP Request): calls an HTTP API (POST)
- Query Invoices (HTTP Request): calls an HTTP API (POST)
- 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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (5)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Spreadsheet File
n8n-nodes-base.spreadsheetFile
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…