How to Import Xero Invoices to Airtable

Apr 10, 2022Rosie Threlfall

In this guide, we'll import Xero invoices into Airtable. We'll use the Data Fetcher Airtable extension to connect Xero to Airtable and import selected fields from our Xero invoices ('Invoice id', 'Invoice number', 'Amount due', etc.).

You'll need to connect your Xero account in order to sync the invoices into Airtable. Finally, we'll schedule the Airtable Xero integration to sync the invoices automatically.

Install Data Fetcher

Install Data Fetcher from the Airtable marketplace. After the extension launches, sign up for a free Data Fetcher account by entering a password and clicking 'Sign up for free'. If you already have a Data Fetcher account, sign in using the 'Have an account?' button at the bottom left of the box.

Data Fetcher Sign Up

Import Xero Invoices to Airtable

On the home screen of the Data Fetcher extension, click 'Create your first request'. Requests in Data Fetcher are how you import data to or send data from your Airtable base.

Create your first request

On the create request screen in Data Fetcher, for Application, select 'Xero' to use the Airtable Xero integration.

application-xero.png

Under Authorization click 'New' to create a new Connection.

xero-connection.png

You will be taken to a new tab/window where you'll need to authorize Data Fetcher to read from your Xero account. Log onto your Xero account using your username and password.

xero-login.png


Select the Company you want to give access to (for this example, we are using the Demo Company data).

xero-select-company.png

Click on 'Allow Access'.

xero-allow-access.png

In Data Fetcher for Endpoint, select 'List all invoices'.

xero-invoices-endpoint.png

You can also add a Name for your request, e.g. 'Import Xero Invoices'. 

Click 'Save & Continue'.

import-xero-invoices.png

On the next screen, select the Organization you want to import invoices for.

The Statuses option allows you to fetch only invoices that have a specific status (e.g. 'Authorised', 'Deleted', 'Draft' ). Leave this blank to import all invoices.

The Date range option allows you to only import invoices with a date in a particular range. E.g. the last 30 days.

Xero API last 30 days date range.png

Select the Output Table & View you want to import the invoices into.

Click 'Save & Run'.

import-xero-invoices2.png

This request will run, and the Response field mapping window will open. This is where you set which fields from Xero will map to which fields in the output table.

You can easily find the fields you want to import using the 'Find field' search bar.

Make sure you import the 'Invoice id' field, as we will use this to ensure the data we import into Airtable is kept in sync with any changes in Xero. 

We will import the 'Invoice id', 'Invoice number', 'Amount due', 'Contact Name', 'Invoice Date' and 'Status' fields. 

You can choose whether to add these to existing Airtable fields or to create new ones. You can also choose the type of any new field (e.g. Single line text, Multi line text, Email etc.) 

Click 'Save & Run'.

xero-response-mapping.png

Data Fetcher will create any new fields in the output table, then run the request and import all the invoice data from Xero to Airtable. You can now choose to view the output table.

xero-output-table.png

We'll also need to ensure Data Fetcher can match up items in Xero with records in Airtable and check all data is syncing correctly. To do this, click 'Advanced settings' to open the advanced output settings. Then for Update Based on Field, select 'Invoice id'. 

Click 'Save'.

xero-advanced.png

Automatic Airtable Xero Integration

Instead of manually running the Airtable Xero integration, we can use Data Fetcher's schedule feature to automatically import the invoices. This also means any changes you have made to your existing invoices in Xero will sync to Airtable.

To enable this, you'll need a paid Data Fetcher account.

In Data Fetcher, scroll to Schedule and click 'Upgrade'.

table-1-schedule-upgrade-button.png

A new tab will open where you can select a plan and enter your payment details to upgrade.

data fetcher upgrade pricing plans.png

Return to the Data Fetcher extension and click 'I've done this'.

table-1-schedule-ive-done-this-button.png

Under Schedule click '+ Authorize'.

Schedule Data Fetcher

A window will now open where you can authorize the Airtable bases Data Fetcher can have access to.

We recommended selecting 'All current and future bases in all current and future workspaces' to avoid any issues with unauthorized bases in the future.

Click 'Grant access'.

schedule-authorize-bases.jpg

Back in Data Fetcher, you'll see Schedule this request is now toggled on.

Select how often you want the Xero Airtable integration to run, e.g. 'Every 15 mins'. Click 'Save'. The request will now run on the schedule and automatically import any new invoices you have added to Xero, plus sync any changes you have made to existing invoices.

Group 11(2).png

Related Posts

How to Import Xero Contacts to Airtable

How to Import Xero Contacts to Airtable

May 8, 2022

Rosie Threlfall

Xero
How to Import Xero Purchase Orders to Airtable

How to Import Xero Purchase Orders to Airtable

Apr 6, 2022

Rosie Threlfall

Xero