DIY Developer Guide: Building Custom Integrations for QuickBooks
Step-by-step guide for developers building custom QuickBooks Online integrations. Covers OAuth 2.0, REST APIs, webhooks, and common sync patterns for orders, invoices, and inventory.

Overview
QuickBooks Online (QBO) is the most widely used small-to-mid-market accounting platform. Its REST API enables developers to build integrations for invoicing, payments, inventory, and financial reporting. This guide covers practical patterns for building reliable QBO integrations.
Authentication with OAuth 2.0
QuickBooks uses OAuth 2.0 for all API access:
- Register your app on the Intuit Developer Portal
- Implement the authorization code flow to get access and refresh tokens
- Store tokens securely — access tokens expire in 1 hour, refresh tokens in 100 days
- Implement automatic token refresh before expiration
Key API Endpoints
- Invoices:
POST /v3/company/{realmId}/invoice - Payments:
POST /v3/company/{realmId}/payment - Items (Products):
POST /v3/company/{realmId}/item - Customers:
POST /v3/company/{realmId}/customer - Purchase Orders:
POST /v3/company/{realmId}/purchaseorder
Common Integration Patterns
Order to Invoice Sync
- Receive order data from your ecommerce platform
- Check if the customer exists in QBO — create if not
- Map order line items to QBO items
- Create the invoice with proper tax and discount handling
- Record payment when order is paid
Inventory Sync
- Query QBO item quantities on hand
- Compare with ecommerce inventory levels
- Adjust quantities in the lagging system
- Handle multi-location inventory if applicable
Webhook Integration
QBO supports webhooks for real-time notifications:
- Subscribe to entity change events (Invoice, Payment, Customer, etc.)
- Validate webhook signatures for security
- Process events asynchronously to avoid timeout issues
- Implement idempotent handlers to manage duplicate deliveries
Rate Limiting
QBO enforces rate limits:
- 500 requests per minute per realm
- 10 concurrent requests per realm
- Implement queuing and throttling for high-volume scenarios
When to Use a Managed Platform
QuickBooks integrations seem simple but get complex fast — multi-currency, tax handling, class tracking, and error recovery all add layers of difficulty. APIWORX handles these complexities with pre-built QuickBooks connectors, so your team can focus on business operations instead of API plumbing.

