Templates / Generate ZUGFeRD/Factur-X e-invoices from webhook orders with PolyDoc and email

Generate ZUGFeRD/Factur-X e-invoices from webhook orders with PolyDoc and email

Unknown

by polydoc.tech ✓ · 17 views · created 2026-06-12 · Invoice Processing

Unknown. This template uses community nodes we can't verify statically. Uses community nodes that can't be verified statically (unverified community packages are off by default in 3.0). Static check, last run 2026-10-19.

What this workflow does

This workflow has 7 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Polydoc (community).

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Valid order? (If): checks a condition and branches into true / false
  2. Build e-invoice (Code): runs custom JavaScript code
  3. Reject (422) (Respond to Webhook): sends the response back to the webhook caller
  4. Generate ZUGFeRD PDF (Poly Doc): einvoice
  5. Email invoice to buyer (Send Email): sends an email over SMTP
  6. Return PDF (Respond to Webhook): sends the response back to the webhook caller

Services it uses

Polydoc (community)

Before you upgrade to n8n 3.0

We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).

  • Check that n8n-nodes-polydoc is verified or supports 3.0 (used in Generate ZUGFeRD PDF).

Nodes used (6)

From the author

Quick Overview This workflow receives an order via webhook, builds an EN 16931 invoice payload and HTML, generates a ZUGFeRD/Factur-X (PDF/A-3 + embedded XML) e-invoice using PolyDoc, emails the PDF to the buyer, and returns the PDF in the webhook response.…

Excerpt from polydoc.tech'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.