Skip to content
FlowHubFluxonLab
C
Email Sendfree

Generate branded invoice PDFs from webhook orders with PolyDoc and email

by polydoc.techadapted from n8n official workflow galleryUpdated Aug 2026
RequiresCCodeSend EmailSend Email
Share Post Share
WeReceive orderIfValid order?CoBuild invoicePDRender invoice PDFRender invoice …ESEmail invoiceRTReturn PDFRTReject (422)123456
1/5
STEPS · 6
Starts on an incoming request

Quick overview This workflow receives an order via webhook, validates required fields, calculates invoice totals, renders a branded invoice PDF using a saved PolyDoc template, emails the PDF to the customer, and returns the same PDF in the webhook response. How it works Receives an order payload in a POST request via an n8n webhook. Validates that the order includes at least one line item and a customer email, and returns a 422 JSON error if the payload is incomplete. Calculates line totals, subtotal, tax amount, and grand total, and formats the invoice data (invoice number, dates, currency, and customer details). Uses PolyDoc to populate a saved template with the invoice data and render an A4 PDF. Sends the generated PDF to the customer by email as an attachment. Returns the generated PDF as the webhook response for immediate download. Setup Create a PolyDoc API credential in n8n and replace YOUR_TEMPLATE_ID with your saved invoice template ID from the PolyDoc dashboard. Configure an SMTP credential (or replace the email step with another provider) and set the sender address (for example, update [email protected]).

Tags

n8nreference-onlyemail-send
Connects
CCodesendemailSend Email
CategoryEmail Send
Triggermanual
Complexitycomplex
Nodes7
AddedJul 3, 2026

Related workflows

See all Email Send
Wsendemail
free

Find a new book recommendations

Receive a new book recommendation each Friday from Open Library. You can select the subject from thousands of options and have a new recommendation delivered to you automatically.

by jason
sheetssendemail
free

Send Typeform results to Google Sheet, Slack and email

Trigger on new Typeform form submission Write data to Google Sheet Check severity of problem If very severe post message to Slack If not so severe just send an email Assumptions Google Sheet Sheet in Spreadsheet called "Problems". Columns Names: Name Email Severity Problem Example Sheet: https://docs.google.com/spreadsheets/d/17fzSFl1BZ1njldTfp5lvh8HtS0-pNXH66b7qGZIiGRU Typeform Typeform formular with questions named exactly like the columns of the Google Sheet.

by Jan Oberhauser
Wsendemail
free

Send trending "Show HN" to email

Triggers every day at 1pm Gets the current content from Hacker News Gets all the different submission items Extracts the rank, title and url Checks if it is a "Show HN" submission Combines the items into a simple email text Sends an email with the email text

by Jan Oberhauser