Skip to content
Desktop Accounting API

Several computers per connection

A connection can have up to 5 active Web Connector installs, one per Windows computer. Each install is its own connector file with its own Web Connector username, password, OwnerID and FileID. Use this when the computer that keeps QuickBooks open is not always on, for example a front-desk workstation plus a standby, or the server plus a workstation.

Billing does not change. You pay per company file, and every install of a connection opens the same company file.

Your API calls do not name a computer. Requests go to whichever active install checks in first with the connected company file open.

  • One install has a session open at a time. Another install that checks in during that session is told the connection is busy and tries again at its next scheduled update. A request is never sent to two computers.
  • A computer that stops answering in the middle of a session holds the connection until that session times out: 2 minutes without any call, or 15 minutes while a request is in QuickBooks there. Then the next install takes over. An interrupted read runs once more there.
  • A session that QuickBooks never answers, for example because a dialog is open on that computer, has nothing in QuickBooks yet. A working install takes it over after 60 seconds, and the stuck computer waits before it tries again.
  • If a write’s outcome becomes unknown on one computer, later writes wait for the whole connection, not only for that computer. Reads keep running on any install. The writes resume when that computer’s Web Connector checks in again, or after 15 minutes. See Request lifecycle.
  • A cursor belongs to the session that opened it. When the next page would come from another install, the cursor expires like any cursor whose session ended.
  • Every session checks the company file before it sends anything. An install whose computer has another company file open sends nothing.

A session can fail on one computer while another works: a different company file is open there, QuickBooks does not start there, or QuickBooks does not answer there. While another active install is serving the connection, such a failure belongs to that install:

  • The connection’s status stays as it is. Queued requests keep their retry budget and wait for the install that works.
  • The failing install waits before it opens QuickBooks again: 30 seconds after the first failure, doubling up to 15 minutes. Without that wait, a computer with the wrong file open would grab the connection at every check-in.
  • installs[].failure on GET /v1/end-users/{id}/connection shows the error code, the open company and file name, and how many sessions failed. It clears after that install’s next good session.

When no other install is serving, the failure is the connection’s, exactly as with a single computer. A wrong company file then shows as company_file_mismatch and requests fail with QBD_WRONG_COMPANY_FILE_OPEN.

Each install also remembers the path its computer used for the company file. The server opens it by its UNC path or mapped drive, and a workstation may use a local path. Reset the company file clears the paths of every install.

Create an auth session with installMode: "add" and send its link to the customer, who opens it on the other computer:

import { DesktopAccountingApi } from "@desktopaccountingapi/quickbooks-desktop";
const client = new DesktopAccountingApi();
const session = await client.authSessions.create({
publishableKey: process.env.DAAPI_PUBLISHABLE_KEY ?? "",
endUserId: "eu_01j9...",
installMode: "add",
});

The connection must have finished setup, otherwise the call returns 409 INTEGRATION_CONNECTION_NOT_SET_UP. With 5 active installs it returns 422 WEB_CONNECTOR_INSTALL_LIMIT_REACHED; remove one first. A connector file the customer downloaded holds a slot until its setup completes. If its link expires or is canceled first, the slot is released and the install shows expired. When two links download the last free slot at the same time, one gets the file and the other a page saying the computer cannot be added. The dashboard’s Setup link section has the same choice: Adds another computer.

The setup flow skips the “What changed?” page and runs the normal steps on the new computer. QuickBooks must have the same company file open there. A different file makes the test step fail with a wrong-file message, and the new install does not finish setup. The new connector file keeps the application name of the existing install, so the company file needs no second application entry. The customer’s help page is Add another computer.

When setup finishes, the existing installs keep serving. connection.setup_completed fires again with the new install’s connectorId.

The default, installMode: "replace", is for the first setup and for moving to a new computer. When its setup finishes, every older active install is replaced and its check-ins are refused.

installs on the connection lists up to 20 connector files, newest first. For each one you get status (active, replaced, removed or expired), online (checked in within 60 seconds), lastCheckInAt, lastVerifiedSessionAt and failure. The connection is online while any active install is.

Remove a computer that no longer runs the connection:

import { DesktopAccountingApi } from "@desktopaccountingapi/quickbooks-desktop";
const client = new DesktopAccountingApi();
const connection = await client.endUsers.removeConnectionInstall("eu_01j9...", "ctr_01j9...");

The removed install’s next check-in is refused. If it has a session open, a request already in QuickBooks finishes and the session then ends. Requests that were waiting go to the other installs. Removing the last active install makes the connection offline at once: synchronous requests fail with INTEGRATION_CONNECTION_NOT_ACTIVE until a new setup link adds a computer. Removing a removed or replaced install changes nothing. Ask the customer to remove the app’s row from that computer’s Web Connector too.