Xero
Integrate your application with the Xero API
🚀 Quickstart
Connect to Xero with Tenklo and see data flow in 2 minutes.
In Tenklo (free signup), go to Integrations -> Configure New Integration -> 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.
Let's make your first request to the Xero API. Replace the placeholders below with your Environment API key, integration ID, and connection ID:
curl "https://api.tenklo.dev/proxy/api.xro/2.0/Contacts" \
-H "Authorization: Bearer <NANGO-API-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 Tenklo to inspect requests.
Follow our Auth implementation guide to integrate Tenklo in your app.
To obtain your own production credentials, follow the setup guide linked below.
📚 Xero Integration Guides
Tenklo maintained guides for common use cases.
-
How to register your own Xero OAuth app
Register an OAuth app with Xero and obtain credentials to connect it to Tenklo -
How to configure Xero webhooks with Tenklo
Learn how to set up webhook notifications from Xero to Tenklo
Official docs: Xero API documentation
🧩 Pre-built syncs & actions for Xero
Explore Nango-provided actions in your dashboard. Extend and customize them to fit your needs.
General Ledger
| Function name | Description | Type | Source code |
|---|---|---|---|
general-ledger | Sync Xero general ledger journals, each containing journal lines with account and tax details. | Sync | 🔗 Github |
Others
| Function name | Description | Type | Source code |
|---|---|---|---|
create-account | Create an account in the Xero chart of accounts. | Action | 🔗 Github |
create-bank-transaction | Create a spend or receive money bank transaction | Action | 🔗 Github |
create-contact | Create a contact in Xero. | Action | 🔗 Github |
create-credit-note | Create a credit note for a contact | Action | 🔗 Github |
create-invoice | Create a sales or purchase invoice. | Action | 🔗 Github |
create-item | Create an inventory or catalog item. | Action | 🔗 Github |
create-payment | Create a payment against an invoice or credit note. | Action | 🔗 Github |
create-purchase-order | Create a purchase order for a contact. | Action | 🔗 Github |
get-account | Retrieve an account by AccountID. | Action | 🔗 Github |
get-bank-transaction | Retrieve a bank transaction by BankTransactionID. | Action | 🔗 Github |
get-contact | Retrieve a contact by ContactID | Action | 🔗 Github |
get-credit-note | Retrieve a credit note by CreditNoteID. | Action | 🔗 Github |
get-invoice | Retrieve an invoice by InvoiceID. | Action | 🔗 Github |
get-item | Retrieve an item by ItemID. | Action | 🔗 Github |
get-payment | Retrieve a payment by PaymentID. | Action | 🔗 Github |
get-purchase-order | Retrieve a purchase order by PurchaseOrderID. | Action | 🔗 Github |
get-tenants | Fetches all the tenants the connection has access to. This can be used to set the metadata to the selected tenant. | Action | 🔗 Github |
list-accounts | List accounts in the Xero chart of accounts. | Action | 🔗 Github |
list-bank-transactions | List bank transactions with filters and pagination. | Action | 🔗 Github |
list-contacts | List contacts with filters and pagination. | Action | 🔗 Github |
list-credit-notes | List credit notes with filters and pagination. | Action | 🔗 Github |
list-invoices | List invoices with filters and pagination. | Action | 🔗 Github |
list-items | List items with optional filtering. | Action | 🔗 Github |
list-payments | List payments with filters and pagination | Action | 🔗 Github |
list-purchase-orders | List purchase orders with filters and pagination | Action | 🔗 Github |
list-tenants | List Xero tenants connected to the current OAuth token. | Action | 🔗 Github |
update-account | Update an existing account. | Action | 🔗 Github |
update-bank-transaction | Update an existing bank transaction. | Action | 🔗 Github |
update-contact | Update an existing contact. | Action | 🔗 Github |
update-credit-note | Update an existing credit note. | Action | 🔗 Github |
update-invoice | Update an existing invoice. | Action | 🔗 Github |
update-item | Update an existing item. | Action | 🔗 Github |
update-purchase-order | Update an existing purchase order. | Action | 🔗 Github |
accounts | Sync accounts from the Xero chart of accounts. | Sync | 🔗 Github |
bank-transactions | Sync bank transactions from Xero. | Sync | 🔗 Github |
contacts | Sync contacts from Xero. | Sync | 🔗 Github |
credit-notes | Sync credit notes from Xero. | Sync | 🔗 Github |
invoices | Sync invoices from Xero. | Sync | 🔗 Github |
items | Sync inventory and catalog items from Xero. | Sync | 🔗 Github |
organisations | Sync Xero organisation records for connected tenants. | Sync | 🔗 Github |
payments | Sync payments from Xero. | Sync | 🔗 Github |
purchase-orders | Sync purchase orders from Xero. | Sync | 🔗 Github |