Handle KSeF e-invoice exceptions with webhooks, Gmail and Data Tables
Ready for 3.0What 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).
- Validate Intake Token (Code): runs custom JavaScript code
- Route Manual Sweep (Switch): routes items into branches
- Get Durable Recovery Lifecycle Rows (Data table): get (row)
- Intake Authorized? (If): checks a condition and branches into true / false
- Get Durable Entry Lifecycle Guard (Data table): get (row)
- Build Intake Persist Fixtures (Code): runs custom JavaScript code
- Run Durable Recovery Sweep (Code): runs custom JavaScript code
- Build Webhook KSeF Fixture (Code): runs custom JavaScript code
- Build Unauthorized Response (Code): runs custom JavaScript code
- Plan Durable Entry Guard (Code): runs custom JavaScript code
…plus 36 more steps. See the full node list below.
Services it uses
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)
- Webhook
n8n-nodes-base.webhook - Manual Trigger
n8n-nodes-base.manualTrigger - Switch
n8n-nodes-base.switch - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - Data table
n8n-nodes-base.dataTable - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Gmail
n8n-nodes-base.gmail
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…