Prompt
QuickBooks invoice sync API
Latest observation
Nov 3, 2026
OpenAI APIWeb search: off
If you mean building an API integration to sync invoices with QuickBooks, the usual approach depends on which QuickBooks product you’re targeting:
1) QuickBooks Online (QBO)
Use the Intuit QuickBooks Online API.
Main pieces
- OAuth 2.0 for authentication
- Realm ID for the company account
- Invoices endpoint to create/update/read invoices
Common invoice operations
- Create invoice:
POST /v3/company/{realmId}/invoice - Get invoice:
GET /v3/company/{realmId}/invoice/{id} - Query invoices:
POST /v3/company/{realmId}/query - Update invoice:
POST /v3/company/{realmId}/invoice?operation=update
Typical sync flow
- User connects QuickBooks via OAuth.
- Your app stores access/refresh tokens.
- Your system maps internal invoice fields to QuickBooks fields.
- Create or update invoice in QuickBooks.
- Store the QuickBooks
IdandSyncTokenlocally. - Re-sync updates using
SyncToken.
Example create invoice payload
{
"CustomerRef": { "value": "123" },
"Line": [
{
"Amount": 100.00,
"DetailType": "SalesItemLineDetail",
"SalesItemLineDetail": {
"ItemRef": { "value": "1" }
}
}
]
}
2) QuickBooks Desktop
If you mean QuickBooks Desktop, the integration is different:
- Usually via QuickBooks Web Connector or SDK
- Uses QBXML rather than the QBO REST API
Important sync considerations
- Idempotency: avoid duplicate invoices
- Field mapping: customer, items, taxes, discounts, due dates
- Sync status tracking: local DB should track
qb_invoice_id,sync_token,last_synced_at - Conflict handling: decide whether QuickBooks or your app is source of truth
- Webhooks / Change Data Capture: for detecting changes from QuickBooks Online
Helpful docs
- QuickBooks Online API docs: Intuit Developer Portal
- OAuth docs: Intuit Developer
- Webhooks docs: QuickBooks Online webhooks
If you want, I can give you:
- a Node.js / Python example for invoice sync,
- a field mapping table for QuickBooks invoices, or
- a full sync architecture for two-way invoice sync.