Xero tables and views in dataSights: the full reference
dataSights syncs every Xero organisation you connect into your own Azure SQL database. This page lists every Xero table and view that database holds, what each one is for, and which data tier it needs. The names are exactly what you type in SQL, Power Query, Power BI, Google Sheets and AI Connect (our MCP), so you can copy them straight from here.
New to the data? Start with Xero: the tables to start with. This page is the complete list behind it.
The two data tiers
| Tier | What you get |
|---|---|
| Reports data | Every table and view on this page, except the ones marked Transactions. Consolidated P&L, balance sheet, trial balance, budgets, cash flow summary, aged receivables and payables, invoices, bills, credit notes, payments, bank transactions, contacts, items, tracking, tax rates and the rest. Every Xero customer gets this. |
| Transactions data | Adds the line-level ledger: the Account Transactions view, Xero journals and journal lines, Xero Payroll and Xero Fixed Assets. |
Each table below is tagged Reports or Transactions.
Which one do I use?
| You want | Use |
|---|---|
| Which entities, currencies and financial year ends are in the group | XeroConsolidationGroupAndEntitiesContext |
| A consolidated P&L, balance sheet or trial balance that matches the platform | The consolidated report views (...GroupReportViewWithFX) |
| Budget versus actual for the group | XeroConsolidationBudgetGroupReportViewWithFX |
| Aged receivables or payables as at any date, across every entity | XeroConsolidationAgedReceivableDetailReportView / XeroConsolidationAgedPayableDetailReportView |
| Every transaction behind a number, by account, contact or tracking category | XeroAccountTransactionsMasterView |
| Invoices, bills or purchase orders with their lines | XeroInvoicesView, XeroBillsView, XeroPurchaseOrdersView |
| When a supplier's bank details or payment terms changed | XeroContactsAuditHistory |
| FX rates used for group reporting | FxMonthlyRates, FxDailyRates, FxCustomRates |
1. Consolidated report views
Built by dataSights across every entity in a reporting group, with your account mapping, eliminations and journal adjustments applied. These are the views behind the platform's own management reports and board packs, so they agree to the penny with what you see on screen.
WithFX versions add columns converted to the group reporting currency (average rates for P&L, spot rates for the balance sheet). Use them for multi-currency groups.
| View | What it holds | Tier |
|---|---|---|
XeroConsolidationGroupAndEntitiesContext |
The starting point. Each reporting group, its entities, base currencies, financial year ends, group reporting currency and when each entity last synced. | Reports |
XeroConsolidationProfitAndLossGroupReportView / ...WithFX |
Consolidated P&L by month, mapped to your report template, including journal adjustments and eliminations. By entity and tracking category. | Reports |
XeroConsolidationBalanceSheetGroupReportView / ...WithFX |
Consolidated balance sheet at each month end, including journal adjustments. | Reports |
XeroConsolidationTrialBalanceGroupReportView / ...WithFX |
Trial balance by entity and consolidated, with month movement and year to date, in local and reporting currency. | Reports |
XeroConsolidationBudgetGroupReportView / ...WithFX |
Your Xero budgets, mapped the same way as actuals, by account, entity and tracking category. | Reports |
XeroConsolidationCashflowSummaryGroupReportViewWithFX |
Consolidated cash flow summary by month, in entity and reporting currency. | Reports |
XeroConsolidationCashflowSummaryOpeningBalanceViewWithFX |
Opening cash balances for the cash flow summary, by entity and account. | Reports |
XeroConsolidationAgedReceivableDetailReportView |
Every receivable document across every entity: invoices, payments, credit notes, refunds, overpayments and prepayments, one row each. Gives aged receivables as at any date. | Reports |
XeroConsolidationAgedPayableDetailReportView |
The same for payables: bills, payments, credit notes, refunds, prepayments and overpayments. Gives aged payables as at any date. | Reports |
XeroConsolidationAgedReceivableDetailReportViewUsingLineItems |
Aged receivables at invoice line level, with account and tracking category, for debtor ageing by department, location or project. | Reports, on request |
XeroConsolidationAgedPayableDetailReportViewUsingLineItems |
Aged payables at bill line level, with account and tracking category, for creditor ageing by department, location or project. | Reports, on request |
The two line item views are created on request, not by default. Please get in touch with dataSights if you want them.
Aged receivables and payables as at any date
Xero's own aged reports show one date at a time, one organisation at a time. The detail views hold every document with a sign: invoices and bills positive, payments, credits and refunds negative. Filter to a date and add them up, and you get the balance owed as at that date, across every entity at once.
SELECT XeroOrganisationName, ContactName, SUM(NetAmount) AS Outstanding FROM XeroConsolidationAgedReceivableDetailReportView WHERE Date <= '2026-06-30' GROUP BY XeroOrganisationName, ContactName HAVING SUM(NetAmount) <> 0 ORDER BY Outstanding DESC
Do not filter on Source for a balance; the signs net correctly across documents. Swap in XeroConsolidationAgedPayableDetailReportView for payables. Add DueDate to bucket by days overdue. In AI Connect you can simply ask: "Who owed us more than 60 days as at 30 June, across all entities?"
2. Consolidation setup
Your reporting groups and report templates, as configured on Consolidation Home and Elimination & Mapping.
| Table | What it holds | Tier |
|---|---|---|
XeroConsolidationGroups |
Each reporting group and its settings. | Reports |
XeroConsolidationGroupStructure |
Which entities belong to each group, their entity type and ownership percentage. | Reports |
XeroConsolidationReports |
Your saved report templates (P&L, balance sheet, cash flow summary) for each group. | Reports |
XeroConsolidationReportStructure |
The row layout of each template: sections, lines, subtotals, formatting and which account groups feed each line. | Reports |
XeroConsolidationGroupReportTemplateSettings |
Branding and financial year settings used on reports. | Reports |
XeroConsolidationBoardPack |
Each board pack: period, branding, status and entities included. | Reports |
XeroConsolidationBoardPackSection |
The sections in each board pack. | Reports |
XeroConsolidationBoardPackRow |
The rows within each section. | Reports |
XeroConsolidationBoardPackComponent |
The components on each row: tables, charts, KPIs and commentary, with their settings. | Reports |
XeroConsolidationBoardPackCommentaryLink |
Which commentary belongs to which component, and who wrote or changed it. | Reports |
3. dataSights views over your Xero data
Built by dataSights so you do not have to join the raw Xero tables yourself. Per entity, across every connected organisation.
| View | What it holds | Tier |
|---|---|---|
XeroAccountTransactionsMasterView |
Every account transaction across every entity, down to the line: journals, manual journals, bank transactions, invoices and bills, joined and flattened. With account, contact, tracking categories and tax. The table most customer reporting runs on, and it has no tracking-option limit. | Transactions |
XeroInvoicesView |
Sales invoices with their lines, amounts, payment status, tax and tracking. | Reports |
XeroBillsView |
Supplier bills with their lines, amounts, payment status, tax and tracking. | Reports |
XeroPurchaseOrdersView |
Purchase orders with their lines, supplier, delivery details, tax and tracking. | Reports |
XeroContactsAuditHistory |
A snapshot of every contact each time it changed, captured on every sync. Xero's API does not keep this history; dataSights does. Use it to see when bank details, payment terms, addresses or tax numbers changed. | Reports |
4. FX rates
| Table | What it holds | Tier |
|---|---|---|
FxMonthlyRates |
Monthly rates between each entity's currency and the group reporting currency, used by the WithFX views. |
Reports |
FxDailyRates |
Daily rates between each entity's currency and the group reporting currency. | Reports |
FxCustomRates |
Rates you set yourself for specific dates, which override the live rates. See How FX rates are applied on reports. | Reports |
5. Xero API tables
The raw Xero records, one table per Xero object, for every connected organisation. Use these when you need a field the views above do not carry.
Organisation, accounts and settings
| Table | What it holds | Tier |
|---|---|---|
Organisations |
Each connected Xero organisation: legal name, base currency, country, financial year end and tax settings. | Reports |
Accounts |
The chart of accounts for every entity, with Xero's numeric type, class and status codes. | Reports |
AccountType |
Decodes Xero account type codes into names and P&L or balance sheet classification. | Reports |
XeroMappingLookup |
Decodes Xero's other numeric codes (status, class, line amount type, bank account type) into readable values. | Reports |
XeroTaxRates |
GST and VAT rates set up in each entity, including custom rates. | Reports |
TrackingCategories |
Tracking categories in each entity. | Reports |
TrackingCategoriesOptions |
The options within each tracking category. | Reports |
TrackingCategoriesItems |
Which tracking options are applied to which transactions. | Reports |
BrandingThemes |
Invoice branding themes. | Reports |
Contacts
| Table | What it holds | Tier |
|---|---|---|
XeroContacts |
Customers and suppliers: names, payment terms, tax numbers and status. | Reports |
XeroContactAddresses |
Postal and street addresses for each contact. | Reports |
XeroContactMergedToContactMapping |
Contacts merged into other contacts in Xero, so history follows the surviving contact. | Reports |
Sales, purchases and items
| Table | What it holds | Tier |
|---|---|---|
Invoices |
Sales invoices and supplier bills: totals, status, dates and contact. | Reports |
LineItems |
The lines on invoices, bills, credit notes, purchase orders and bank transactions. | Reports |
CreditNotes |
Credit notes issued and received. | Reports |
CreditNoteAllocations |
Where each credit note was applied against an invoice or bill. | Reports |
InvoiceCreditNotes |
Credit notes linked to the invoices they relate to. | Reports |
InvoiceCreditNotesLineItemList |
The lines on those invoices and credit notes, with account, tax and tracking. | Reports |
PurchaseOrders |
Purchase orders: supplier, dates, delivery details and totals. | Reports |
Item |
Products and services: codes, descriptions, inventory tracking and accounts. | Reports |
ItemSales |
The sales details of each item: price, account and tax type. | Reports |
ItemPurchases |
The purchase details of each item: cost, account and tax type. | Reports |
Payments, prepayments and overpayments
| Table | What it holds | Tier |
|---|---|---|
Payments |
Payments against invoices and credit notes. | Reports |
PaymentsStandalone |
All payments with their links to invoices, credit notes, prepayments and overpayments. | Reports |
Prepayments |
Prepayments received and paid. | Reports |
PrepaymentLineItems |
The lines on each prepayment. | Reports |
PrepaymentLineItemTracking |
Tracking options on prepayment lines. | Reports |
PrepaymentAllocations |
Where each prepayment was applied. | Reports |
PrepaymentPayments |
Payments made against prepayments. | Reports |
Overpayments |
Overpayments received and paid. | Reports |
OverpaymentAllocations |
Where each overpayment was applied. | Reports |
OverpaymentPayments |
Payments and refunds against overpayments. | Reports |
Bank
| Table | What it holds | Tier |
|---|---|---|
BankTransactions |
Spend and receive money transactions in every bank account, with reconciliation status. | Reports |
BankTransfers |
Transfers between bank accounts. | Reports |
BankSummaries |
Opening balance, cash in, cash out and closing balance for each bank account by period. | Reports |
Expense claims
| Table | What it holds | Tier |
|---|---|---|
ExpenseClaims |
Expense claims: claimant, amounts, status and due dates. | Reports |
ExpenseClaimReceipts |
The receipts on each claim. | Reports |
ExpenseClaimReceiptLineItems |
The lines on each receipt, with account and tax. | Reports |
ExpenseClaimReceiptLineItemTrackings |
Tracking options on receipt lines. | Reports |
ExpenseClaimPayments |
Payments made to reimburse claims. | Reports |
Budgets
| Table | What it holds | Tier |
|---|---|---|
XeroBudgets |
Each budget in each entity. | Reports |
XeroBudgetLineBalances |
Budgeted amounts by account and period. | Reports |
XeroBudgetTrackings |
The tracking options each budget is set against. | Reports |
Xero report data
The reports Xero returns through its API, stored by month. The consolidated views in section 1 are built from these.
| Table | What it holds | Tier |
|---|---|---|
PnLReportWithAndWithoutTrackingCategoryRows |
Xero's P&L by account and month, with and without tracking category rows. | Reports |
BalanceSheetWithAccountIdReports |
Xero's balance sheet by account and month end. | Reports |
TrialBalanceReports |
Xero's trial balance (accrual basis) by account and month. | Reports |
TrialBalanceReportsCash |
Xero's trial balance on a cash basis. | Reports |
Journals
| Table | What it holds | Tier |
|---|---|---|
Journals |
Every journal Xero posts to the general ledger, from every source document. | Transactions |
JournalLines |
The debit and credit lines of each journal, with account, tax and tracking. | Transactions |
ManualJournals |
Manual journals entered in Xero, with narration and status. | Reports |
Payroll (Xero Payroll)
Xero Payroll is different in Australia, the UK and New Zealand, and so are its tables. Each region is listed below. Payroll tables are only created for organisations that have payroll enabled, and the payroll region of the organisation decides which set you get.
Australia
| Table | What it holds | Tier |
|---|---|---|
XeroEmployees |
Employees: employment details, status and payroll calendar. | Transactions |
XeroEmployeeHomeAddresses |
Employee home addresses. | Transactions |
XeroEmployeeLeaveBalances |
Current leave balances by employee and leave type. | Transactions |
XeroEmployeeOpeningBalances |
Payroll opening balances by employee. | Transactions |
XeroEmployeeOpeningBalanceEarningsLines |
Earnings lines in opening balances. | Transactions |
XeroEmployeeOpeningBalanceLeaveLines |
Leave lines in opening balances. | Transactions |
XeroEmployeePayTemplateEarningsLines |
Standard earnings on each employee's pay template. | Transactions |
XeroEmployeePayTemplateDeductionLines |
Standard deductions on each pay template. | Transactions |
XeroEmployeePayTemplateLeaveLines |
Leave entitlements on each pay template. | Transactions |
XeroEmployeePayTemplateReimbursementLines |
Standard reimbursements on each pay template. | Transactions |
XeroEmployeePayTemplateSuperLines |
Superannuation lines on each pay template. | Transactions |
PayRuns |
Each pay run: period, payment date, status and totals for wages, tax, deductions, super and net pay. | Transactions |
Payslips |
Each employee's payslip in a pay run. | Transactions |
PayslipEarningsLines |
Earnings on each payslip. | Transactions |
PayslipTimesheetEarningsLines |
Earnings on each payslip that came from timesheets. | Transactions |
PayslipLeaveEarningsLines |
Leave paid on each payslip. | Transactions |
PayslipLeaveAccrualLines |
Leave accrued on each payslip. | Transactions |
PayrollCalendars |
Pay calendars and their payment dates. | Transactions |
Timesheets |
Employee timesheets and their status. | Transactions |
TimesheetLines |
Hours by earnings rate and tracking option on each timesheet. | Transactions |
LeaveApplications |
Leave requests. | Transactions |
LeaveApplicationPeriods |
The pay periods each leave request falls into. | Transactions |
XeroPayrollEarningsRates |
Earnings rates set up in payroll. | Transactions |
XeroPayrollDeductionTypes |
Deduction types. | Transactions |
XeroPayrollLeaveTypes |
Leave types. | Transactions |
XeroPayrollReimbursementTypes |
Reimbursement types. | Transactions |
United Kingdom
All UK payroll table names end in UK.
| Table | What it holds | Tier |
|---|---|---|
XeroEmployeesUK |
Employees. | Transactions |
XeroEmployeesLeaveBalancesUK |
Leave balances by employee. | Transactions |
XeroEmployeeLeaveTypesUK |
Leave types assigned to each employee. | Transactions |
XeroEmployeeLeavesUK |
Leave records. | Transactions |
XeroEmployeeLeavePeriodsUK |
The periods within each leave record. | Transactions |
XeroPayRunsUK |
Pay runs. | Transactions |
XeroPaySlipsUK |
Each employee's payslip in a pay run. | Transactions |
XeroPaySlipEarningsUK |
Earnings lines on each payslip. | Transactions |
XeroPaySlipLeaveEarningsUK |
Leave earnings lines on each payslip. | Transactions |
XeroEarningRatesUK |
Earnings rates set up in payroll. | Transactions |
XeroLeaveTypesUK |
Leave types set up for the organisation. | Transactions |
UK payroll has no timesheet or pay run calendar tables.
New Zealand
All NZ payroll table names end in NZ.
| Table | What it holds | Tier |
|---|---|---|
XeroEmployeesNZ |
Employees. | Transactions |
XeroEmployeesNZSalaryAndWages |
Employee salary and wage records. | Transactions |
XeroEmployeesLeaveBalancesNZ |
Leave balances by employee. | Transactions |
XeroEmployeeLeaveTypesNZ |
Leave types assigned to each employee. | Transactions |
XeroEmployeeLeavesNZ |
Leave records. | Transactions |
XeroEmployeeLeavePeriodsNZ |
The periods within each leave record. | Transactions |
XeroPayRunsNZ |
Pay runs. | Transactions |
XeroPaySlipsNZ |
Each employee's payslip in a pay run. | Transactions |
XeroPaySlipEarningsNZ |
Earnings lines on each payslip. | Transactions |
XeroPaySlipLeaveEarningsNZ |
Leave earnings lines on each payslip. | Transactions |
XeroPaySlipTimesheetEarningsNZ |
Earnings lines on each payslip that came from timesheets. | Transactions |
XeroPaySlipDeductionLineNZ |
Deduction lines on each payslip. | Transactions |
XeroPaySlipReimbursementNZ |
Reimbursement lines on each payslip. | Transactions |
XeroPaySlipLeaveAccrualsNZ |
Leave accrued on each payslip. | Transactions |
XeroPaySlipSuperannuationsNZ |
KiwiSaver and superannuation lines on each payslip. | Transactions |
XeroPaySlipEmployeeTaxNZ |
Employee tax lines on each payslip. | Transactions |
XeroPaySlipEmployerTaxNZ |
Employer tax lines on each payslip. | Transactions |
XeroEarningRatesNZ |
Earnings rates set up in payroll. | Transactions |
XeroLeaveTypesNZ |
Leave types set up for the organisation. | Transactions |
XeroPayRunCalendarsNZ |
Pay run calendars. | Transactions |
XeroTimesheetsNZ |
Employee timesheets. | Transactions |
Fixed assets (Xero Fixed Assets)
The asset register, depreciation settings and book values. Transactions tier. These tables are only created when Fixed Assets is enabled for your connection. Only registered assets are synced; draft and disposed assets are not.
| Table | What it holds | Tier |
|---|---|---|
XeroAssets |
One row per registered fixed asset: name, number, purchase and disposal details, status, book value and depreciation settings. | Transactions |
XeroAssetTypes |
Asset type definitions: the fixed asset, depreciation expense and accumulated depreciation accounts, plus depreciation method, rate and effective life. | Transactions |
Where you can use them
SQL Editor and Data Viewer in the platform show every table above.
Excel, Power BI, Looker Studio and Google Sheets read any table or view directly. See Get my data into Power BI, Looker, Google Sheets.
Claude, ChatGPT, Copilot and other AI tools see the tables you tick under Select Views & Descriptions. Each one carries a plain-language description and column notes, so the AI knows how to query it. What the AI can then do is listed in The operations our MCP enables.