Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

...

Xero.com module for HostBill enables data export from HostBill billing platform to Xero.com accounting software. The module allows to seamlessly export existing customers, transactions and issued invoices information and set automation rules to export new customers, new recurring invoices and new transactions into Xero.com accounting software.

Activating the module

...

  1. If the plugin is included in your HostBill edition you can download it from your client portal.
  2. If the plugin is not included in your HostBill edition you can purchase it from our marketplace and then download it from the client area.
  3. Once you download the plugin extract it in the main HostBill directory.
  4. Go to Settings → Modules, find and activate Xero.com plugin.
  5. Once the plugin is activated you will be directed to Settings→ Modules→ Plugins to configure the plugin.

...

Fill in the configuration fields

  1. Consumer Key - used by Oauth 1 (deprecated)
  2. Consumer Secret- used by Oauth 1 (deprecated)
  3. Sales Account Code will be used on invoice item as AccountCode in Xero
  4. Bank account ID will be used as AccountID when registering payment in Xero
  5. Private key file used with OAuth 1 (deprecated)
  6. Certificate file
  7. Tick if you want to Export Invoice number

...

  1. - used with OAuth 1 (deprecated)
  2. Export Invoice number - Use Invoice number generated by hostbill when exporting invoices. Reference is always set with hostbill invoice number
  3. Export Bulk Payment - When enabled module will export bulk-payment invoices
  4. Match exported invoice - If an invoice with the same ID exists at Xero.com, it assigns an existing invoice
  5. Export only paid invoices - When enabled, only invoices that are paid in HostBill will be exported
  6. Custom invoice prefix - Prefix that will be added to the invoice number. The maximum length of the prefix, including the invoice number, cannot exceed 255 characters.
  7. API - Select API connection method, OAuth 2 →  is current, Oauth 1 → deprecated
  8. OAuth2 Client ID - Required field for OAuth 2.0, see below for how to obtain it
  9. OAuth2 Client Secret - Required field for OAuth 2.0
  10. Item tax - If checked, it sends information about item tax when exporting an invoice
  11. Invoice note - where to store information about exported Xero invoice number (in HostBill invoice)
  12. Export product code - When enabled product codes will be exported/created in Xero during each invoice export


Image Added


Obtaining credentials from Xero

...

First of all you must have an active Xero account.

Log in to your Xero developer account. 

For App configuration you can use certificate located in module directory, if you generate your own files update appropriate fields in the module's configuration with path to your files.

To use the Xero service you must have a create Code Flow app:

  1. Go to the top menu of the page  My apps
  2. Click on the New App button
  3. Enter the App name and Organisation
  4. Upload your certificate (.cer or .crt) file
  5. Next select the checkbox "Agree Terms" and click on the Create app button
  6. Copy the Consumer Key and enter it in the appropriate field in the module's configuration
  7. Copy the Consumer Secret and enter it in the appropriate field in the module's configuration

Image Removed

Image Removed

...

  1. select Integration type
  2. Set Company or application URL to the value provided in the module description
  3. Set Redirect URI to the value provided in the module description
  4. Accept the Terms & Conditions and Create app
  5. Go to the Configuration tab (make sure the Redirect URI is the same as in the module description)
  6. Press Generate a secret
  7. Set the generated Client id and Client secret in the module configuration as OAuth2 Client ID and OAuth2 Client Secret
  8. In the module configuration, set the API to OAuth 2.0 and save the changes
  9. In the module description, press the OAuth 2.0 button and after the page redirection, log in to your Xero.com account


Image Added

Image Added


Image Added

Clearing out locally stored data

...