Quick overview
Quick overview This workflow runs every weekday morning to pull authorised accounts-receivable invoices from Xero, groups any past-due balances by customer, generates a branded overdue-invoice statement PDF with PDFMint, and emails each customer their statement via Gmail. How it works Runs every weekday at 09:00 on a schedule. Fetches all authorised ACCREC (sales) invoices from Xero for the specified organisation. Filters to invoices that are still unpaid and past their due date, then groups them per contact and builds a branded HTML statement with totals and days overdue. Skips processing when there are no overdue invoices for a contact to avoid generating empty statements. Renders each customer’s HTML statement into a PDF using PDFMint and names the file after the customer. Sends the PDF statement to the contact’s email address from Xero using Gmail, using a subject line that includes invoice count and total outstanding. Setup Connect your Xero OAuth2 credential and replace the organisation (tenant) ID in the Xero step with your Xero tenant ID. Add a PDFMint API credential. Add a Gmail OAuth2 credential for the mailbox you want to send from. Update the “Your company details” values (name, address, accent colour, and footer note) to match your branding. Ensure your Xero contacts have an email address set, since the workflow sends statements to the email stored on each contact. An n8n automation workflow template by Florian Standhartinger.
Florian Standhartinger
web
free
Others in the same category, ranked by how often they are opened.