This workflow automates the management of expiring domains and invoice generation.
The workflow checks whether a domain is expiring on the current date. If so, it automatically generates a PDF invoice using an external API, downloads the invoice, and emails it to the client.
After sending the invoice, the workflow updates the Google Sheet to mark the invoice as sent and adds a new expiration date for the next year, ensuring continuous tracking of domain renewals.
The workflow eliminates manual work by automatically:
This reduces administrative effort and human error.
Once set up, the system can handle any number of domains without additional effort, making it ideal for scaling domain management operations.
By comparing expiration dates with the current date, invoices are sent exactly when needed, avoiding missed renewals or delays.
The workflow integrates multiple services:
This creates a smooth, end-to-end automation pipeline.
After processing:
This ensures your data remains always up-to-date and reliable.
Automatic invoice delivery helps ensure clients receive renewal requests promptly, increasing the likelihood of on-time payments.
The workflow can easily be expanded (e.g., adding reminders, payment tracking, or CRM integration) thanks to n8n’s modular structure.
Trigger
The workflow can be triggered manually or on a schedule (e.g., daily) to check for domains expiring.
Fetch domain data
It reads a Google Sheets document (Expiring domains) containing rows with domain names, renewal prices, client emails, expiration dates, and an INVOICE SENT flag.
Check expiration condition
The If node compares the row’s EXPIRING date with the current date. Only rows where the expiration date equals today proceed.
Generate PDF invoice
For each matching domain, it calls the CraftMyPDF API to generate an invoice using a predefined template.
The invoice includes the domain name, renewal price, and grand total.
Download the PDF
A second HTTP request fetches the generated PDF from the URL returned by CraftMyPDF.
Send email with attachment
Gmail sends the invoice as an attachment to the client’s email address, with a custom message regarding domain renewal.
Update the sheet
The INVOICE SENT column is marked with "x" for the processed row.
Add next expiration date
A new row is appended to the same sheet with the same domain, renewal price, client email, and a new expiration date set to one year from today.
Google Sheets setup
EXPIRING, DOMAIN, RENEW, CLIENT EMAIL, INVOICE SENT.Credentials
CraftMyPDF template
"xxxxxxxx" in the HTTP request node’s JSON body.Adjust date format
Ensure the date format (dd/LL/yyyy) in the If node and Add next expire date node matches your sheet’s date format.
👉 Subscribe to my new YouTube channel. Here I’ll share videos and Shorts with practical tutorials and FREE templates for n8n.
Contact me for consulting and support or add me on Linkedin.