# QuickBooks Desktop customers API

Customers and their jobs, with balances. A job is a customer with a parent, so Acme Construction:Kitchen remodel is its own row. Customers come from a QuickBooks list (qbXML `CustomerQuery`).

## List customers

`GET /v1/files/{file_id}/customers`

List customers. Follow `next_cursor` for the rest ([how pages work](/docs/requests-and-pagination)).

### Parameters

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `file_id` (required) | path | string | The company file id (file_...), from GET /v1/files. |
| `limit` | query | integer | Records per page, 1 to 500. Default 100. |
| `cursor` | query | string | next_cursor from the previous page. Keep the other parameters the same while paging. |
| `modified_since` | query | string | Only records changed at or after this time (ISO 8601 date-time with offset, or a date). |
| `status` | query | string: active, inactive, all | Filter by status. |
| `customer` | query | string | A customer id or name. A customer includes its jobs. |
| `fields` | query | string | Comma-separated top-level fields to return (id is always included). |
| `if_queued` | query | string: error | error: for clients that can't come back later, such as a scheduled sheet refresh. Instead of 202, a no-copy file answers 409 no_copy_kept at once and nothing is queued; a report QuickBooks hasn't sent yet answers 409 report_not_ready (it is still asked for at the next check-in). |
| `order` | query | string: modified, id | id (default) or modified (default with modified_since). |
| `format` | query | string: json, csv | json (default) or csv. Accept: text/csv works too. |
| `flat` | query | string: 1 | 1 returns the flat rows CSV uses, as JSON (what the Power Query recipe reads). |

### Responses

| Status | Means |
| --- | --- |
| 200 | OK |
| 202 | The company file keeps no copy here. The answer arrives at the next Web Connector check-in; read the job then. |
| 400 | A parameter isn't valid, or the key was put in the URL. |
| 401 | No key, or the key isn't valid. |
| 404 | No such company file, record or job for this key. |
| 409 | if_queued=error was sent and the answer would have had to wait for the next check-in: the company file keeps no copy (no_copy_kept), or QuickBooks hasn't sent this report yet (report_not_ready). Run it again after the check-in. |
| 429 | More than 60 requests a minute with this key. Retry-After says when to try again. |

## One customer

`GET /v1/files/{file_id}/customers/{qb_id}`

One customer by its QuickBooks id.

### Parameters

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `file_id` (required) | path | string | The company file id (file_...), from GET /v1/files. |
| `qb_id` (required) | path | string | QuickBooks' id for the record (ListID or TxnID). |
| `if_queued` | query | string: error | error: for clients that can't come back later, such as a scheduled sheet refresh. Instead of 202, a no-copy file answers 409 no_copy_kept at once and nothing is queued; a report QuickBooks hasn't sent yet answers 409 report_not_ready (it is still asked for at the next check-in). |
| `format` | query | string: json, csv | json (default) or csv. Accept: text/csv works too. |

## Fields

Customers fields

| Field | Type | Description |
| --- | --- | --- |
| `id` | string | QuickBooks' own id (ListID for lists, TxnID for transactions). |
| `editSequence` | string | Changes every time the record is edited in QuickBooks. |
| `createdAt` | date-time | When the record was created, with the company file's time offset. |
| `modifiedAt` | date-time | When the record last changed. Use modified_since to read only what changed. |
| `name` | string | The customer or job name. |
| `fullName` | string | The full name, including parents (Customer:Job, Parent:Item). |
| `isActive` | boolean | False when the customer is inactive in QuickBooks. |
| `parent` | Ref | For a job, the customer it belongs to. |
| `isJob` | boolean | True for jobs (customers with a parent). |
| `companyName` | string | The company name. |
| `email` | string | The main email address. |
| `phone` | string | The main phone number. |
| `billAddress` | Address | The billing address. Address: line1, line2, city, state, postalCode, country. |
| `balance` | number | What this customer or job owes, not counting its jobs. |
| `totalBalance` | number | What this customer owes, including its jobs. |
| `jobStatus` | string: Awarded, Closed, InProgress, None, NotAwarded, Pending | The job status for jobs, in QuickBooks' own words: Awarded, Closed, InProgress, None, NotAwarded or Pending. |
| `currency` | string | Currency code, when the company file uses multiple currencies. |

`Ref` is `{ id, name }`: QuickBooks' id and full name, so reports can show names without a second request. CSV flattens each record into one row; the columns are listed in [the OpenAPI document](https://desktop-app.greatwork.company/openapi.json).

## Example

```bash
curl -H "Authorization: Bearer dbk_your_key" "https://desktop-app.greatwork.company/v1/files/file_8f2c41/customers?limit=100"
```

```json
{
  "object": "list",
  "resource": "customers",
  "file_id": "file_8f2c41",
  "data": [
    {
      "id": "80000001-1700000000",
      "name": "Acme Construction",
      "fullName": "Acme Construction",
      "isActive": true,
      "isJob": false,
      "email": "ap@acme.example",
      "balance": 4250,
      "totalBalance": 6980.5,
      "modifiedAt": "2026-11-20T08:12:44-06:00"
    }
  ],
  "next_cursor": null,
  "has_more": false,
  "synced_at": "2026-11-27T07:04:12-06:00",
  "as_of": "2026-11-27T07:03:58-06:00"
}
```

## About customers

## Jobs live in the customer list

QuickBooks Desktop has no separate job list. A job is a customer with a parent, and a sub-job is a job with a parent, so one list holds `Acme Construction`, `Acme Construction:Kitchen remodel` and `Acme Construction:Kitchen remodel:Cabinets`. qbXML has no job query of its own (jobs come back from the same customer query), and this API keeps that shape: every row has `isJob` and, for jobs, a `parent` reference. Filter `isJob` in your sheet or script to get a customers-only list.

The `customer` filter takes an id or a name and always includes the jobs underneath. These two requests return the same rows:

```bash
GET /v1/files/file_8f2c41/customers?customer=80000001-1700000000
GET /v1/files/file_8f2c41/customers?customer=Acme%20Construction
```

Names match the full name or the short name, ignoring case. A job's full name has a colon in it, so encode it (`Acme%20Construction%3AKitchen%20remodel`) or, better, pass the id.

## balance or totalBalance

`balance` is what this one customer or job owes. `totalBalance` adds every job underneath. For a list of customers with what each owes in total, keep the rows where `isJob` is false and read `totalBalance`; adding up `balance` across a parent and its jobs gives the same figure, and adding `totalBalance` for both counts the jobs twice.

QuickBooks updates a customer's balance when an invoice or payment posts without marking the customer as changed, so a `modified_since` read won't pick that up. We re-read the whole customer list once a day to catch it. For what is owed this hour, use the open [invoices](/docs/api/invoices) (`status=open`) or the [A/R aging summary](/docs/api/reports/ar-aging), which comes from QuickBooks' own report.

## Inactive customers and job status

Customers you made inactive in QuickBooks are still here with `isActive: false`. Leave `status` out for everyone, or pass `status=active` or `status=inactive`. `jobStatus` carries QuickBooks' own words (Awarded, InProgress, Closed and so on), which is handy for a contractor's job board: active jobs with `jobStatus` InProgress, sorted by `totalBalance`.

## Keeping a copy in step

For a nightly pull into a spreadsheet or a database, ask for `modified_since` set to your last run's `as_of` with `order=modified`, and upsert on `id`. Deleted customers stop appearing after the daily sweep; a request for one by id then answers `record_not_found` ([errors](/docs/errors)). The same customer reference appears on [invoices](/docs/api/invoices), [payments](/docs/api/payments) and [estimates](/docs/api/estimates), so the id is the join key across all of them.

**Also in the reference:** [Vendors](/docs/api/vendors), [Items](/docs/api/items), [Accounts](/docs/api/accounts), [Classes](/docs/api/classes).

Previous: [Overview](/docs/api) | Next: [Vendors](/docs/api/vendors)
