Generate PDF invoices from webhook requests with PDFMint
UnknownWhat 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.
- Set your company details (Edit Fields (Set)): sets 6 fields: seller_name, seller_address, footer_note…
- Check the request is complete (If): checks a condition and branches into true / false
- Calculate line totals and VAT (Code): runs custom JavaScript code
- Explain what went wrong (Edit Fields (Set)): sets 3 fields: error, message, status_code
- Render the invoice as PDF (Pdf Mint): pdf (document)
- Return the error as JSON (Respond to Webhook): sends the response back to the webhook caller
- Did the render succeed? (If): checks a condition and branches into true / false
- Return the PDF (Respond to Webhook): sends the response back to the webhook caller
Services it uses
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)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - Pdf Mint
n8n-nodes-pdfmint.pdfMint - Respond to Webhook
n8n-nodes-base.respondToWebhook
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…