QuickBooks Setup
Create a QuickBooks app in the Intuit Developer Portal for accounting integration.
Setup Steps
Section titled “Setup Steps”-
Create an Intuit Developer Account
Sign up at the Intuit Developer Portal if you don’t have one.
-
Create a New App
Click “Create an app” and select the QuickBooks Online and Payments platform. Choose your app type.
-
Configure App Settings
In your app’s Keys & OAuth section, enable the Accounting scope for full functionality.
-
Add Redirect URI
Add the redirect URI in both Sandbox and Production environments:
https://api.switchboard.fpdigital.ai/oauth/quickbooks/callback -
Get Sandbox Credentials
Copy the Client ID and Client Secret from the “Keys & credentials” tab. Start with Sandbox credentials for testing.
-
Create Sandbox Company
In the Sandbox section, create a test company with sample data for development and testing.
-
Switch to Production (When Ready)
After testing, submit your app for review to get Production credentials. Update your environment variables accordingly.
Environment Variables
Section titled “Environment Variables”npx wrangler secret put QUICKBOOKS_CLIENT_IDnpx wrangler secret put QUICKBOOKS_CLIENT_SECRETnpx wrangler secret put QUICKBOOKS_SANDBOX # Set to "true" for sandbox| Variable | Description |
|---|---|
QUICKBOOKS_CLIENT_ID | Client ID from Intuit Developer Portal |
QUICKBOOKS_CLIENT_SECRET | Client Secret from Intuit Developer Portal |
QUICKBOOKS_SANDBOX | Set to “true” for sandbox environment, omit for production |
Redirect URI
Section titled “Redirect URI”https://api.switchboard.fpdigital.ai/oauth/quickbooks/callbackOrganization Token Sharing
Section titled “Organization Token Sharing”Organization members cannot disconnect the shared connection - only the person who connected or an admin can manage it.
Important Notes
Section titled “Important Notes”- Sandbox and Production use different credentials and companies
- Access tokens expire after 1 hour
- Refresh tokens expire after 100 days
- Production apps require Intuit review for public distribution