Generate EN 16931, XRechnung, and Factur-X e-invoices with PDF Generator API
Ready for 3.0What this workflow does
This workflow has 14 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). It uses only n8n's built-in nodes. It also calls us1.pdfgeneratorapi.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Prepare Sample Invoice (Edit Fields (Set)): sets or maps fields
- Fetch E-Invoice Schema (HTTP Request): calls us1.pdfgeneratorapi.com
- Prepare Webhook Invoice (Edit Fields (Set)): sets or maps fields
- Set Invoice Parameters (Edit Fields (Set)): sets 3 fields: template_id, default_format, facturx_profile
- Map to UBL Invoice Format (Code): runs custom JavaScript code
- Route by Invoice Format (Switch): routes items into 3 branches
- Post to Factur-X Endpoint (HTTP Request): calls us1.pdfgeneratorapi.com (POST)
- Post to XRechnung Endpoint (HTTP Request): calls us1.pdfgeneratorapi.com (POST)
- Post to EN 16931 Endpoint (HTTP Request): calls us1.pdfgeneratorapi.com (POST)
- Parse API Response (Code): runs custom JavaScript code
…plus 1 more step. See the full node list below.
HTTP calls to: us1.pdfgeneratorapi.com
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 (8)
- Manual Trigger
n8n-nodes-base.manualTrigger - Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - Convert to File
n8n-nodes-base.convertToFile - No Operation, do nothing
n8n-nodes-base.noOp
From the author
Quick overview This workflow converts invoice JSON into compliant e-invoices (EN 16931, XRechnung, or Factur-X) by mapping your data to Peppol BIS Billing 3.0 UBL and generating the final XML or PDF/A-3 using PDF Generator API. How it works 1. Triggers either…