KashFlow Accounting

From WHMCS Documentation

Revision as of 17:35, 9 September 2021 by SarahK (talk | contribs)

KashFlow is an accounting system for small businesses, particularly for businesses in the UK. This addon automates the entry of paid invoices into the KashFlow system.

The sync process runs as part of the daily cron job and creates clients, invoices, and transactions in KashFlow to mirror the invoice and transaction records in WHMCS.

Additional Requirements

The KashFlow API requires SOAP in your server's PHP build. To check whether you have this, go to Utilities > System > PHP Info in WHMCS. If you do not see references to SOAP, you will need to recompile PHP.

Installation

To install this addon:

  1. Download the latest version from https://marketplace.whmcs.com/product/2546.
  2. Unzip the files.
  3. Upload the kashflow folder from the ZIP file to the /modules/addons/ directory in WHMCS.
  4. Go to Configuration () > System Settings > Addon Modules or, prior to WHMCS 8.0, Setup > Addon Modules within the WHMCS Admin Area.
  5. Click Activate for the new KashFlow module.

Configuration

Kashflow API Settings
Kashflow IP Authorisation
Kashflow Module Configuration

To configure this addon:

  1. Log in to the Kashflow control panel.
  2. Go to Settings > External Services > API Settings.
  3. Check the following options:
    1. Enabled
    2. Restrict Access to specific IP Addresses
    3. Separate API password
  4. Click edit addresses list.
  5. Add your server's IP address to the Authorised IP Addresses list.
  6. Return to the previous page and enter an API password.
  7. Log in to the WHMCS Admin Area.
  8. Go to Configuration () > System Settings > Addon Modules or, prior to WHMCS 8.0, Setup > Addon Modules.
  9. Click Activate.
  10. Enter your KashFlow ysername and API password.
  11. Click Save Changes.
  12. When the new selection of fields appears, choose the KashFlow payment method and bank account to assign to transactions for each WHMCS payment gateway when syncing.
  13. Save your changes.

The Syncing Process

If it is enabled, the sync process runs as part of the daily cron job.

  • The module can process a maximum of 200 invoices each time.
  • The system records errors in the log at Utilities > Activity Log. We recommend that you review this periodically.
  • The first few runs may require a longer period of time as they attempt to sync all existing customers and paid invoices.

Multi-Currency Support

Both WHMCS and Kashflow support the use of multiple currencies.

When you use this:

  1. WHMCS will connect to KashFlow and retrieve the configured currencies.
  2. WHMCS will match the KashFlow currency codes with the codes in WHMCS.
  3. When creating client accounts in KashFlow via this integration, WHMCS sends the appropriate currency ID. The currency code must match.

Make sure to configure all of your currencies in both KashFlow and WHMCS. You can find your configured currencies in WHMCS at Configuration () > System Settings > Currencies or, prior to WHMCS 8.0, Setup > Payments > Currencies.

Common Problems

KashFlow: Error Inserting Transaction xx

Seeing this error in the logs indicates that the transaction data does not meet Kashflow's requirements. Review the information at Billing > Transactions List and Billing > Invoices to ensure that all transactions and invoices have an assigned payment gateway and that transactions have a transaction ID.

Error Inserting Customer x: Customer Code is not unique

Seeing this error in the logs after Kashflow synchronisation indicates that the client's email address no longer matches the email address in Kashflow. To resolve this, update the client's email address in Kashflow to match it in WHMCS.