Core concepts
QuickBooks Desktop runs on your customer’s Windows computer, not in the cloud. Everything in this API follows from that fact: requests wait in a queue until the customer’s computer picks them up, the computer can be off, and QuickBooks itself can be busy. These are the objects you work with.
Organization ── Project (test or production) ─┬─ Secret keys, publishable key ├─ Webhook endpoints └─ End users ── Connection ─┬─ Connectors (Web Connector installs) ├─ Requests └─ Company fileOrganization
Section titled “Organization”Your company’s account. It holds team members, roles and billing. Members are owners, admins or members. Owners manage billing and roles; owners and admins manage projects and keys; members work with end users, setup links and the request log.
Project
Section titled “Project”An isolated environment inside the organization, for example “Development” and “Production”. A project’s environment is either test or production and is fixed when you create it.
- Test projects are free and use
sk_test_andpk_test_keys. Use them with sample company files and trial installations of QuickBooks. - Production projects use
sk_live_andpk_live_keys and are billed per active company file. See Billing and pricing.
A key only reaches end users in its own project. Two projects never share data.
Secret key and publishable key
Section titled “Secret key and publishable key”A secret key (sk_test_... or sk_live_...) authenticates every API call from your server. A project can have many named secret keys, so you can rotate them. The publishable key (pk_...) is a public project identifier that you pass when you create setup links. See Authentication.
End user
Section titled “End user”Your customer, as seen by the API. An end user has your own identifier (sourceId), a company name that the setup flow shows, and a contact email for your records. We never email end users.
Create one end user per QuickBooks company file. If a customer keeps two company files, create two end users.
Connection
Section titled “Connection”The link between an end user and one QuickBooks company file. It has a status (pending_setup, online, offline, quickbooks_unavailable, company_file_mismatch, disabled), the company name and QuickBooks version it last saw, and the queue of requests waiting for that file. The end user object returns it in integrationConnections.
Connector
Section titled “Connector”One installation of the QuickBooks Web Connector that serves a connection: one .qwc file, one Web Connector username and one password. A connection usually has one connector. When your customer moves to a new computer and runs setup again, the new computer gets a new connector and the old one is turned off once the new one works.
Auth session and the setup flow
Section titled “Auth session and the setup flow”An auth session is a time-limited setup link (authFlowUrl) for one end user. The person at the QuickBooks computer opens it and follows six short steps: start, check the computer, download the connector file, allow access in QuickBooks, enter the password in the Web Connector, and test the connection. See Connect an end user.
Request
Section titled “Request”Every call that needs QuickBooks, such as listing invoices, creating a customer, a health check or passthrough, becomes a request with an ID like req_01j9.... A request moves through statuses: queued, then sent to the Web Connector, then succeeded or failed. You can read any request back with GET /v1/requests/{id}, and the dashboard request log shows its timeline. See Request lifecycle.
Platform calls such as creating an end user also return a request ID for support, but they never queue.
The QuickBooks Web Connector
Section titled “The QuickBooks Web Connector”Intuit’s free Windows program that lets web services talk to QuickBooks Desktop. It polls our server over HTTPS. Our connector file tells it to check in every 10 seconds, and more often while there is work. When a request is waiting, the Web Connector opens a session with QuickBooks, passes the request in and sends QuickBooks’ answer back. Nothing listens on your customer’s network, and their firewall needs no inbound rules.
Because the Web Connector polls, the first request after a quiet period waits for the next check-in. Follow-up requests in the same session are fast. Request lifecycle has the numbers.
QuickBooks objects
Section titled “QuickBooks objects”QuickBooks records come in two families, and the API keeps that split:
- Lists: customers, vendors, items, accounts, classes, terms and similar records. Many have
name,fullNameandisActive. Some are hierarchical, such asParent:Child. Deactivation preserves history. Resources with a delete operation require explicit confirmation; check the result to see whether QuickBooks deleted, deactivated or retained the record. - Transactions: invoices, bills, checks, payments, journal entries and others. Many have a
transactionDate, arefNumberand line items. Delete and void support depends on the resource.
Editable QuickBooks records normally carry an id and revisionNumber. Updates that require a revision must use the current value. QuickBooks can keep the same revision for edits made within one second, so it is not an absolute safeguard against simultaneous changes. Definition, value and action-result objects can have different fields. Check the resource’s reference for its update, delete and void operations. See Updates and line items and Delete and merge records.