Shop Order to Invoice & Customer Email - n8n Automation Workflow Template
Stop building invoices by hand after every sale. This n8n workflow template watches for new orders from your shop, builds a clean PDF invoice automatically - with your own business details and the order's real totals - and emails it straight to the customer.
What's included:- workflow.json - a complete, importable n8n workflow (7 connected steps). Import it with one click, no coding required.- A step-by-step PDF setup guide covering import, connecting your own webhook, filling in your own business and account details, and adjusting the invoice layout.
How it works:1. A webhook receives the new order (from your shop platform or an integration service that can send a webhook) with the customer's name, email, order number, and the items ordered.2. The order fields are normalized into one consistent shape.3. Totals are calculated from the items, plus shipping, discount and tax only if the order itself includes them - nothing is added that wasn't actually part of the sale.4. A clean PDF invoice is generated with your seller details, invoice number and date. Customer names and item names are escaped, so odd characters can't break the layout.5. The invoice is emailed straight to the customer, with their name, order number, and total - no manual work.
Tested in n8n 2.39 (self-hosted) with four sample orders (with shipping and tax, with a discount, with neither, and with special characters): totals, invoice HTML and the PDF attachment were verified. The PDF conversion and email steps run once you connect your own accounts. Invoice requirements differ by country - the setup guide explains what to check for your region.
Requirements: a free or paid n8n account (cloud or self-hosted), a shop or order form that can send a webhook, an account with an HTML-to-PDF conversion API of your choice, and an email account for sending the invoice. No credentials or API keys of ours are included - every placeholder is clearly marked in the file and explained in the setup guide.
Made with the help of AI tools; all designs are original, not copied from another creator.
Because this is a digital file, returns and exchanges are not accepted. If anything is wrong with your file, message us and we'll fix it quickly.