AutomationMart
Home/Browse/Download KSeF (Poland’s e-invoicing system) invoices to an Excel spreadsheet
n8n

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

n8nn8n14 modulesv1.0
GmailGoogle Drive

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 (Krajowy System e-Faktur) API v2, downloads invoice metadata for a configurable date range, and exports everything as a clean Excel spreadsheet (.xlsx). The spreadsheet includes: KSeF number, invoice number, issue date, seller/buyer NIP and na

At a glance

Download KSeF (Poland’s e-invoicing system) invoices to an Excel spreadsheet is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Gmail, Google Drive. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Gmail, Google Drive
Modules
14
Price
Free
Version
v1.0
Download KSeF (Poland’s e-invoicing system) invoices to an Excel spreadsheet workflow diagram

About this workflow

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 (Krajowy System e-Faktur) API v2, downloads invoice metadata for a configurable date range, and exports everything as a clean Excel spreadsheet (.xlsx). The spreadsheet includes: KSeF number, invoice number, issue date, seller/buyer NIP and name, net/VAT/gross amounts, currency, invoice type, and more. Who is it for Polish companies and accountants who need to bulk-download invoice data from KSeF for bookkeeping, reconciliation, or tax reporting. How to set up 1. Get your KSeF authorization token — log in at ksef.mf.gov.pl, go to token management, and generate a token. It looks like: YYYYMMDD-XX-XXXXXXXXXX-XXXXXXXXXX-XX|nip-XXXXXXXXXX|hash 2. Open the ⚙️ Config node and fill in: - nip — your 10-digit NIP - authToken — the KSeF token from step 1 - startDate / endDate — the date range in ISO 8601 format (e.g. 2026-01-01T00:00:00Z) - subjectType — use Subject2 for invoices you received (as buyer), Subject1 for invoices you issued (as seller) 3. Click "Test workflow" — the spreadsheet will appear as binary output in the Write XLSX node How it works (under the hood) KSeF API v2 requires a 6-step authentication flow: 1. Fetch the RSA public key certificate from KSeF 2. Request a challenge (nonce + timestamp) 3. RSA-OAEP encrypt your token with the challenge timestamp 4. Initialize authentication — returns a temporary JWT 5. Poll the auth status until it's ready 6. Redeem the temporary JWT for a real access token Only after step 6 can you query invoices. This workflow handles all of that automatically — you just provide your token and NIP. Extending the workflow Some ideas for what you can add after the Write XLSX node: - Write Binary File — save the spreadsheet to disk - Send Email (Gmail / SMTP) — email the spreadsheet as an attachment - Google Drive — upload the spreadsheet to Drive - Postgres / MySQL — write invoice data to a database for querying - Download Invoice XML — add an HTTP Request node to GET /invoices/{ksefNumber} with the access token to download the full invoice XML Requirements - A KSeF authorization token (generated at ksef.mf.gov.pl) - No external credentials or API keys needed in n8n — everything goes through the Config node - Works with n8n self-hosted and cloud API reference - KSeF API v2: - KSeF test environment: - Official docs: Made with ❤️ by Greg Brzezinka Need help? Reach out to me! --- Tags ksef, poland, invoices, tax, e-invoicing, spreadsheet, xlsx, accounting Categories Finance & Accounting, Data Transformation

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Sends information from Gmail to SMS to the phone via Clickatell

Every time you receive a new message an email from a specific user, Make will send automatically SMS to the selected phone number

Free

Automate quote request processing with Tally, Airtable, Slack, and Gmail

What if your quote requests managed themselves? Every quote request is a potential deal — but only if it's handled quickly, properly, and without things falling through the cracks. What if instead of copy-pasting emails and pinging teammates manually, your entire process just... ran itself? This automation makes it happen: it captures form submissions, notifies your sales team on Slack, stores leads in Airtable, and sends an email confirmation to the client — all in one seamless n8n flow. --- ⚙️

Free

Intelligent email organization with AI-powered content classification for Gmail

This workflow leverages AI to intelligently analyze incoming Gmail messages and automatically apply relevant labels based on the email content. The default configuration includes the following labels: Newsletter: Subscription updates or promotional content. Inquiry: Emails requesting information or responses. Invoice: Billing and payment-related emails. Proposal: Business offers or collaboration opportunities. Action Required: Emails demanding immediate tasks or a

Free

Create Word and PDF documents with Plumsail and send them in Gmail

Run this scenario manually to create Word and PDF files with Plumsail Documents. It uses a template stored in Google Drive and sends an email with the documents through Gmail.

Free

Add a new record to Google Sheets about a new project in BeLazy and upload files to Google Drive

When a new project is approved, data of the project are stored in a Google Sheets spreadsheet and the files are uploaded to Google Drive. If the file is bigger than 50MB, the e-mail with the notification about this issue is sent to Gmail.

Free

Smart job search: resume scoring & tailoring with OpenAI, Apify, and Airtable

Who is this for? This workflow is designed for job seekers who want to automate their job application research and resume optimization. It's ideal for professionals who want to match their CVs to new job postings daily, improving the chance of landing interviews without manual work. Use case - Problem: Manually searching for jobs, matching resumes, and updating application records is time-consuming and inefficient. - Use Case: Automatically fetches new job listings based on user preferences, sco

Free

Transcribe audio files, summarize with GPT-4, and store in Notion

Who is this for? This workflow template is perfect for content creators, researchers, students, or anyone who regularly works with audio files and needs to transcribe and summarize them for easy reference and organization. What problem does this workflow solve? Transcribing audio files and summarizing their content can be time-consuming and tedious when done manually. This workflow automates the process, saving users valuable time and effort while ensuring accurate transcriptions and concise sum

Free

Send instant replies to new Yelp leads with LeadResponder.ai

Automate replies for new Yelp leads. This workflow helps small businesses win clients through immediate engagement the moment they reach out and increasing revenue by 30%. How it works Yelp is monitored every minute for new leads. Once a lead is detected, an automated reply is sent immediately. Setup steps First, sign up at to obtain an API key. Then, enter the key into the workflow settings. Customization Upgrade from static messages to AI-generated personalization. Additionally, you can automa

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free