Prompt
I'm building a connector for QuickBooks Online and Xero
Latest observation
Nov 3, 2026
OpenAI APIWeb search: off
Great — building a connector for QuickBooks Online and Xero usually means handling a few core areas:
- OAuth 2.0 authentication
- Company/tenant selection
- Syncing entities like customers, invoices, bills, payments, accounts, taxes
- Webhooks or polling for incremental updates
- Normalizing data into your own internal model
A practical approach is to build a provider abstraction layer:
AccountingConnectorauthorize()refreshToken()listCompanies()listCustomers()listInvoices()listBills()createInvoice()updateInvoice()getWebhookEvents()
Then implement:
QuickBooksConnectorXeroConnector
Key differences to plan for
QuickBooks Online
- Uses Intuit OAuth2
- Requires
realmId(company ID) - Has rate limits and somewhat strict sync constraints
- Supports webhooks, but many teams still use polling for reliability
Xero
- Uses Xero OAuth2
- Tenant selection is based on the connected organization
- Has good API coverage and fairly consistent objects
- Webhooks available, but again polling is often used for reconciliation
Recommended internal model
You’ll want a canonical schema such as:
CompanyContactAccountInvoiceInvoiceLinePaymentBillTaxRateAttachment
This helps because QBO and Xero differ in field names and behavior.
Sync strategy
A common pattern:
- Initial full sync: import all relevant data
- Incremental sync: track
updated_at/ modified timestamps - Webhook ingestion: use webhooks to enqueue sync jobs
- Reconciliation job: periodic backfill to catch missed updates
Things that often trip people up
- Tax handling differences
- Currency support and multi-currency rules
- Line-item account mapping
- Deleted/voided records
- Pagination and API throttling
- Idempotency when creating records
- Mapping external IDs to internal IDs
If you want, I can help you with any of these next steps:
- Design the connector architecture
- Create a unified data model
- Map QuickBooks and Xero fields side-by-side
- Write example OAuth flows for both
- Show sample API code in Node.js / Python / Go
If you’re ready, I can also draft a provider interface + implementation skeleton for both APIs.