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

# QuickBooks Desktop Web Connector

> Read one QuickBooks Desktop company collection through the installed QBWC SOAP route.

Install QuickBooks Web Connector on the Windows machine that can open the
company file. Mount `@bijectionhq/app-qbwc` with a fixed protected label for
the session and company records. The connector initiates HTTPS calls to
`POST /quickbooks/soap` (the mount at `quickbooks`) on your application's site.

## Mount and initialize

```ts app.ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
import { app, label } from "@bijectionhq/bijection";
import qbwc from "@bijectionhq/app-qbwc";

const books = label();

export default app({ books, quickbooks: qbwc({ data: books }) });
```

```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
bijection mutate quickbooks.source.initialize '{"mode": "quickbooks-desktop.records", "collection": "customers", "companyFile": "C:\\Books\\Company.QBW", "pageRecords": 25, "since": null}'
```

`quickbooks.operator` is granted from code: `ctx.grant(quickbooks.operator, { to, under })` in one of your
mutations ([Grants](https://docs.bijection.com/access/grants.md)).

`qbwc({ data })` declares the mount's `operator` role, which clears `data` and
is the only role `quickbooks.source.*` and `quickbooks.records.list` allow,
and the sealed `installation` key its SOAP route uses for authentication.

Initialize one collection per mount. Supported collections include customers,
vendors, accounts, items, invoices, bills, payments, bill payments, sales
receipts, credit memos, journal entries, checks, purchase orders, and
estimates. Set `companyFile` to the exact Windows path that QuickBooks opens.
Use a new mount for a different company or collection. Set `since`
to a company-local value such as `2026-10-01T00:00:00` to bound both the
initial modified and deleted queries, or to `null`.

## Install the Web Connector application

Set the mount's `installation` HMAC key at the company's label. Create a
private UTF-8 file named `qbwc.key` with three lines. Use LF line breaks
and end the file immediately after the generated password of at least
16 characters. The second line is the username in the `.qwc` file.

```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
bijection-qbwc-v1
qbwc-reader
<generated password>
```

```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
bijection secret set quickbooks.installation --alg hmac-sha256 --label books --from-file qbwc.key
```

Save the following as a `.qwc` file. Substitute your HTTPS site origin
and the configured username. Issue two distinct GUIDs for each mount
and keep them stable when reinstalling this file.

```xml theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
<?xml version="1.0"?>
<QBWCXML>
  <AppName>Bijection QuickBooks</AppName>
  <AppID></AppID>
  <AppURL>https://ledger.example/quickbooks/soap</AppURL>
  <AppDescription>Read-only company collection</AppDescription>
  <AppSupport>https://ledger.example</AppSupport>
  <UserName>qbwc-reader</UserName>
  <OwnerID>{73E4E01A-2842-4BC3-851B-A7EC37C9205F}</OwnerID>
  <FileID>{3D00799B-7FDD-4370-991F-24F077E6C151}</FileID>
  <QBType>QBFS</QBType>
  <IsReadOnly>true</IsReadOnly>
  <Scheduler><RunEveryNMinutes>15</RunEveryNMinutes></Scheduler>
</QBWCXML>
```

Open the pinned company file, add the application in Web Connector, approve
read access in QuickBooks, and enter the sealed password in Web Connector.
The mounted SOAP route checks the username and password through the sealed
key, then opens a session and returns a ticket. The session row stores a
keyed ticket proof. A ticket expires ten minutes after the last callback that
updated its session. Rotating the key invalidates existing tickets.

## Records and recovery

The mount negotiates US qbXML 8.0 through 13.0. Records upsert by `ListID`
or `TxnID`, with QuickBooks' scalar values kept as text. The connector
applies explicit deleted-object records. Missing rows remain. A page
publishes before its SOAP progress reply, while the completed pass
checkpoint advances after both modified and deleted queries finish. An
immediate retry of the latest accepted answer returns its saved progress
without applying the page again.
Interrupted passes begin again from the last completed positions. The
connector does not check QuickBooks' deletion retention floor.

Set `pageRecords` to 1–100. Each pass admits at most 256 pages, with
128 KiB per SOAP envelope, 64 KiB of decoded records per page and 16 KiB
per record. Oversized unpaged account or deletion answers refuse the page.
Use `source.health` to see the last completed pass or refusal.
[Intuit QuickBooks Web Connector guide](https://static.developer.intuit.com/resources/QBWC_proguide.pdf)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.