Our Xero integration is currently in Closed Beta. As such, the info in this article may change.
Interested in participating in the beta? Get in touch with us.
Release Status | Closed Beta | Availability | Free |
Status Page | Xero Status Page | Default Historical Sync | 1 year |
Whitelist Tables/Columns | Unsupported/Unsupported | Default Replication Frequency | 6 hours |
Full Table Endpoints | 8 | Incremental Endpoints | 17 |
Destination Incompatibilities | None |
Connecting Xero
Connecting your Xero data to Stitch is a four-step process:
- Add Xero as a Stitch data source
- Define the Historical Sync
- Define the Replication Frequency
- Authorize Stitch to access Xero
Add Xero as a Stitch Data Source
- On the Stitch Dashboard page, click the Add an Integration button.
-
Click the Xero icon.
-
Enter a name for the integration. This is the name that will display on the for the integration; it’ll also be used to create the schema in your data warehouse.
For example, the name “Stitch Xero” would create a schema called
stitch_xero
in the data warehouse. This schema is where all the tables for this integration will be stored.
Defining the Historical Sync
The Sync Historical Data setting will define the starting date for your Xero integration. This means that data equal to or newer than this date will be replicated to your data warehouse.
Change this setting if you want to sync data beyond Xero’s default setting of 1 year. For a detailed look at historical syncs, check out the Syncing Historical SaaS Data article.
Define the Replication Frequency
The Replication Frequency controls how often Stitch will attempt to replicate data from your Xero integration. By default the frequency is set to 6 hours, but you can change it to better suit your needs.
Before setting the Replication Frequency, note that:
- The more often Xero is set to replicate, the higher the number of replicated rows.
-
The number of rows in the source may not equal the number of rows replicated by Stitch. Tables that use Full Table Replication will result in a higher number of replicated rows.
- If you’re using a data warehouses that doesn’t natively support nested structures, you’ll see a higher number of replicated rows due to the de-nesting Stitch performs.
To help prevent overages, we recommend setting the Replication Frequency to something less frequent - like 6 hours instead of 30 minutes. For tips on reducing your row count, check out the Reducing Your Row Count section of our Billing Guide.
After selecting a Replication Frequency, click Save Integration.
Authorizing Stitch to Access Xero
Lastly, you’ll be directed to Xero’s website to complete the setup.
- Enter your Xero credentials and click Login.
- A screen asking for authorization to Xero will display. Note that Stitch will only ever read your data.
- From the dropdown menu, select the company you want to connect to Stitch.
- Click Authorise.
- After the authorization process successfully completes, you’ll be redirected back to Stitch.
- Click All Done.
Xero’s Intial Sync
After you finish setting up Xero, you might see its Sync Status show as Pending on either the Stitch Dashboard or in the Integration Details page.
For a new integration, a Pending status indicates that Stitch is in the process of scheduling the initial sync for the integration. This may take some time to complete.
Xero Schema
Stitch's Xero integration includes these tables:
- xero_accounts
- xero_bank_transactions
- xero_bank_transfers
- xero_branding_themes
- xero_contacts
- xero_contact_groups
- xero_credit_notes
- xero_currencies
- xero_employees
- xero_expense_claims
- xero_invoices
- xero_items
- xero_journals
- xero_linked_transactions
- xero_manual_journals
- xero_organisation
- xero_overpayments
- xero_payments
- xero_prepayments
- xero_purchase_orders
- xero_receipts
- xero_repeating_invoices
- xero_tax_rates
- xero_tracking_categories
- xero_users
xero_accounts
Replication Method: Incremental
Primary Key: accountid
Contains Nested Structures?:
No
xero_accounts
table contains info about the various accounts (ex: banking) connected to your Xero account.xero_accounts Attributes
While we try to include everything Xero has here, this may not be a full list of attributes. Refer to Xero's documentation for a full list and description of each attribute.
Account ID (
accountid
)code
name
type
bankaccountnumber
taxtype
enablepaymentstoaccount
bankaccounttype
currencycode
systemaccount
reportingcode
reportingcodename
hasattachments
updateddateutc
xero_bank_transactions
Replication Method: Incremental
Primary Key: banktransactionid
Contains Nested Structures?:
Yes
xero_bank_transactions
table contains information about any bank transactions - for example, overpayments, prepayments, spend, etc. - in your Xero account.xero_bank_transactions & Nested Structures
This table contains nested structures. If you use a data warehouse that doesn't natively support nested structures, some of the attributes listed below may be in a subtable.
These items are marked with a *
xero_bank_transactions Attributes
While we try to include everything Xero has here, this may not be a full list of attributes. Refer to Xero's documentation for a full list and description of each attribute.
Bank Transaction ID (
banktransactionid
)contact__contactid
contact__contactstatus
bankaccount
isreconciled
date
reference
currencycode
currencyrate
url
status
subtotal
totaltax
total
overpaymentid
updateddateutc
hasattachments
xero_bank_transfers
Replication Method: Incremental
Primary Key: banktransferid
Contains Nested Structures?:
No
xero_bank_transfers
table contains info about bank transfers.xero_bank_transfers Attributes
While we try to include everything Xero has here, this may not be a full list of attributes. Refer to Xero's documentation for a full list and description of each attribute.
Bank Transfer ID (
banktransferid
)frombankaccount
*
tobankaccount
*
amount
date
currencyrate
frombanktransactionid
tobanktransactionid
hasattachments
createddateutc
xero_branding_themes
Replication Method: Full Table
Primary Key: brandingthemeid
Contains Nested Structures?:
No
xero_branding_themes
table contains info about the branding themes defined for a Xero organisation.xero_branding_themes Attributes
While we try to include everything Xero has here, this may not be a full list of attributes. Refer to Xero's documentation for a full list and description of each attribute.
Branding Theme ID (
brandingthemeid
)name
sortorder
createddateutc
xero_contacts
Replication Method: Incremental
Primary Key: contactid
Contains Nested Structures?:
Yes
xero_contacts
table contains info about the contacts in a Xero organisation.xero_contacts & Nested Structures
This table contains nested structures. If you use a data warehouse that doesn't natively support nested structures, some of the attributes listed below may be in a subtable.
These items are marked with a *
xero_contacts Attributes
While we try to include everything Xero has here, this may not be a full list of attributes. Refer to Xero's documentation for a full list and description of each attribute.
Contact ID (
contactid
)accountnumber
accountspayabletaxtype
accountsreceivabletaxtype
addresses
*
balances__accountspayable__outstanding
balances__accountspayable__overdue
balances__accountsreceivable__outstanding
balances__accountsreceivable__overdue
bankaccountdetails
batchpayments__bankaccountname
batchpayments__bankaccountnumber
batchpayments__code
batchpayments__details
batchpayments__reference
batchpayments__brandingthemeid
batchpayments__name
contactstatus
contactgroups
*
contactpersons
defaultcurrency
emailaddress
firstname
hasattachments
hasvalidationerrors
iscustomer
issupplier
lastname
name
phone
*
skypeusername
taxnumber
updateddateutc
xero_contact_groups
Replication Method: Full Table
Primary Key: contactgroupid
Contains Nested Structures?:
No
xero_contact_groups
table contains info about the contact groups in a Xero organisation.xero_contact_groups Attributes
While we try to include everything Xero has here, this may not be a full list of attributes. Refer to Xero's documentation for a full list and description of each attribute.
Contact Group ID (
contactgroupid
)name
status
contacts
xero_credit_notes
Replication Method: Incremental
Primary Key: creditnoteid
Contains Nested Structures?:
Yes
xero_credit_notes
table contains info about the credit notes in your Xero organisation.xero_credit_notes & Nested Structures
This table contains nested structures. If you use a data warehouse that doesn't natively support nested structures, some of the attributes listed below may be in a subtable.
These items are marked with a *
xero_credit_notes Attributes
While we try to include everything Xero has here, this may not be a full list of attributes. Refer to Xero's documentation for a full list and description of each attribute.
Credit Note ID (
creditnoteid
)type
contact__id
contact__hasvalidationerrors
name
date
status
lineamounttypes
lineitems
*
subtotal
totaltax
total
updateddateutc
currencycode
fullypaidondate
creditnotenumber
reference
senttocontact
currencyrate
remainingcredit
allocations
*
brandingthemeid
hasattachments
xero_currencies
Replication Method: Full Table
Primary Key: code
Contains Nested Structures?:
No
xero_currencies
table contains info about the currencies set up for your Xero organisation.xero_currencies Attributes
While we try to include everything Xero has here, this may not be a full list of attributes. Refer to Xero's documentation for a full list and description of each attribute.
Currency Code (
code
)description
xero_employees
Replication Method: Incremental
Primary Key: employeeid
Contains Nested Structures?:
No
xero_employees
table contains info about the employees used in Xero payrun.xero_employees Attributes
While we try to include everything Xero has here, this may not be a full list of attributes. Refer to Xero's documentation for a full list and description of each attribute.
Employee ID (
employeeid
)status
firstname
lastname
updateddateutc
xero_expense_claims
Replication Method: Incremental
Primary Key: expenseclaimid
Contains Nested Structures?:
No
xero_expense_claims
table contains info about the expense claims for your Xero organisation.xero_expense_claims Attributes
While we try to include everything Xero has here, this may not be a full list of attributes. Refer to Xero's documentation for a full list and description of each attribute.
Expense Claim ID (
expenseclaimid
)user__emailaddress
user__firstname
user__lastname
user__issubscriber
user__organisationrole
user__updateddateutc
user__userid
receipts
payments
status
total
amountdue
amountpaid
paymentduedate
reportingdate
updateddateutc
xero_invoices
Replication Method: Incremental
Primary Key: invoiceid
Contains Nested Structures?:
Yes
xero_invoices
table contains info about the sales invoices and purchase bills for your Xero organisation.xero_invoices & Nested Structures
This table contains nested structures. If you use a data warehouse that doesn't natively support nested structures, some of the attributes listed below may be in a subtable.
These items are marked with a *
xero_invoices Attributes
While we try to include everything Xero has here, this may not be a full list of attributes. Refer to Xero's documentation for a full list and description of each attribute.
Invoice ID (
invoiceid
)amountcredited
amountdue
amountpaid
brandingthemeid
contact__contactid
contact__hasvalidationerrors
contact__name
creditnotes
*
currencycode
currencyrate
date
duedate
fullypaidondate
hasattachments
haserrors
invoicenumber
isdiscounted
lineamounttypes
lineitems
*
payments
prepayments
overpayments
reference
senttocontact
status
subtotal
total
totaldiscount
totaltax
type
updateddateutc
xero_items
Replication Method: Incremental
Primary Key: itemid
Contains Nested Structures?:
No
xero_items
table contains info about the goods and services in your Xero account.xero_items Attributes
While we try to include everything Xero has here, this may not be a full list of attributes. Refer to Xero's documentation for a full list and description of each attribute.
Item ID (
itemid
)code
inventoryassetaccountcode
name
issold
ispurchased
description
purchasedescription
purchasedetails__accountcode
purchasedetails__cogsaccountcode
purchasedetails__taxtype
purchasedetails__unitprice
salesdetails__accountcode
salesdetails__taxtype
salesdetails__unitprice
istrackedasinventory
totalcostpool
quantityonhand
updateddateutc
xero_journals
Replication Method: Incremental
Primary Key: journalid
Contains Nested Structures?:
Yes
xero_journals
table contains info about the journals in your Xero account.xero_journals & Nested Structures
This table contains nested structures. If you use a data warehouse that doesn't natively support nested structures, some of the attributes listed below may be in a subtable.
These items are marked with a *
xero_journals Attributes
While we try to include everything Xero has here, this may not be a full list of attributes. Refer to Xero's documentation for a full list and description of each attribute.
Journal ID (
journalid
)createddateutc
journaldate
journalnumber
reference
sourceid
sourcetype
xero_linked_transactions
Replication Method: Full Table
Primary Key: linkedtransactionid
Contains Nested Structures?:
No
xero_linked_transactions
table contains info about the billable expenses in your Xero account.xero_linked_transactions Attributes
While we try to include everything Xero has here, this may not be a full list of attributes. Refer to Xero's documentation for a full list and description of each attribute.
Linked Transaction ID (
linkedtransactionid
)sourcetransactionid
sourcelineitemid
contactid
targettransactionid
targetlineitemid
status
type
sourcetransactiontypecode
updateddateutc
xero_manual_journals
Replication Method: Incremental
Primary Key: manualjournalid
Contains Nested Structures?:
Yes
xero_manual_journals
table contains info about the manual journals in your Xero account.xero_manual_journals & Nested Structures
This table contains nested structures. If you use a data warehouse that doesn't natively support nested structures, some of the attributes listed below may be in a subtable.
These items are marked with a *
xero_manual_journals Attributes
While we try to include everything Xero has here, this may not be a full list of attributes. Refer to Xero's documentation for a full list and description of each attribute.
Manual Journal ID (
manualjournalid
)narration
date
lineamounttypes
status
url
showoncashbasisreports
hasattachments
updateddateutc
xero_organisation
Replication Method: Full Table
Primary Key: taxnumber
Contains Nested Structures?:
Yes
xero_organisation
table contains info about your Xero organisation.xero_organisation & Nested Structures
This table contains nested structures. If you use a data warehouse that doesn't natively support nested structures, some of the attributes listed below may be in a subtable.
These items are marked with a *
xero_organisation Attributes
While we try to include everything Xero has here, this may not be a full list of attributes. Refer to Xero's documentation for a full list and description of each attribute.
taxnumber
addresses
*
basecurrency
countrycode
createddateutc
defaultpurchasetax
defaultsalestax
financialyearendday
financialyearendmonth
isdemocompany
legalname
lineofbusiness
name
organisationentitytype
organisationstatus
organisationtype
paymentterms__bills__day
paymentterms__bills__type
paymentterms__sales__day
paymentterms__sales__type
paystax
periodlockdate
phones
*
salestaxbasis
salestaxperiod
shortcode
timezone
version
xero_overpayments
Replication Method: Incremental
Primary Key: overpaymentid
Contains Nested Structures?:
Yes
xero_overpayments
table contains info about overpayments in your Xero account.xero_overpayments & Nested Structures
This table contains nested structures. If you use a data warehouse that doesn't natively support nested structures, some of the attributes listed below may be in a subtable.
These items are marked with a *
xero_overpayments Attributes
While we try to include everything Xero has here, this may not be a full list of attributes. Refer to Xero's documentation for a full list and description of each attribute.
Overpayment ID (
overpaymentid
)type
contact__contactid
contact__name
date
status
lineamounttypes
lineitems
*
subtotal
totaltax
total
currencycode
currencyrate
remainingcredit
allocations
*
payments
hasattachments
xero_payments
Replication Method: Incremental
Primary Key: paymentid
Contains Nested Structures?:
No
xero_payments
table contains info about the payments - invoice, credit note, prepayment, or overpayment - in your Xero account.xero_payments Attributes
While we try to include everything Xero has here, this may not be a full list of attributes. Refer to Xero's documentation for a full list and description of each attribute.
Payment ID (
paymentid
)accountid
code
date
currencyrate
amount
reference
status
paymenttype
updateddateutc
xero_prepayments
Replication Method: Incremental
Primary Key: prepaymentid
Contains Nested Structures?:
No
xero_prepayments
table contains info about the preypayments in your Xero account.xero_prepayments Attributes
While we try to include everything Xero has here, this may not be a full list of attributes. Refer to Xero's documentation for a full list and description of each attribute.
Prepayment ID (
prepaymentid
)type
contact__contactid
contact__name
date
status
lineamounttypes
lineitems
*
subtotal
totaltax
total
currencycode
currencyrate
remainingcredit
allocations
*
hasattachments
updateddateutc
xero_purchase_orders
Replication Method: Incremental
Primary Key: purchaseorderid
Contains Nested Structures?:
No
xero_purchase_orders
table contains info about the purchase orders in your Xero account.xero_purchase_orders Attributes
While we try to include everything Xero has here, this may not be a full list of attributes. Refer to Xero's documentation for a full list and description of each attribute.
Purchase Order ID (
purchaseorderid
)contact__contactid
contact__name
date
deliverydate
lineamounttypes
reference
brandingthemeid
currencycode
status
senttocontact
deliveryaddress
attentionto
telephone
deliveryinstructions
expectedarrivaldate
purchaseordernumber
currencyrate
subtotal
totaltax
totaldiscount
hasattachments
updateddateutc
xero_receipts
Replication Method: Incremental
Primary Key: receiptid
Contains Nested Structures?:
Yes
xero_receipts
table contains info about the expense claim receipts in your Xero account.xero_receipts & Nested Structures
This table contains nested structures. If you use a data warehouse that doesn't natively support nested structures, some of the attributes listed below may be in a subtable.
These items are marked with a *
xero_receipts Attributes
While we try to include everything Xero has here, this may not be a full list of attributes. Refer to Xero's documentation for a full list and description of each attribute.
Receipt ID (
receiptid
)date
contact__contactid
contact__name
user
reference
lineamounttypes
subtotal
totaltax
total
status
receiptnumber
hasattachments
url
updateddateutc
xero_repeating_invoices
Replication Method: Full Table
Primary Key: repeatinginvoiceid
Contains Nested Structures?:
No
xero_repeating_invoices
table contains info about repeating invoices in your Xero account.xero_repeating_invoices Attributes
While we try to include everything Xero has here, this may not be a full list of attributes. Refer to Xero's documentation for a full list and description of each attribute.
Repeating Invoice ID (
repeatinginvoiceid
)brandingthemeid
currencycode
hasattachments
lineamounttypes
reference
type
contact__contactid
contact__name
status
subtotal
total
totaltax
xero_tax_rates
Replication Method: Full Table
Primary Key: name
Contains Nested Structures?:
Yes
xero_tax_rates
table contains info about the tax rates in your Xero account.xero_tax_rates & Nested Structures
This table contains nested structures. If you use a data warehouse that doesn't natively support nested structures, some of the attributes listed below may be in a subtable.
These items are marked with a *
xero_tax_rates Attributes
While we try to include everything Xero has here, this may not be a full list of attributes. Refer to Xero's documentation for a full list and description of each attribute.
Tax Rate Name (
name
)taxtype
status
reporttaxtype
canapplytoassets
canapplytoequity
canapplytoexpenses
canapplytoliabilities
canapplytorevenue
displaytaxrate
effectiverate
xero_tracking_categories
Replication Method: Full Table
Primary Key: trackingcategoryid
Contains Nested Structures?:
Yes
xero_tracking_categories
table contains info the tracking categories and options in your Xero account.xero_tracking_categories & Nested Structures
This table contains nested structures. If you use a data warehouse that doesn't natively support nested structures, some of the attributes listed below may be in a subtable.
These items are marked with a *
xero_tracking_categories Attributes
While we try to include everything Xero has here, this may not be a full list of attributes. Refer to Xero's documentation for a full list and description of each attribute.
Tracking Category ID (
trackingcategoryid
)name
status
xero_users
Replication Method: Incremental
Primary Key: userid
Contains Nested Structures?:
No
xero_users
table contains info about the users in your Xero account.xero_users Attributes
While we try to include everything Xero has here, this may not be a full list of attributes. Refer to Xero's documentation for a full list and description of each attribute.
User ID (
userid
)emailaddress
firstname
lastname
issubscriber
organisationrole
updateddateutc
Related | Troubleshooting |
Questions? Feedback?
Did this article help? If you have questions or feedback, please reach out to us.