get_contact | Get one contact by its ContactID. Requires tenant_id (the tenantId from list_connections). |
get_invoice | Get one invoice (with its line items, payments and amounts due) by its InvoiceID. Requires tenant_id (the tenantId from list_connections). |
get_organisation | Get the organisation’s details (name, legal name, base currency, country, financial year end, tax settings). Requires tenant_id (the tenantId from list_connections). |
list_accounts | List the chart of accounts (Code, Name, Type, TaxType, Status) — use a Code as AccountCode on invoice lines or as the paying account of a payment. Filters: where, order. Requires tenant_id (the tenantId from list_connections). |
list_bank_transactions | List bank transactions (spend and receive money). Filters: where, order, page, pageSize. Requires tenant_id (the tenantId from list_connections). |
list_connections | List the Xero organisations this connection can access: each item has tenantId (pass it as tenant_id to every other action), tenantName and tenantType. Call this first. |
list_contacts | List contacts (customers and suppliers). Filters: searchTerm (text search across name and e-mail), where, order, page, pageSize, includeArchived, IDs (array of ContactIDs). Requires tenant_id (the tenantId from list_connections). |
list_credit_notes | List credit notes. Filters: where, order, page, pageSize. Requires tenant_id (the tenantId from list_connections). |
list_invoices | List invoices (sales ACCREC and bills ACCPAY). Filters: where, order, page, pageSize, Statuses (array: DRAFT, SUBMITTED, AUTHORISED, PAID, VOIDED, DELETED), ContactIDs, IDs, InvoiceNumbers, includeArchived. Requires tenant_id (the tenantId from list_connections). |
list_payments | List payments applied to invoices and credit notes. Filters: where, order, page, pageSize. Requires tenant_id (the tenantId from list_connections). |
report_aged_receivables | Get the Aged Receivables report for ONE contact (contactId required). Optional: date, fromDate, toDate (YYYY-MM-DD). Requires tenant_id (the tenantId from list_connections). |
report_balance_sheet | Get the Balance Sheet report at a date. Optional: date (YYYY-MM-DD, default today), periods (1–12) + timeframe (MONTH, QUARTER, YEAR), paymentsOnly (cash basis). Requires tenant_id (the tenantId from list_connections). |
report_profit_and_loss | Get the Profit and Loss report. Optional: fromDate, toDate (YYYY-MM-DD), periods (1–12) + timeframe (MONTH, QUARTER, YEAR) to compare periods, paymentsOnly (cash basis). Requires tenant_id (the tenantId from list_connections). |