Templates / Handle KSeF e-invoice exceptions with webhooks, Gmail and Data Tables

Handle KSeF e-invoice exceptions with webhooks, Gmail and Data Tables

Ready for 3.0

by Kuliberda Labs ✓ · 11 views · created 2026-08-25 · 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-10-19.

What this workflow does

This workflow has 49 nodes and runs when an HTTP POST request hits its webhook URL (plus 2 other triggers). Along the way it connects Gmail.

How it runs

Trigger: When an HTTP POST request hits its webhook URL (plus 2 other triggers).

  1. Validate Intake Token (Code): runs custom JavaScript code
  2. Route Manual Sweep (Switch): routes items into branches
  3. Get Durable Recovery Lifecycle Rows (Data table): get (row)
  4. Intake Authorized? (If): checks a condition and branches into true / false
  5. Get Durable Entry Lifecycle Guard (Data table): get (row)
  6. Build Intake Persist Fixtures (Code): runs custom JavaScript code
  7. Run Durable Recovery Sweep (Code): runs custom JavaScript code
  8. Build Webhook KSeF Fixture (Code): runs custom JavaScript code
  9. Build Unauthorized Response (Code): runs custom JavaScript code
  10. Plan Durable Entry Guard (Code): runs custom JavaScript code

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

Services it uses

Gmail

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.

Nodes used (9)

From the author

Quick overview Persist KSeF invoice intake, simulate submission outcomes, query status before retrying, and route unresolved cases through Data Tables and Gmail. How it works 1. Receives explicit invoice data through a token-protected webhook or the built-in…

Excerpt from Kuliberda Labs'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.