Setting Up Cron Jobs for Recurring Invoices & Daily Automation
Category: Getting Started & System Setup
β’
Views: 14
β’
Updated: Dec 04, 2026
OVERVIEW
Easy Invoice relies on a lightweight PHP scheduler (`system/cron.php`) to run automated daily billing, payment reminders, overdue notices, and accounting snapshots without manual intervention.
RECOMMENDED SERVER CRON ENTRY
Add the following entry to your server's crontab (via cPanel Cron Jobs or `crontab -e`):
* * * * * php /path/to/easy-invoice/system/cron.php >/dev/null 2>&1
WHAT THE SCHEDULER AUTOMATES
1. Recurring Invoices: Automatically generates due recurring invoices (`Invoice::generateRecurringInvoices`) and sends them to clients.
2. Automatic Payment Reminders & Overdue Notices: When `task_automatic_payment_reminder` is enabled in Settings > Automation, Easy Invoice automatically emails and/or SMS-notifies clients with upcoming or overdue balances.
3. Daily Accounting Snapshots: When `task_daily_accounting_snapshot` is enabled, Easy Invoice captures end-of-day account balances for historical trend reporting.
4. Custom Interval Hooks: Supports every-minute, 5-minute, 10-minute, 15-minute, 30-minute, hourly, and daily schedules.
ALTERNATIVE HTTP CRON TRIGGER (API V2)
- If your hosting environment prefers URL-based cron pings, Easy Invoice exposes `/api/v2/cron/daily`, `/api/v2/cron/hourly`, `/api/v2/cron/every_five_minutes`, and `/api/v2/cron/every_minute` authenticated via your API key.
VERIFYING CRON EXECUTION
- Check Settings > Automation / Cron Log (`CronLog`) to confirm the exact timestamp of the last successful run.
Easy Invoice relies on a lightweight PHP scheduler (`system/cron.php`) to run automated daily billing, payment reminders, overdue notices, and accounting snapshots without manual intervention.
RECOMMENDED SERVER CRON ENTRY
Add the following entry to your server's crontab (via cPanel Cron Jobs or `crontab -e`):
* * * * * php /path/to/easy-invoice/system/cron.php >/dev/null 2>&1
WHAT THE SCHEDULER AUTOMATES
1. Recurring Invoices: Automatically generates due recurring invoices (`Invoice::generateRecurringInvoices`) and sends them to clients.
2. Automatic Payment Reminders & Overdue Notices: When `task_automatic_payment_reminder` is enabled in Settings > Automation, Easy Invoice automatically emails and/or SMS-notifies clients with upcoming or overdue balances.
3. Daily Accounting Snapshots: When `task_daily_accounting_snapshot` is enabled, Easy Invoice captures end-of-day account balances for historical trend reporting.
4. Custom Interval Hooks: Supports every-minute, 5-minute, 10-minute, 15-minute, 30-minute, hourly, and daily schedules.
ALTERNATIVE HTTP CRON TRIGGER (API V2)
- If your hosting environment prefers URL-based cron pings, Easy Invoice exposes `/api/v2/cron/daily`, `/api/v2/cron/hourly`, `/api/v2/cron/every_five_minutes`, and `/api/v2/cron/every_minute` authenticated via your API key.
VERIFYING CRON EXECUTION
- Check Settings > Automation / Cron Log (`CronLog`) to confirm the exact timestamp of the last successful run.