# Xero connector

> Connect Xero to Windsor.ai: 394 fields in 24 tables, and how to query them or send them to a destination.

The Xero connector pulls your Xero data into Windsor.ai. You can query it with one API, send it to a destination, or ask about it in Claude or ChatGPT.

## Connect Xero

1. Open [Xero in Windsor.ai](https://onboard.windsor.ai/app/xero) and sign in.
2. Authorize Xero, or enter the credentials that the screen asks for.
3. Select the accounts to include.

## Available data

394 fields in 24 tables.

| Table | Fields | Examples |
| --- | --- | --- |
| contacts | 38 | contacts.AccountNumber, contacts.AccountsPayableTaxType, contacts.AccountsReceivableTaxType, contacts.Addresses, contacts.Attachments |
| invoices | 37 | invoices.AmountCredited, invoices.AmountDue, invoices.AmountPaid, invoices.BrandingThemeID, invoices.Contact |
| organisations | 30 | organisations.Addresses, organisations.APIKey, organisations.BaseCurrency, organisations.CountryCode, organisations.CreatedDateUTC |
| purchase_orders | 30 | purchase_orders.AttentionTo, purchase_orders.BrandingThemeID, purchase_orders.Contact, purchase_orders.CurrencyCode, purchase_orders.CurrencyRate |
| credit_notes | 26 | credit_notes.Allocations, credit_notes.AppliedAmount, credit_notes.BrandingThemeID, credit_notes.Contact, credit_notes.CreditNoteID |
| bank_transactions | 22 | bank_transactions.BankAccount, bank_transactions.BankTransactionID, bank_transactions.Contact, bank_transactions.CurrencyCode, bank_transactions.CurrencyRate |
| Other | 21 | Account ID, Account Name, Data fetched at, Data Source, Date |
| overpayments | 21 | overpayments.Allocations, overpayments.AppliedAmount, overpayments.Contact, overpayments.CurrencyCode, overpayments.CurrencyRate |
| prepayments | 21 | prepayments.Allocations, prepayments.AppliedAmount, prepayments.Contact, prepayments.CurrencyCode, prepayments.CurrencyRate |
| accounts | 18 | accounts.AccountID, accounts.BankAccountNumber, accounts.BankAccountType, accounts.Class, accounts.Code |
| payments | 18 | payments.Account, payments.Amount, payments.BankAmount, payments.BatchPaymentID, payments.CreditNote |
| repeating_invoices | 16 | repeating_invoices.BrandingThemeID, repeating_invoices.Contact, repeating_invoices.CurrencyCode, repeating_invoices.HasAttachments, repeating_invoices.ID |
| items | 14 | items.Code, items.Description, items.InventoryAssetAccountCode, items.IsPurchased, items.IsSold |
| bank_transfers | 12 | bank_transfers.Amount, bank_transfers.BankTransferID, bank_transfers.CreatedDateUTC, bank_transfers.CreatedDateUTCString, bank_transfers.CurrencyRate |
| tax_rates | 12 | tax_rates.CanApplyToAssets, tax_rates.CanApplyToEquity, tax_rates.CanApplyToExpenses, tax_rates.CanApplyToLiabilities, tax_rates.CanApplyToRevenue |

9 more tables are in the field list.

The full list, with the type and description of each field, is at `https://connectors.windsor.ai/xero/fields`.

## Query the data

Request fields by their IDs. For example:

```url
https://connectors.windsor.ai/xero?api_key=YOUR_API_KEY&fields=date,contacts__accountnumber,contacts__accountspayabletaxtype&date_preset=last_7d
```

## Next steps

- [Send the data to a destination](https://windsor.ai/documentation/destinations/index.md), such as Looker Studio, Google Sheets or BigQuery.
- [Connect Windsor.ai to Claude or ChatGPT](https://windsor.ai/documentation/mcp/index.md) and ask about your Xero data.
- [Fix a connection problem](https://windsor.ai/documentation/troubleshooting/index.md).
