Connect to QuickBooks
The first time you open the QB Bridge Settings tab without a connection, a Welcome to QB Bridge window lists these steps. Click Got it to close it.
sequenceDiagram
participant A as You, the administrator
participant SF as Salesforce
participant I as Intuit
participant QB as QuickBooks Online
A->>I: Step 1, copy the app keys (Client ID, Client Secret)
A->>SF: Step 2, create the Auth Provider with those keys
A->>SF: Step 3, create the Named Credential QuickBooksAPI and save
SF->>I: Opens the Intuit sign-in
A->>I: Sign in, choose the company, approve
I-->>SF: Tokens, kept and refreshed by Salesforce
A->>SF: Step 4, save the Realm ID on the QB Bridge Settings tab
SF->>QB: QB Bridge calls QuickBooks through QuickBooksAPIStep 1: Copy your Intuit app keys#
- Sign in to the Intuit Developer Portal and open My Hub, then App Dashboard.
- Open your app, or create a QuickBooks Online and Payments app.
- Open Keys & credentials for the environment you are connecting: Development for a sandbox company, Production for your live company.
- Copy the Client ID and Client Secret. Keep this tab open; you come back in step 2.

Keys and credentials in the Intuit Developer Portal. Pick Development or Production, then switch on Show credentials to see the Client ID and Client Secret.
Step 2: Create the Auth Provider#
- In Salesforce Setup, open Auth. Providers and click New.
- Fill in the values from the table below and click Save.
- At the bottom of the saved page, under Salesforce Configuration, copy the Callback URL.
- Add the Callback URL to your Intuit app, as shown in Add the Callback URL to Intuit below.
| Field | Value |
|---|---|
| Provider Type | Open ID Connect |
| Name | QuickBooks Auth |
| URL Suffix | QuickBooks_Auth |
| Consumer Key | The Intuit Client ID |
| Consumer Secret | The Intuit Client Secret |
| Authorize Endpoint URL | https://appcenter.intuit.com/connect/oauth2 |
| Token Endpoint URL | https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer |
| Default Scopes | com.intuit.quickbooks.accounting com.intuit.quickbooks.payment openid profile email phone address |
| Use Proof Key for Code Exchange (PKCE) Extension | Checked |
| Send access token in header | Checked |
| Send client credentials in header | Checked |
| Everything else | Leave as it is |

The bottom of the saved Auth Provider: copy the Callback URL (marked) into your Intuit app. Your own Salesforce domain appears here.
Add the Callback URL to Intuit#
- In your Intuit app, open Settings in the left menu.
- Open the Redirect URIs tab.
- Choose the same environment as your keys: Development for a sandbox company, Production for your live company.
- Click Add URI.
- Paste the Callback URL into the new box.
- Click Save.

Redirect URIs in the Intuit Developer Portal: 1 Settings, 2 Redirect URIs, 3 Development (or Production), 4 Add URI, 5 the pasted Callback URL, 6 Save. Your own Salesforce domain appears in the URL.
Step 3: Create the Named Credential QuickBooksAPI#
- In Setup, open Named Credentials. Open the menu next to New and choose New Legacy.
- Fill in the values from the table below. The Name must be exactly
QuickBooksAPI: QB Bridge looks the credential up by this name. - Leave Start Authentication Flow on Save checked and click Save.
- Intuit opens. Sign in, choose the QuickBooks company, and approve the connection.
- Back in Salesforce, Authentication Status reads Authenticated.
URL: https://sandbox-quickbooks.api.intuit.com
URL: https://quickbooks.api.intuit.com
| Field | Value |
|---|---|
| Label and Name | QuickBooksAPI |
| URL | From the tabs above |
| Identity Type | Named Principal |
| Authentication Protocol | OAuth 2.0 |
| Authentication Provider | QuickBooks Auth |
| Scope | The same scopes as the Auth Provider |
| Generate Authorization Header | Checked |
| Allow Merge Fields in HTTP Header / Body | Unchecked |

The Named Credential QuickBooksAPI after sign-in: Authentication Status Authenticated.
Step 4: Save your Realm ID#
The Realm ID, which QuickBooks calls the Company ID, tells QB Bridge which QuickBooks company to use.
- Find it. Sandbox company: Intuit Developer Portal, My Hub, Sandboxes. Live company: in QuickBooks, the gear icon, Account and settings, Billing & subscription.
- In Salesforce, open the QB Bridge app and the QB Bridge Settings tab.
- Under Global Configuration, click Edit and enter it in QuickBooks Realm ID (Company ID).
- Click Test Connection. This checks the ID without saving it.
- Click Save. QB Bridge saves only an ID that connects; otherwise you see "Unable to connect with this Realm ID. Please resolve errors before saving."

The QB Bridge Settings tab after step 4: 1 Status: Connected, with the company name; 2 Test Connection. The Realm ID is hidden in this picture.
Moving from a sandbox company to your live company
- Use the Production keys of your Intuit app in the Auth Provider, and add its Callback URL to the Production Redirect URIs.
- Change the Named Credential URL to
https://quickbooks.api.intuit.com, save, and sign in with the live company. - Save the live company's Realm ID on the QB Bridge Settings tab.
Your mappings and rules stay as they are. QB records and reference data belong to the company they came from, and QuickBooks IDs repeat between companies. So saving a different Realm ID pauses the background jobs and logs a warning: "The QuickBooks company changed from … to …. Background jobs were paused; records linked to the previous company are not updated in the new one…"
Before you restart the jobs on the Settings tab, archive or delete the previous company's QB Customers, QB Vendors, QB Invoices and QB Bills, and clear the QuickBooks IDs stored on your own records. Otherwise a record could be matched to the wrong QuickBooks record.
What the connection statuses mean#
| Status | Meaning |
|---|---|
| Checking | The page is testing the connection. |
| Connected | QuickBooks answered for the saved Realm ID. |
| Authenticated but Not Connected | The Named Credential is signed in, but there is no working company: no Realm ID saved yet ("QuickBooks Realm ID is missing."), a wrong Realm ID, or a sandbox URL with a live company (or the other way round). |
| Disconnected | No working connection. The box under the status says why. |
Where your QuickBooks sign-in is kept
Nowhere in QB Bridge. You sign in on Intuit's own page, and Salesforce keeps and refreshes the OAuth tokens inside the Named Credential. QB Bridge only calls QuickBooks through QuickBooksAPI, so it needs no Remote Site Settings and talks to no other service. The Auth Provider and Named Credential belong to your org, not the package, which is why you create them yourself.
Something's off?#
| You see | Do this |
|---|---|
| Intuit shows a redirect_uri error after you save the Named Credential | The Callback URL is missing from your Intuit app's Redirect URIs, or was added to the other environment. Add it and save the Named Credential again. |
| "Named credential not found." | Create the Named Credential, or correct its Name (not Label) to exactly QuickBooksAPI. |
| "Unable to connect with this Realm ID. Please resolve errors before saving." | The ID does not belong to the company you signed in with, or the URL is for the other environment. |
| It worked before and now says Disconnected | The sign-in expired or was revoked. Edit the Named Credential, Save, sign in again, then Test Connection. Records wait in the queue meanwhile and go once the connection is back. |
Where to next#
- Settings and background jobs: schedules, retries, conflicts and clean-up
- The life of a record: see what the connection is used for