> For the complete documentation index, see [llms.txt](https://integrations.drivetrain.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://integrations.drivetrain.ai/integration-guide/readme/accounting-and-erp/integrating-with-quickbooks.md). Agents can also search and read this documentation through its [MCP server](https://integrations.drivetrain.ai/~gitbook/mcp).

# Integrating with QuickBooks

Connect QuickBooks to Drivetrain quickly—no provisioning or support required.

You connect **QuickBooks Online** to Drivetrain yourself by signing in to QuickBooks. No credentials are shared with Drivetrain.

## Before you start

* **In Drivetrain:** you need to be an admin.
* **In QuickBooks Online:** you're the **primary admin** or a **Company admin** of the company you want to connect. QuickBooks only lets these users connect apps.
* Drivetrain asks QuickBooks for access to your accounting data (plus your email address). Drivetrain only reads data.

## Step 1: Start the connection in Drivetrain

1. Go to the **Data** page.
2. Click the **+** icon at the top of the **Data** panel (or **Add data source** if nothing is connected yet).
3. Select **QuickBooks**.
4. Click **Connect to QuickBooks**.

<figure><img src="https://4220329029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBZR0D9lq6jrI895OuOU%2Fuploads%2Fgit-blob-f32deb3a2e4dfb574cc879055613d638af183e21%2FQBO%20integration%20(16).gif?alt=media" alt=""><figcaption></figcaption></figure>

## Step 2: Sign in to QuickBooks

1. The QuickBooks sign-in page opens in the same tab. Sign in with your admin account and complete multi-factor authentication if asked.
2. If your login has access to several companies, select the one to connect, and authorize access.

<figure><img src="https://4220329029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBZR0D9lq6jrI895OuOU%2Fuploads%2Fgit-blob-e96ee329f82a08f0dce978bb6318ab1e3363716b%2FQBO%20integration%20(18).gif?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Each data source connects one QuickBooks company. To connect another company, finish the first one, then repeat from Step 1.
{% endhint %}

## Step 3: Check that it worked

You return to Drivetrain and the first sync starts. **Sync in progress** appears at the top of the page, and when the sync finishes the data source shows **Connected**.

<figure><img src="https://4220329029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBZR0D9lq6jrI895OuOU%2Fuploads%2Fgit-blob-3af3ed479c4c1665cf290baa5fec277a26121ef3%2FQBO%20integration%20(6).gif?alt=media" alt=""><figcaption></figcaption></figure>

## What data comes in

* Drivetrain's standard QuickBooks datasets: **Account**, **General Ledger** and **Trial Balance**.
* Data syncs daily by default. Use **Sync** in the data source's menu to sync now, or **Sync schedule** to change the schedule.

## Reconnect or disconnect

* The QuickBooks sign-in stops working after about 100 days without a sync (and after 5 years at most), or if Drivetrain is disconnected in QuickBooks. Syncs then fail. See [Re-authentication of QuickBooks](https://integrations.drivetrain.ai/integration-guide/readme/accounting-and-erp/integrating-with-quickbooks/re-authentication-of-quickbooks.md).
* To disconnect, open the data source's menu, choose **Remove** and confirm with **Delete data source**. This also deletes its data from Drivetrain.

## Troubleshooting

<details>

<summary>The sync started, but I don't see any datasets.</summary>

The first sync can take a while for large companies. Refresh the page after a few minutes. If the data source shows **Sync failed**, open it to see the error.

</details>

<details>

<summary>I can't authorize Drivetrain in QuickBooks.</summary>

Only the primary admin or a Company admin can connect apps. Ask one of them to connect, or to make you a Company admin.

</details>

<details>

<summary>"The new credentials connect to a different QuickBooks account …"</summary>

You picked a different company while updating credentials. Run **Edit credentials** again and select the original company. To connect another company, add a new QuickBooks data source.

</details>

<details>

<summary>Nothing's working. Can someone from Drivetrain help?</summary>

Contact your Drivetrain integration partner. They may ask for temporary access for validation. [View steps to grant access.](https://integrations.drivetrain.ai/integration-guide/readme/accounting-and-erp/integrating-with-quickbooks/grant-temporary-access-to-quickbooks.md)

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://integrations.drivetrain.ai/integration-guide/readme/accounting-and-erp/integrating-with-quickbooks.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
