Get Started Get Started

Setup the Xero Integration

The Xero integration keeps your contacts, sales and payments in step between Oncord and Xero, so you don't have to enter them twice. It is for businesses that sell through Oncord Commerce and keep their accounts in Xero. This guide covers connecting Xero, configuring the sync and checking that sales arrive correctly.

Before You Begin

  • The Xero integration requires Oncord's Commerce feature. Until Commerce is enabled, the Xero box shows Requires Commerce instead of Enable.
  • Enable Marketing as well if you want to send campaigns using your Xero data. Manage your features under Dashboard > Settings > Features (see Changing Your Oncord Plan).
  • The first 100 sales each month are free. After that, a fee applies for each further 100 sales. The Xero box on the Third Party Integrations page shows the current price.
  • You need a Xero account. If you don't have one, sign up on the Xero website: www.xero.com. Log in to Xero before you start, as this makes the connection steps easier.
  • Oncord recommends setting lock dates in Xero before you start, so that only the invoices you want to sync are included.

What Data Is Synchronised?

From Oncord From Xero
Contacts
  • Only contacts with sales are sent to Xero.
  • Changing a contact's details anywhere in Oncord also updates Xero.
  • Deleting a contact in Oncord doesn't delete it in Xero.
Contacts
  • Only contacts that Xero marks as customers are pulled into Oncord.
  • Changes to a customer's details in Xero are reflected in Oncord.
  • Deleting a contact in Xero doesn't remove it from Oncord.
Sales
  • Sales in Oncord are sent to Xero.
  • Changes to a sale are sent to Xero.
  • Deleting a sale that was created in Oncord and linked to Xero asks Xero to void the matching invoice or credit note. Sales originally imported from Xero are not voided.
Invoices
  • Sales invoices are pulled into Oncord once they are approved or paid in Xero. Draft invoices are not pulled.
  • By default, only invoices created or changed after you connect are pulled. To import older invoices, use Modified Since a Specified Date when you run a bulk sync (see Bulk Synchronise below).
  • This helps you send marketing based on your Xero sales data.
  • Changes to invoices in Xero are reflected in Oncord.
  • Deleting an invoice in Xero doesn't delete the sale in Oncord.
  • Voiding an invoice in Xero removes the sale from Oncord if the invoice was created in Xero. If the sale was created in Oncord, Oncord keeps it and reports the difference in a discrepancy alert email.
Receipts
  • Receipts in Oncord create payments in Xero when their payment method is mapped to a Xero account (see Payment Method Mappings below).
  • Deleting a receipt in Oncord doesn't delete the payment in Xero.
Payments
  • Payments in Xero create receipts in Oncord, depending on your Payment Method Mappings.
  • This helps you reconcile direct deposit payments from the bank feed.
  • Deleting a payment in Xero doesn't delete the receipt in Oncord.

Before deleting a sale: If the sale was created in Oncord and is linked to Xero, Oncord asks Xero to mark its invoice or credit note as VOIDED. Xero may reject the request, so check the result in Xero after deleting the sale. Sales originally imported from Xero are not voided. Don't assume that restoring a deleted sale in Oncord reverses a change already made in Xero.

Connect Xero

  • Go to Dashboard > Settings > Third Party Integrations.
  • In the Xero box, click Enable. The Connect Xero dialog opens.

  • Click Connect to Xero. Xero opens and asks you to give Oncord access to your Xero organisation.
  • In Xero, select the organisation you want to sync with and click Authorise.

  • If you authorised more than one organisation, Oncord asks you to Select Xero Organisation to Connect. Choose the Organisation and click Continue >.
  • Oncord opens Xero Configuration. Continue with the next section.

Configure Xero

Oncord opens Xero Configuration as soon as you connect. To change these settings later, click Configuration in the Xero box on the Third Party Integrations page. Check each setting carefully before you sync.

Contacts

  • Default Marketing Status for New Contacts who are Customers - The marketing status given to new contacts pulled from Xero: Pending, Subscribed or Unsubscribed. The default is Subscribed, so check that it matches the consent your customers have given.

Sales

  • Synchronise Sales - Tick Synchronise Sales with Xero to sync sales. The settings below appear once it is ticked.
  • Do You Only Use Oncord for Invoicing? - Choose Only Oncord generates invoices, or Xero and/or other software also generate invoices.
  • Invoice Prefix for Oncord Invoices - Appears when Xero or other software also generates invoices. Oncord adds this prefix (default WEB-) to the invoice numbers it sends to Xero. If you leave it blank, make sure invoice numbers don't conflict between the systems.
  • Default Item Allocation Account - The income account used for sale items that have no account set on their product or category. When you connect, Oncord selects 200 - Sales if your chart of accounts has it.
  • Discount Account - Xero only supports discounts on individual lines, not on the entire sale. Oncord sends discounts applied to the total of a sale to this account.

Tax Rates

  • For Domestic Items - Default OUTPUT.
  • For Domestic Items Exempt from Tax - Default EXEMPTOUTPUT.
  • For Export Items Exempt from Tax - Default EXEMPTEXPORT.

Payment Method Mappings

Receipts in Oncord sync with payments in Xero. Each payment method enabled in Oncord has its own row: choose the Xero account its payments belong to. A method left on Don't Synchronise doesn't sync.

  • For direct deposit, choose the bank account your customers pay into.
  • For PayPal, choose your PayPal account in Xero.
  • For credit card payments, create a clearing account in your Xero chart of accounts, such as "Credit Card Clearing", and choose it here. See Xero's guide to handling payment processor receipts.
  • Cash and other manual payment methods can also use a settlement account.
  • Link every payment method to a Xero account.

Discrepancy Alert Notifications

  • Discrepancy Alert E-mail Addresses - Enter the addresses to notify when a change to an invoice or payment needs manual attention.

Auto-Sync

  • Auto-Sync - Leave this on Disabled until you have tested a few sales (see the next sections), then set it to Enabled.
  • Click Save Configuration.

Configure Income Accounts

For clearer Profit and Loss reporting, it's common to separate revenue into different accounts. Oncord links sale items with revenue accounts in Xero: each product or product category in Oncord can use its own Xero income account.

  • In Xero, go to Accounting > Chart of Accounts and create a revenue account for each type of income you report on.

  • In Oncord, edit each product category or product.
  • Under Xero Income Account, choose Use Other... and select the Xero account.
  • Save the product category or product.

When Oncord sends a sale item to Xero, it uses the first income account it finds:

  • The account set on the product.
  • The account set on the product's categories, then on their parent categories.
  • The Default Item Allocation Account in Xero Configuration.

The Use Existing from option on a product or category shows which account it currently inherits.

Synchronise a Test Invoice

  • Go to Dashboard > Commerce > Sales and click New Sale.
  • Create a test sale, then open it.
  • In the top right of the sale, open the menu next to the Xero icon and click Sync with Xero.
  • When the sale has synced, the icon turns from grey to blue.
  • Click the Xero icon to open the invoice in Xero and check it.

  • Repeat with several different sales to check that the data reaches Xero correctly.

Bulk Synchronise

  • Go to Dashboard > Settings > Third Party Integrations.
  • In the Xero box, click Synchronise.
  • Under Send, choose which sales to send in Send Sales Data to Xero: Modified Since Last Sync Date, Range of Sales by Id or Range of Sales by Date.
  • Under Receive, choose which Xero invoices to import in Receive Sales Data from Xero: Modified Since Last Sync Date or Modified Since a Specified Date. Use a specified date to import invoices from before you connected.
  • Click Synchronise. Oncord shows the progress of the sync.

When Does It Sync?

Automatic sync is off until you set Auto-Sync to Enabled in Xero Configuration. The Auto-Sync setting appears once Synchronise Sales with Xero is ticked.

With Auto-Sync enabled, changes in Oncord normally queue a sync with Xero about two minutes later. Timing can vary, and a sync already queued for an earlier time is not delayed by later changes.

When there are no changes in Oncord, background sync checks Xero approximately every six hours. You can also start a sync at any time with Synchronise in the Xero box.

Merging Contacts

The Xero API doesn't support merging contacts, so a merge in Oncord isn't made in Xero. To merge duplicate contacts, merge them in both systems:

  • In Xero, go to Contacts and merge the duplicate contacts with Xero's merge feature.
  • In Oncord, go to Dashboard > Customers > Contacts and merge the matching duplicate contacts (see Merging Contacts).

If you merge contacts in Xero but not in Oncord, the next sync detects the merge and links the Oncord contact to the remaining Xero contact. Merging in both systems is still recommended.

Payment Reconciliation Notes

When your Payment Method Mappings are set up correctly, payments reconcile and sync as follows.

  • Customer pays by direct deposit
    • Oncord doesn't take payment straight away, so the invoice is unpaid.
    • The customer pays by direct deposit. In Xero, the bank statement line is allocated to the invoice, and the invoice is paid in Xero.
    • At the next sync, the invoice is marked paid in Oncord.
  • Customer pays by PayPal
    • Oncord takes payment straight away and marks the invoice paid.
    • In Xero, a payment is allocated to your PayPal account.
    • When you reconcile your PayPal account, each customer payment for an invoice should show a green match to that invoice.
  • Customer pays by credit card
    • Oncord takes payment straight away and marks the invoice paid.
    • Oncord allocates the payment in Xero to your Credit Card Clearing account (debit).
    • When the lump sum settlement arrives a day or two later, allocate it to the Credit Card Clearing account (credit).
    • At the end of this process, the clearing account should have a balance of $0.
  • Customer pays by EFTPOS
    • Oncord takes payment straight away and marks the invoice paid.
    • Oncord allocates the payment in Xero to an EFTPOS clearing account (debit).
    • When the lump sum settlement arrives the next day, allocate it to the EFTPOS clearing account (credit).
  • Customer pays by cash
    • When cash is recorded in Oncord, the invoice is marked paid.
    • How it reconciles depends on how you handle cash payments in Xero.

Disconnect Xero

  • Go to Dashboard > Settings > Third Party Integrations.
  • In the Xero box, click Remove.
  • Confirm that you want to remove the integration.

Removing the integration deletes its configuration and any changes still waiting to sync. To use Xero again, connect and configure it from the start.