> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect QuickBooks Online with OAuth 2.0 – StackOne Hub

> Link a QuickBooks Online account in the StackOne Hub using OAuth 2.0. End-user guide to authorize the integration and start using QuickBooks Online actions.

<Warning>The Company ID (Realm ID) you enter here must be the same company you select in the QuickBooks authorization popup. If they differ, the connection may fail — or it may succeed and send every API request to the wrong company.</Warning>

<section data-guide-section data-guide-scopes="">
  <h2>Important — Company ID must match the company you authorize</h2>

  <p>During authorization, QuickBooks shows a company selection screen. Select the same company whose Realm ID you enter below. The entered Company ID is used directly in every API request, so on a mismatch you may get an error, or the connection may succeed and read and write data to the wrong company.</p>

  <ul>
    <li>If you have access to multiple companies, pick the one matching the Realm ID you entered.</li>
    <li>Always double-check both are the same company before connecting.</li>
  </ul>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Find your Company ID (Realm ID)</h2>

  <p>Locate your Realm ID in your QuickBooks Online account.</p>

  <Steps>
    <Step title="Sign in to QuickBooks Online">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Sign in to your <a href="https://qbo.intuit.com/" target="_blank" rel="noopener noreferrer">QuickBooks Online account</a>.</p>

        <ul>
          <li>Click the <strong>Gear icon</strong> in the top right corner.</li>
          <li>Under the <strong>PROFILE</strong> section, click <strong>Subscriptions and billing</strong>.</li>
        </ul>
      </div>
    </Step>

    <Step title="Copy the Company ID">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Your Company ID is displayed at the top of the <strong>Subscriptions and billing</strong> page.</p>

        <ul>
          <li>Your Company ID is shown at the top of this page.</li>
          <li>Format: A numeric value like `9341456924700058`</li>
          <li>Copy this value and store it securely for use later.</li>
        </ul>
      </div>
    </Step>
  </Steps>
</section>

<div data-whitelabel-hide>
  <h2>Linking the Account from the Hub</h2>

  <Steps>
    <Step title="Navigate to the Hub">
      Use one of the three <a href="/guides/accounts-section#linking-accounts">Linking Account Methods</a> to access the Hub.
    </Step>

    <Step title="Fill out the fields">
      Fill out the following fields using details from your provider:

      <ul>
        <li><strong>Company ID (Realm ID)</strong></li>
      </ul>
    </Step>

    <Step title="Connect">
      <ul>
        <li>Click <strong>Connect</strong></li>
        <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
        <li>Once authorization is successful, you will see a confirmation popup</li>
      </ul>
    </Step>
  </Steps>

  <p>If the account linking is successful, you will see the newly linked account in your <a href="/guides/accounts-section">Accounts</a> page.</p>
</div>
