Skip to main content

πŸš€ Quickstart

Connect to Xero with Nango and see data flow in 2 minutes.
1

Create the integration

In Nango (free signup), go to Integrations -> Configure New Integration -> Xero.
2

Authorize Xero

Go to Connections -> Add Test Connection -> Authorize, then log in to Xero. Later, you’ll let your users do the same directly from your app.
3

Call the Xero API

Let’s make your first request to the Xero API. Replace the placeholders below with your secret key, integration ID, and connection ID:
curl "https://api.nango.dev/proxy/api.xro/2.0/Contacts" \
  -H "Authorization: Bearer <NANGO-SECRET-KEY>" \
  -H "Provider-Config-Key: <INTEGRATION-ID>" \
  -H "Connection-Id: <CONNECTION-ID>"
Or fetch credentials with the Node SDK or API.βœ… You’re connected! Check the Logs tab in Nango to inspect requests.
4

Implement Nango in your app

Follow our Auth implementation guide to integrate Nango in your app.To obtain your own production credentials, follow the setup guide linked below.

πŸ“š Xero Integration Guides

Nango maintained guides for common use cases. Official docs: Xero API documentation

🧩 Pre-built syncs & actions for Xero

Enable them in your dashboard. Extend and customize to fit your needs.

General Ledger

Function nameDescriptionTypeSource code
general-ledgerSync Xero general ledger journals, each containing journal lines with account and tax details.SyncπŸ”— Github

Others

Function nameDescriptionTypeSource code
accountsSync accounts from the Xero chart of accounts.SyncπŸ”— Github
bank-transactionsSync bank transactions from Xero.SyncπŸ”— Github
contactsSync contacts from Xero.SyncπŸ”— Github
credit-notesSync credit notes from Xero.SyncπŸ”— Github
invoicesSync invoices from Xero.SyncπŸ”— Github
itemsSync inventory and catalog items from Xero.SyncπŸ”— Github
organisationsSync Xero organisation records for connected tenants.SyncπŸ”— Github
paymentsSync payments from Xero.SyncπŸ”— Github
purchase-ordersSync purchase orders from Xero.SyncπŸ”— Github