Templates / Generate PDF invoices from webhook requests with PDFMint

Generate PDF invoices from webhook requests with PDFMint

Unknown

by Florian Standhartinger ✓ · 15 views · created 2026-08-26 · 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 9 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Pdfmint (community).

How it runs

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

  1. Set your company details (Edit Fields (Set)): sets 6 fields: seller_name, seller_address, footer_note…
  2. Check the request is complete (If): checks a condition and branches into true / false
  3. Calculate line totals and VAT (Code): runs custom JavaScript code
  4. Explain what went wrong (Edit Fields (Set)): sets 3 fields: error, message, status_code
  5. Render the invoice as PDF (Pdf Mint): pdf (document)
  6. Return the error as JSON (Respond to Webhook): sends the response back to the webhook caller
  7. Did the render succeed? (If): checks a condition and branches into true / false
  8. Return the PDF (Respond to Webhook): sends the response back to the webhook caller

Services it uses

Pdfmint (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-pdfmint is verified or supports 3.0 (used in Render the invoice as PDF).

Nodes used (6)

From the author

Generate PDF invoices from webhook data with PDFMint Who's it for Anyone whose shop, billing system or internal tool can POST JSON and needs a finished PDF invoice back in the same request — without running a headless browser, and without a template editor to…

Excerpt from Florian Standhartinger'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.