WHMCS automation settings control when renewal invoices are created, which payment reminders customers receive, and when overdue hosting services are suspended or terminated. Set them once, connect a reliable cron job, and a verified UPI payment can move an invoice from unpaid to paid before WHMCS’s normal service automation runs.
This guide uses the labels in current WHMCS documentation and gives a sensible starting profile for Indian hosting firms selling domains, shared hosting, VPS, SSL and similar recurring services.
What you need before changing WHMCS automation settings
Prepare these items first so you can test the complete invoice-to-service journey:
- Admin access to WHMCS.
- The billing timezone and server timezone used by your installation.
- Your renewal policy: how early to invoice, how many days to allow after the due date, and when to terminate.
- A working system cron command for your WHMCS installation.
- A payment method that marks the WHMCS invoice as paid. For UPI, you can install the PaymentSetu WHMCS module, which sends customers to pay into your own merchant account and marks the invoice paid after the payment is verified.
Do not start by changing every option. First record your current values, then change one group at a time and test with a non-production client or a low-value invoice.
Step 1: Open the WHMCS automation settings
Why this matters: invoice, reminder and service actions are controlled from one place, but several related billing options live elsewhere.
In the WHMCS Admin Area, go to Configuration > System Settings > Automation Settings. In some WHMCS layouts, you can also reach automation status from Utilities > Automation Status.
Review the Scheduling, Automatic Module Functions and Billing Settings sections. You will use these for the main renewal workflow. For invoice behaviour that is not part of this page, open Configuration > System Settings > General Settings > Invoices as well.
The Time of Day value is the hour in which WHMCS performs its daily automation work. Choose a quiet hour in your business’s timezone, such as 02:00 or 03:00, and save it. Your server cron must invoke WHMCS during that hour; the setting does not create the server cron for you.

Success looks like this: you can see the scheduling, automatic module functions and billing sections, and you know which timezone the selected hour represents.
Step 2: Set invoice generation days
Why this matters: generating a renewal invoice early gives the customer time to pay before a hosting service reaches its due date.
In Billing Settings, find Invoice Generation. This is the number of days before the service’s Next Due Date when WHMCS should generate the invoice. WHMCS documentation describes 14 days as the default value, but your best value depends on your renewal cycle and customer behaviour.
Use this starting profile for a small Indian hosting business:
| Service or billing cycle | Starting value | Why |
|---|---|---|
| Monthly hosting and VPS | 7 days | Gives a customer a full working week to pay and ask questions. |
| Quarterly services | 10 days | Adds notice without sending the invoice too far ahead. |
| Annual hosting, domains and SSL | 14 days | Gives more time for higher-value renewals and domain-related action. |
These are operating recommendations, not fixed WHMCS requirements. Click Advanced Settings beside Invoice Generation if you need different values for monthly, quarterly or annual billing cycles. Use the domain setting when domain renewals need a different notice period.
Avoid confusing invoice generation with the due date. If you enter 7, WHMCS aims to create the invoice seven days before the Next Due Date; it does not make the payment due seven days earlier.
Success looks like a test service with a known Next Due Date receiving its renewal invoice inside the chosen window after the daily automation task runs.
Step 3: Configure payment reminders and overdue notices
Why this matters: a short, predictable reminder sequence recovers renewals before an automated suspension is needed.
In Billing Settings, enable Payment Reminder Emails. Then choose values for the two reminder fields:
- Invoice Unpaid Reminder: start with
3days before the due date. - Overdue Reminder: start with
1day after the due date.
For example, if an invoice is due on 20 November, a three-day unpaid reminder is scheduled for 17 November. If the invoice remains unpaid, an overdue reminder begins on 21 November. The daily cron still has to run for WHMCS to send these messages.
Keep the message useful. Include the invoice number, amount, due date, service name and a clear payment button or link. For an Indian hosting audience, mention that the customer can pay the invoice by UPI when that payment method is enabled.
Check the email templates under Configuration > System Settings > Email Templates. Confirm that the invoice-created, payment reminder and overdue notice templates are enabled and use the correct support address. Send a test email before you rely on the schedule.
Setting a reminder value to 0 prevents that related reminder from being sent. If you do not want a particular message, make that choice deliberately and document it in your renewal policy.
Success looks like a test invoice receiving the invoice-created email, the pre-due reminder and the overdue notice at the expected times.
Step 4: Set automatic suspension and unsuspension
Why this matters: these controls turn the invoice state into a consistent service lifecycle instead of requiring you to check every overdue client manually.
In Automatic Module Functions, configure the main service actions as follows:
| Setting | Practical starting value | What it does |
|---|---|---|
| Enable Suspension | On | Allows WHMCS to suspend eligible overdue services through their service module. |
| Suspend Days | 3 | Gives a short grace period after the service becomes overdue. |
| Enable Unsuspension | On | Allows WHMCS to reactivate a service that was automatically suspended for non-payment after payment. |
| Enable Termination | Off initially | Keeps irreversible service removal under a reviewed policy while you establish your billing process. |
| Termination Days | If enabled, 30 | Provides a longer post-due period than suspension before removal. |
The exact value for Suspend Days and Termination Days should match the promise in your terms and your support process. Do not select a value just because it is common in another hosting company.
WHMCS uses the service’s Next Due Date and automation rules to decide when an overdue action is due. If you enable termination, understand that it removes the service from the connected server while WHMCS retains its internal record. Review the setting with care before enabling it for production services.
For automatic unsuspension, the service must have been suspended by the overdue-payment workflow and the invoice payment must be recorded in WHMCS. A payment that only appears in a bank or UPI account but does not update the WHMCS invoice cannot advance this workflow.
Success looks like this: a test overdue invoice suspends after the chosen grace period, and the same service becomes eligible for unsuspension when WHMCS records the overdue invoice as paid.
Step 5: Connect UPI invoices with the PaymentSetu WHMCS module
Why this matters: verified UPI payments need to reach the WHMCS invoice record so the normal paid-invoice and unsuspension rules can continue.
PaymentSetu is a payment verification service, not a payment gateway. The customer pays directly into your own Paytm Business or PhonePe Business merchant account; PaymentSetu matches the UTR and amount to the invoice payment and sends the result to WHMCS.
Set it up using the WHMCS module instructions:
- Download the PaymentSetu WHMCS module.
- Upload
paymentsetu.phptomodules/gateways/and copy the callback file included with the module to the required callback location. - Enable the PaymentSetu payment method in WHMCS.
- Enter the callback URL and API key shown by the module setup.
- Save the gateway settings and create a test invoice.
- Pay that invoice using the displayed UPI flow, then confirm that WHMCS records the payment against the correct invoice.
The module works with any PaymentSetu plan, including the free module download. PaymentSetu plans start at ₹399 per 30 days; the Pro plan is ₹999 per 30 days with 1,000 credits and is designed for growing WooCommerce and WHMCS businesses.
Keep the callback URL and API key private. Use a unique invoice or client transaction reference for each payment, and do not mark an invoice paid from a customer’s screenshot alone. For background on reading the bank-side reference, see What Is a UTR Number in UPI?.
If you are comparing ways to collect hosting renewals, see this guide to WHMCS payment options for hosting renewals. If you are deciding which supported merchant account to connect, the Paytm Business vs PhonePe Business guide explains the account-side differences.
Success looks like the test invoice changes to Paid in WHMCS only after the UPI payment is verified, and a service suspended for overdue payment becomes eligible for WHMCS unsuspension.
Step 6: Configure the WHMCS cron job
Why this matters: automation settings are instructions; the server cron is what makes WHMCS evaluate those instructions.
For a self-hosted WHMCS installation, use the cron command shown inside Configuration > System Settings > Automation Settings. WHMCS provides an installation-specific command in the first cron badge. A typical command looks like this:
*/5 * * * * php -q /path/to/whmcs/crons/cron.php
Replace the path and, when required by your server, php with the full PHP binary path. In cPanel, open Advanced > Cron Jobs, choose Once Per Five Minutes, paste the command, and save it. With another control panel, create the equivalent five-minute cron entry in its scheduler.
WHMCS recommends invoking the system cron every five minutes, or as frequently as your host allows, with at least one run every hour. It must also run during the hour selected under Time of Day. Keep the WHMCS and server PHP timezones aligned so an invoice due at midnight is not treated as due on the wrong date.
Do not use a guessed URL for cron.php when command-line cron is available. WHMCS blocks direct HTTP requests by default; if your host cannot provide CLI cron, follow the official HTTP access procedure and restrict it to the scheduler’s IP range.
Success looks like the cron runs without a PHP error, the WHMCS automation status is green, and the next daily task appears in the logs.
Step 7: Verify automation status and logs
Why this matters: a saved setting is not proof that the scheduled task completed.
Open Utilities > Automation Status after the first scheduled run. Check the status badge and review the daily actions for invoices, invoice and overdue reminders, overdue suspensions and overdue terminations. You can also review Configuration > System Logs for entries beginning with Cron Job; the completed daily run should end with a completion entry.
Run this checklist with a test client:
- Confirm the service has the intended Next Due Date and billing cycle.
- Confirm WHMCS generates the invoice within the invoice-generation window.
- Confirm the invoice-created email and payment reminders arrive.
- Confirm a verified UPI payment changes the invoice to Paid.
- Confirm an overdue test service follows your suspension policy.
- Confirm payment on an automatically suspended service makes it eligible for unsuspension.
The WHMCS Automation Status documentation explains the status badges and daily action counts. Record the result of each test before enabling termination for real customers.
Common WHMCS automation mistakes
The invoice was not generated
Check the service’s Next Due Date, billing cycle and the Invoice Generation value. Then check whether the daily cron ran during the selected Time of Day hour. WHMCS will not generate the expected renewal invoice if the date falls outside the configured window or the cron did not complete.
Reminders are not being sent
Confirm Payment Reminder Emails is enabled, the reminder number is not 0, and the relevant email templates exist. Also check the client’s email address, email preferences and the cron log.
A paid invoice did not unsuspend the service
Confirm the payment was recorded against the correct invoice, Enable Unsuspension is on, and the service was suspended by the overdue-payment workflow. Review the service’s suspension reason and the Automation Status result rather than changing the suspension days first.
Automation runs at the wrong time
Compare the WHMCS timezone, PHP CLI timezone and server cron timezone. Then make sure the cron invokes cron.php during the selected Time of Day hour. The official WHMCS system cron guide covers the five-minute schedule, command location and timezone checks.
FAQ
What are the best WHMCS automation settings for a small hosting company?
Start with invoices 7 days before monthly due dates, a reminder 3 days before the due date, and an overdue notice 1 day after. Enable suspension after a 3-day grace period and enable automatic unsuspension after WHMCS records payment, then adjust those values to match your written renewal policy.
How many days before the due date should WHMCS generate invoices?
Seven days is a practical starting point for monthly hosting, while 14 days gives annual services, domains and SSL more notice. Use Advanced Settings if different billing cycles need different invoice-generation windows.
How often should the WHMCS cron job run?
For self-hosted WHMCS, configure the system cron to run every five minutes when your hosting environment allows it. It must also run during the Time of Day hour selected in Automation Settings so the daily automation tasks execute.
Does PaymentSetu automatically unsuspend a WHMCS service?
PaymentSetu verifies the UPI payment and updates the WHMCS invoice through its gateway module. WHMCS then applies its own automatic unsuspension rules when Enable Unsuspension is active and the service was suspended for overdue payment.
Can WHMCS accept UPI payments for hosting renewals?
Yes. The PaymentSetu WHMCS module lets a hosting business connect UPI invoice payments to its own merchant account, verify the payment and record it against the WHMCS invoice. See the WHMCS module page for the module download and setup details.