# QuickBooks Desktop vendors API

Everyone you buy from, with what you still owe them. Vendors come from a QuickBooks list (qbXML `VendorQuery`).

## List vendors

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

List vendors. 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. |
| `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 vendor

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

One vendor 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

Vendors 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 vendor name. |
| `isActive` | boolean | False when the vendor is inactive. |
| `companyName` | string | The company name. |
| `email` | string | The main email address. |
| `phone` | string | The main phone number. |
| `address` | Address | The vendor address. Address: line1, line2, city, state, postalCode, country. |
| `balance` | number | What you owe this vendor. |
| `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/vendors?limit=100"
```

```json
{
  "object": "list",
  "resource": "vendors",
  "file_id": "file_8f2c41",
  "data": [
    {
      "id": "80000012-1700000100",
      "name": "Ridgeline Lumber",
      "isActive": true,
      "balance": 1875,
      "modifiedAt": "2026-11-18T15:02:10-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 vendors

## The vendor list as the key for spending

The vendor list itself is simple, but its ids tie together everything you spend: [bills](/docs/api/bills), [bill payments](/docs/api/bill-payments), [purchase orders](/docs/api/purchase-orders) and, when the payee is a vendor, [checks](/docs/api/checks). Each of those carries the vendor as `{ id, name }`, so a pivot table by vendor works on the name while a program joins on the id. Vendor names in QuickBooks have no parents, so there is no colon to worry about.

## What balance means

`balance` is what you owe this vendor, as QuickBooks keeps it on the vendor record. QuickBooks changes that number when a bill or bill payment posts without marking the vendor as changed, so we re-read the whole vendor list once a day to pick it up. For today's figure, use open [bills](/docs/api/bills) (`status=open`) or the [A/P aging summary](/docs/api/reports/ap-aging), which runs QuickBooks' own report.

## Two requests bookkeepers ask for

Total paid to each vendor this year (a starting point for year-end vendor reviews) is the sum of two resources, because QuickBooks records a bill paid by check as a bill payment and money paid without a bill as a check:

```bash
GET /v1/files/file_8f2c41/bill-payments?date_from=2026-01-01&date_to=2026-12-31&format=csv
GET /v1/files/file_8f2c41/checks?date_from=2026-01-01&date_to=2026-12-31&format=csv
```

Group both by vendor (`vendor_name` on bill payments, `payee_name` on checks) and add them. Credit card charges entered as credit card transactions aren't in either; this API doesn't read them.

A vendor list for a mailing or a phone tree: `?status=active&fields=name,companyName,email,phone,address`.

## Inactive vendors

Vendors made inactive in QuickBooks stay in the list with `isActive: false`, because old bills still point at them. Leave `status` out to get every vendor, or pass `status=active`. Changes arrive at the next Web Connector check-in ([how freshness works](/docs/freshness-and-sync)); for an incremental copy, pass `modified_since` with `order=modified` and upsert on `id`.

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

Previous: [Customers](/docs/api/customers) | Next: [Items](/docs/api/items)
