Quick overview
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 Triggers either manually with a sample invoice or when a POST request hits the webhook endpoint. Loads template and default format settings and merges them with the incoming invoice data. Maps the invoice into a Peppol BIS Billing 3.0 UBL payload and calculates line totals, VAT subtotals, and monetary totals. Routes the request by target format and calls the corresponding PDF Generator API e-invoice endpoint (Factur-X, XRechnung, or EN 16931) to generate a base64-encoded document. Reads the API response metadata to derive the correct filename and MIME type and prepares the document content. Converts the base64 response into a binary file so it can be stored or sent onward (for example via email, cloud storage, or an ERP). Setup Create and select a PDF Generator API credential (API key, secret, and account email) and allow the workflow’s PDF Generator API domains for HTTP requests. Update the Settings values for your Factur-X template ID, default output format (facturx/xrechnung/en16931), and (for Factur-X) the profile to use. If you use the webhook path, copy the webhook URL and configure your ERP/billing system to POST invoice JSON to it. Adjust the field mapping logic so your source invoice structure matches the UBL payload expected by PDF Generator API (optionally enable the schema request to retrieve the latest field list). Replace the final “store or send” placeholder with your target delivery step (for example Gmail, Google Drive, S3, or your accounting/ERP system). An n8n automation workflow template by Marián Današ.
Marián Današ
web
free
Others in the same category, ranked by how often they are opened.