<!-- Markdown rendering of https://accountingkit.dev/integrations/xero/ -->

> Connect Xero via OAuth 2.0 with thirteen resource families, idempotent writes, attachments, quote-to-invoice plus supplier POs, and verified webhooks.

Xero integration · key: xero

# Xero API integration and durable workflows

AccountingKit connects to Xero through OAuth 2.0 with explicit accounting-organization selection, normalizing thirteen resource families (contacts, items, invoices, quotes, payments, purchase orders, credit notes, accounts, tax rates, and more) with idempotent writes, opt-in file attachments, verified Xero webhooks, and durable multi-step workflows.

[Start free](https://app.accountingkit.dev/auth/login) [Xero setup docs](https://docs.accountingkit.dev/docs/integrations/xero) [Talk to us](https://accountingkit.dev/contact/)

Facts checked 27 November 2026

XeroProvider key `xero` · 13 resource families

## Capability summary

| Authentication | OAuth 2.0 with rotating refresh tokens, an explicit organization picker, and a Xero app you register and own. |
| --- | --- |
| Webhooks | Signature-verified X-Xero-Signature callbacks followed by authoritative live reads plus hourly reconciliation. |
| Attachments | List, upload (up to 6 MiB), and download on quotes, purchase orders, and invoices via opt-in accounting.attachments scope. |
| Financial reports | Live Profit and Loss report (accrual or cash basis) with opt-in reporting consent. |
| Provider actions | Document PDFs (invoices, quotes, POs), invoice and quote online URLs, invoice email delivery, organization deep link, and cancellation. |
| Synchronization | Invoice, quote, and full reconciliation via durable operations; choice of 30-day cached mode or zero-retention live reads. |

## Key capabilities

### Quote to invoice and linked supplier POs

Accept a Xero quote, raise a linked customer invoice, and create one durable purchase order per supplier with cross-linked references and step-level retry safety.

### Opt-in attachments and online URLs

Pass attachments: true on a connect session to upload, list, or download files on quotes, POs, and invoices. Separately, fetch the shareable online invoice URL or a Xero deep link to a quote.

### Verified webhooks plus invoice due-date alerts

Receive signed AccountingKit events for invoice.paid, invoice.payment\_changed, invoice.due\_soon, invoice.overdue, and quote.status\_changed without polling Xero directly.

### Lossless provider-native escape hatch

Keep normalized payloads for portable code, and reach for provider\_options.xero or provider\_data writes when you need Xero-specific fields.

## Supported resources and operations

| Normalized resource | Xero object | Read | Write | Notes |
| --- | --- | --- | --- | --- |
| Organizations | Organisation | Yes | Read-only | Read-only plus organization deep link. |
| Contacts | Contact | Yes | Yes | Customers and suppliers; idempotent upsert recipe. |
| Items | Item | Yes | Yes | SKU catalog read, create, update, and item.upsert recipe. |
| Invoices | Invoice | Yes | Yes | PDF, online URL, email delivery, cancel, settlements, attachments. |
| Quotes | Quote | Yes | Yes | PDF, online URL, attachments, status-change webhooks, accept-to-invoice. |
| Purchase orders | PurchaseOrder | Yes | Yes | Standalone or created per supplier during quote conversion; PDF and attachments. |
| Payments | Payment | Yes | Yes | Normalized payment recording with allocations. |
| Credit notes, overpayments, prepayments | CreditNote, Overpayment, Prepayment | Yes | Read-only | Customer credit notes and settlements mapped onto invoices. |
| Accounts, tax rates, branding themes | Account, TaxRate, BrandingTheme | Yes | Read-only | Accounts writable through provider-native payloads. |

## Example API request

Every write requires an `Idempotency-Key` header and returns a normalized response shape shared across all six providers. Read the full [Xero technical guide](https://docs.accountingkit.dev/docs/integrations/xero) for setup steps and field mappings, or validate payloads with our [remote MCP server](https://accountingkit.dev/mcp/).

```

```

## Operational details and known limits

### Operational behavior

-   Bring your own Xero developer app on every plan so Xero connection quotas, branding, and certification remain under your organization.
-   Every write requires an Idempotency-Key header (retained 30 days) so retried requests never duplicate Xero invoices or purchase orders.
-   Per-connection provider budgets prevent one busy Xero tenant from throttling another tenant.

### Not supported in this release

-   Supplier credit notes are excluded from the customer credit\_notes resource.
-   Normalized account writes return a validation error; use the provider-native Xero write path for accounts.
-   Zero-retention connections support live point reads and search, not cached list endpoints or background sync.

## Common questions

How does AccountingKit prevent duplicate Xero invoices on retries?

Every write endpoint requires an Idempotency-Key header scoped to your organization and environment for 30 days. Concurrent retries receive a conflict while the first write is in flight, and completed retries return the original result with Idempotent-Replayed: true.

Can I attach a PDF to a Xero quote or invoice through AccountingKit?

Yes. Pass attachments: true when creating a connect session so Xero requests the accounting.attachments scope, then upload, list, or download files up to 6 MiB on quotes, purchase orders, and invoices.

Can I use my own Xero developer app credentials?

Yes. You register your Xero client ID, client secret, and webhook key in AccountingKit Provider apps, encrypted with AES-256-GCM under Google Cloud KMS.

## Other accounting integrations

[**All 6 accounting integrations**Compare capabilities across Xero, QuickBooks Online, NetSuite, and more.](https://accountingkit.dev/integrations/) [**QuickBooks Online**7 resource families · Integrate QuickBooks Online with Intuit OAuth, realm identity, items, invoices, attachments, verified CloudEvents webhooks, and Profit and Loss reports.](https://accountingkit.dev/integrations/quickbooks-online/) [**Oracle NetSuite**8 resource families · Connect Oracle NetSuite with OAuth 2.0 PKCE, OneWorld subsidiary discovery, SuiteQL sync, and idempotent invoice, PO, and estimate writes on every plan.](https://accountingkit.dev/integrations/netsuite/) [**Sage Intacct**6 resource families · Connect Sage Intacct over the GA REST API v1 (no legacy XML) with OAuth 2.0, multi-entity dimensions, REST Query Service sync, and idempotent writes.](https://accountingkit.dev/integrations/sage-intacct/) [**Wave**7 resource families · Connect Wave Pro and Advisor accounts through one REST API over Wave GraphQL, with seven resource families, invoice PDFs, online URLs, and signed webhooks.](https://accountingkit.dev/integrations/wave/) [**FreshBooks**5 resource families · Connect FreshBooks with OAuth 2.0 single-use token rotation locks, business discovery, invoices, payments, contacts, taxes, and verified HMAC webhooks.](https://accountingkit.dev/integrations/freshbooks/)

## Build it against a sandbox company today.

The test environment is free. Or tell us which accounting systems your customers run and we will map the coverage with you.

[Start free](https://app.accountingkit.dev/auth/login) [Talk to us](https://accountingkit.dev/contact/)
