Healthcare Solutions
  • Empower your Participants
  • Getting Started
    • The Maica Lifecycle
    • Installation
    • Reference Data Configuration
    • Post Install Steps
      • Post Install Checklist
    • Software License Agreement
    • NDIA Provider API Outages
    • Getting Started with Client Care
    • The Maica License and Data Model
  • General Information
    • Client Management Settings
      • Agreement Management
      • Renewal Management
      • Program Enrolments
      • Claim Management
        • Reconciling Bulk Payment Request (BPR) File
      • ABA File Management
      • Product Management
      • Statement Management
      • Email Management
      • NDIS Synchronisation
      • Logs Management
      • NDIS Notifications (Webhooks)
      • NDIS Integration
      • Connections Management
      • Opportunity Management
    • Client Care Settings
      • General Settings
      • Planner Management
      • Rostering Management
      • Appointment Management
      • Validation Management
      • Timesheet Management
      • Travel Management
      • Billing Management
      • Billable Client Care Settings
    • Glossary
    • Maica Permissions Sets
    • Maica's Discord Server
  • Participant Management
    • Managing Connections
    • Managing Resource Preferences
    • Participant Selection
    • Record Client Notes
    • Participant PRODA Sync
    • Contact Sharing Rules
    • Billable Client Notes
  • NDIS Management
    • Opportunity Overview
    • Service Agreement Overview
    • Plan Management
      • Participant Overview
      • Plan Overview
      • Service Booking Overview
      • Create Service Booking
      • Manage Service Booking
    • Participant Statement
      • Sending ad-hoc funding statements
      • Manually send monthly funding statements
      • Schedule and automatically send monthly statements
      • Participant Statement Email Template
        • Participant Statement Detail
    • Invoice Management
      • Invoice Overview
      • Payment Request Overview
      • Invoice Entry
        • Alerts & Validation
      • Invoice Scheduling
      • Claim Management
      • Credit Management
      • Invoice Status Management
      • ABA File Generation
  • Aged Care Management
    • Service Agreement Overview
    • Support Category & Items
    • Budget & Funding Management
    • Status & Leave Management
    • Fee Billing Engine Overview
    • Claim Management Overview
    • Invoice and Product Settings
  • Resource Management
    • The Resource Profile
    • Resources Rostering
  • Planner Management
    • The Planner Overview
    • Unavailability & Breaks
    • Appointment Optimiser
  • Appointment Management
    • The Appointment Profile
    • Creating Appointments
      • Appointment Sections
      • Step 1: Basic Details
      • Step 2: Location
      • Step 3: Recurrence
      • Step 4: Additional Details
      • Step 5: Custom Fields
      • Step 6: Client Note(s)
      • Step 7: Completion
    • Managing Appointments
      • Editing Appointments
      • Checking into Appointments
      • Checking out of Appointments
      • Storing Appointment Files
      • Capturing Signatures
      • Completing Appointments
    • Appointment Cost Calculation
    • Service Agreement Leave
    • Appointment Validation
  • Client Care Reference Data
    • Skills Management
    • Delivery Activities
    • Appointment Services
    • Checklist Management
    • Client Note Templates
  • Maica Billing Processes
    • Maica Billing Processes
      • Invoice Generation Flow Logic
      • Invoice Dispatch Flow Logic
      • Manual Appointment Billing
      • Appointment Travel Billing
    • Xero Synchronisation
    • Xero Connection Configuration
  • Data Imports
    • Import Support Item Catalogue
    • Importing Historical Invoices
  • Log Management
    • Log Object
    • Synchronisation Logs
    • Maica Logs Report
    • Delete Logs
    • Known Issues & Gotchas
  • NDIS Notifications
    • Overview
    • How to setup
    • Events
  • Additional Information
    • Maica Client Care Releases
    • Maica Development Roadmap
    • Maica PACE Compliance Setup
Powered by GitBook
On this page
  • Named Credentials
  • Updating Client Management Settings
  • Salesforce Auth Provider
  • Get Values from your Xero Instance
  • Creating a Xero Web App
  • Creating a Site
  • Configuring the Redirect URL
  • Enabling Authentication Flow
  • Configuring Webhooks
  • Site Settings
  • Invoices
  1. Maica Billing Processes

Xero Connection Configuration

Learn about how to connect Xero to Maica to enable the synchronisation.

PreviousXero SynchronisationNextImport Support Item Catalogue

Last updated 1 year ago

When you first enter Client Management Settings, you will be prompted with the following error message, which states that there are no credentials named ‘Maica_Xero’

At the bottom of the page, you will see an ‘Edit’ button. Click on this, followed by ‘Add New Connection’, which is under the Active Connections subheading. After you press this button, you will be taken to the Named Credentials page.

Named Credentials

You must now create a credential.

Field
Value

Label

Maica Xero

Name

Maica_Xero

URL

Identity Type

Named Principal

Authentication Protocol

OAuth 2.0

Authentication Provider

Scope

offline_access openid profile email accounting.transactions accounting.contacts accounting.journals.read accounting.settings

You can untick the checkbox titled 'Start Authentication Flow on Save' and you can save, once all the fields above are completed. After you have saved, return to Client Management Settings. You should now see the following error message

Updating Client Management Settings

In Client Management Settings, click Edit and enable Xero Management in the top-right corner. Then, select the following options.

Note: You may need to activate Xero Invoice Sync Flow, and Webhooks will not be available unless you have already created and activated the site.

Salesforce Auth Provider

Next, we need to create the Authentication Provider. In the top left of the screen, you will see a Quick Find search option. Search ‘auth’ and select the Auth. Providers option. Make sure you right click and open link in new tab, so you do not lose your current page.

A Salesforce Auth Provider to set up the technical connection to the Xero financial system, as shown below:

The following values apply when configuring the Salesforce Auth Provider:

Field
Value

Auth Provider Id

Salesforce generated

Provider Type

Open ID Connect

Name

Xero

URL Suffix

Xero

Consumer Key

Consumer Secret

Authorize Endpoint URL

Token Endpoint URL

Use Proof Key for Code Exchange

Ticked

Default Scope

offline_access openid profile email accounting transactions accounting. contacts accountingjournals.read accounting.settings

Send Access Token in Header

Ticked

Include Consumer Secret in...

Ticked

Test-Only Initialization URL

OAuth-Only Initialization URL

Callback URL

Single Logon URL

Get Values from your Xero Instance

In order to complete Salesforce Auth Provider configuration, you need to log into your Xero instance to retrieve the values marked above. These can be found within the following sections:

Consumer Key and Consumer Secret

Initialization URLs

Creating a Xero Web App

Now, you can go to Configuration and copy the Client ID and Client Secret, which are the Consumer Key and Consumer Secret respectively.

Creating a Site

Go to the Sites section in Setup. You can find this using the Quick Find in the top-left corner. Now, create a new site. Note: you may need to check the following box to accept the terms and conditions

The following values apply when configuring the site.

Field
Value

Site Label

Webhooks

Site Name

Webhooks

Site Contact

Generic

Default Record Owner

Generic

Active Site Home Page

ParticipantStatement

Configuring the Redirect URL

The Redirect URL is the Callback URL from the Auth. Provider, as shown below.

Enabling Authentication Flow

Return to your Named Credential and edit. Now, you can select the 'Start Authentication Flow on Save' box and click Save. You should be redirected to Xero, where you will be prompted with the following screen.

Allow access. You will be brought back to the Named Crediential and will notice that the Authentication Status is now Authenticated. Now, in Client Management Settings, we can setup Webhooks.

Configuring Webhooks

Your Client Management Settings page should look like this

Edit, and enable Xero Management. Select the Tenant 'Active' checkbox. Finally, make sure Webhooks is selected as Notifications Endpoint (Site) and Xero Invoice Sync Flow is selected for Syncronisation, as shown in the photo above.

Now, we need to populate the Webhooks Key and set up the URL. This is done from the Xero site.

Go to your App, then under Webhooks, complete the options as shown below. The URL comes from the URL under Webhooks in Client Management Settings, which is shown above.

When you save, you will be given a Webhooks key which can be copy and pasted into Client Management Settings. Now, you can save the settings and you should be prompted with the following message.

Site Settings

Now, double check the following settings in Salesforce. First, go to Sites and click on the Site Label Webhooks. This will take you to a page where you will see a button named Public Access Settings. Now, click on Apex Class Access, edit and ensure that maica.vertic_RestService is enabled. Then, search for REST in the Find Settings searchbar and select Apex Rest Services. Make sure that the checkbox Apex REST Services is enabled.

Back in Xero, click the following button after you have saved the settings in Salesforce.

Invoices

In the top right, you will see an option to Sync with Xero. Note: it may be in the drop down menu

Please click confirm to initiate the Sync

To access the consumer key and consumer secret, you will need to log into using your credentials and follow the below steps:

(only do this once)

Now, you can return to and select your newly created Authentication Provider.

First, login to Xero using the link . Next, you need to go to App Management in the developer website, which can be found using the link . The account should be the same one that you have used to login previously.

Create a new app, with Company URL . The redirect URL can be , but for now use a dummy URL such as .

After saving, ensure that you activate the site. Now, return to .

Go to , which will take you to a dashboard. Under Business - Invoices, you will see the invoices.

In case of any errors, refer to article within this knowledge base.

developer.xero.com
https://login.xero.com/
https://developer.xero.com/app/manage
https://go.xero.com
Xero Sync
Create a Xero Web App
Named Credentials
https://api.xero.com/api.xro/2.0/
http://localhost:8000
configured later
Client Management Settings
https://api.xero.com
https://login.xero.com/identity/connect/authorize
https://identity.xero.com/connect/token
See Salesforce Auth Provider
Get from your Xero Instance
Get from your Xero Instance
Get from your Xero Instance
Get from your Xero Instance
Get from your Xero Instance
Get from your Xero Instance
Error Message
Second Error Message
Updated Client Management Settings
Quick Find
Salesforce Auth Provider
Xero App Details
Creating an App
Checkbox to Accept Terms and Conditions
Creating a Site
Callback URL, which is required for the Redirect URL
Xero Prompt
Client Management Settings
Webhooks Key and URL
Webhooks Settings in App
Success Prompt
Rest Service
Apex REST Services
Intent to Receive Buttom in Xero
Sucessful Intent to Receive
Sync Confirmation Message
Sync Success Message