QuickBooks Desktop API quickstart
This quickstart takes you from no account to a JSON list of open invoices from your QuickBooks Desktop company file in about 15 minutes: a few clicks on the office PC, then the first sync, which runs while you make a key. You need the QuickBooks admin login once, and nothing on the PC is opened to the internet.
What you need. A Windows PC with QuickBooks Desktop Pro, Premier or Enterprise and Intuit's Web Connector 2.2.0.34 or newer (QuickBooks installs it; older Web Connectors can't make the secure connection our server requires). QuickBooks stays open, or you let the Web Connector open the company file on its own. Data is as fresh as the last check-in, every 60 minutes by default. QuickBooks Online and QuickBooks for Mac have no Web Connector, so they can't connect.
The 15 minutes
| Step | Where | About |
|---|---|---|
| Start a trial | Your browser | 1 minute |
Create the company file and download the .qwc file | Your browser | 1 minute |
| Add it to the Web Connector and allow access | The office PC | 5 minutes |
| First sync | Runs on its own | 5 to 10 minutes for a small file |
| Make a key and call the API | Your terminal | 2 minutes |
The first-sync time is an estimate for a file with a few thousand records. A file with years of transactions takes several check-ins; see the example under the fourth step.
Step 1: start a trial
Open the sign-in page, type your work email and click the link we send. The link works once and expires after 15 minutes. The trial is 14 days with one company file.
Step 2: create the company file
Click Connect a company file and give it a name your team will recognize, such as the client's name. Leave Keep an encrypted copy here selected (the other choice, no-copy mode, makes every read wait for the next check-in). Click Create the Web Connector file, download the .qwc file and copy the password shown beside it. The password is shown once. Downloading the .qwc file again later gives you the same file and keeps the same password.
Step 3: add it to the Web Connector
On the PC where QuickBooks runs:
- Open the company file as the admin, in single-user mode.
- Choose File > App Management > Update Web Services (File > Update Web Services in older versions). The Web Connector window opens.
- Click Add an application, pick the
.qwcfile and click OK. - When QuickBooks asks whether to allow access, pick Yes, always; allow access even if QuickBooks is not running if you want overnight syncs, and choose the admin under Login as.
- Paste the password into the Password column and save it when asked.
- Tick the box next to the app and Auto-Run, then click Update Selected.
Connect a company file explains every screen, what to pick and why.
Step 4: watch the first sync
The file page updates while the Web Connector works, for example "Found Acme Construction. Reading customers (1,240 so far)". One session reads for up to 15 minutes or 200 responses, then the rest continues at the next check-in, so QuickBooks is never tied up for long.
Example, as an estimate: QuickBooks sends up to 200 customers per response and up to 25 invoices with their line items per response. A file with 1,240 customers and 3,410 invoices needs about 7 responses for customers and about 137 for invoices, roughly 144 in all. That fits inside one session's 200 responses if QuickBooks answers quickly; on a slow PC it finishes at the next check-in.
Step 5: make a key and read your invoices
Open API keys, give the key a label (where it will be used, such as "Month-end script"), pick the company file and click Create key. Copy it: it starts with dbk_ and is shown once. Then:
curl -H "Authorization: Bearer dbk_your_key" \
"https://desktop-app.greatwork.company/v1/files/file_8f2c41/invoices?status=open&limit=50"
The answer is a page of records (trimmed here to a few fields):
{
"object": "list",
"resource": "invoices",
"file_id": "file_8f2c41",
"data": [
{
"id": "1A2B-1700000400",
"number": "1001",
"date": "2026-10-14",
"customer": { "id": "80000004-1700000000", "name": "Acme Construction:Kitchen remodel" },
"dueDate": "2026-11-13",
"total": 1200,
"balance": 1200,
"status": "overdue",
"daysOverdue": 16
}
],
"next_cursor": "c_9f31...",
"has_more": true,
"synced_at": "2026-11-29T07:04:12-06:00",
"as_of": "2026-11-29T07:03:58-06:00"
}
synced_at is when the invoice list last finished syncing, and as_of is the Web Connector check-in the data comes from. Ids are QuickBooks' own ListID and TxnID values, and a customer's jobs appear with the Customer:Job names QuickBooks uses.
Next
- Authentication: file keys, account keys and Basic auth for Excel.
- Requests and pagination: filters,
next_cursorand CSV. - Freshness and sync: what each check-in reads and when.
- Google Sheets, Excel and Power Query or MCP if you'd rather not write code.
- The API reference for every resource and field.