Setting up the Cron Job

By default, you can enable the sync to take place automatically when the WHMCS daily cron job runs. We also provide a custom cron.php file which allows the sync to take place outside of the WHMCS daily cron. To configure this, add a cron job similar to the below:

php -q /home/username/public_html/whmcs/modules/addons/xero/cron.php

By default, the cron will run all sync options you have enabled in the module. Alternatively, you can force a specific sync by appending one of these options:

  • sync-xero-payments
  • sync-contacts
  • sync-invoices
  • sync-payments
  • sync-all (to force all sync methods to run regardless of whether they are enabled in the module or not)
For example, to sync only Xero Payments to WHMCS:

php -q /home/username/public_html/whmcs/modules/addons/xero/cron.php sync-xero-payments
  • 418 Users Found This Useful
Was this answer helpful?

Related Articles

Custom Contact Link

You can create a custom link to allow you to click from your Xero contact to WHMCS.To do this,...

Setting up WHMCS Payment Sync

For invoices to be automatically marked as paid in Xero, you must specify Payment Gateway...

Common Sync Errors

Below you can find a list of common errors, their causes, and steps to resolve: Contacts Sync...


Q. How do I find my 'Next Transaction ID'? A. In WHMCS, go to 'Billing' -> 'Transaction...

Installation & Upgrade Instructions

Installing the module is a straightforward process, simply follow the steps below and feel free...