QuickBooks Desktop bills API

Vendor bills with due dates, what is still open and the expense or item lines behind each one. Bills come from QuickBooks transactions (qbXML BillQuery).

List bills

GET/v1/files/{file_id}/bills

List bills. Follow next_cursor for the rest (how pages work).

Parameters

ParameterInTypeDescription
file_id (required)pathstringThe company file id (file_...), from GET /v1/files.
limitqueryintegerRecords per page, 1 to 500. Default 100.
cursorquerystringnext_cursor from the previous page. Keep the other parameters the same while paging.
modified_sincequerystringOnly records changed at or after this time (ISO 8601 date-time with offset, or a date).
date_fromquerydateTransaction date on or after (YYYY-MM-DD).
date_toquerydateTransaction date on or before (YYYY-MM-DD).
statusquerystring: open, unpaid, paid, closed, overdue, allFilter by status. overdue is open and past the due date in the company file's time zone.
vendorquerystringA vendor id or name.
fieldsquerystringComma-separated top-level fields to return (id is always included).
if_queuedquerystring: errorerror: 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).
orderquerystring: date, modified, iddate (newest first, default), modified (oldest change first, default with modified_since) or id.
formatquerystring: json, csvjson (default) or csv. Accept: text/csv works too.
flatquerystring: 11 returns the flat rows CSV uses, as JSON (what the Power Query recipe reads).
rowsquerystring: records, lineslines gives one row per line item (with format=csv or flat=1).

Responses

StatusMeans
200OK
202The company file keeps no copy here. The answer arrives at the next Web Connector check-in; read the job then.
400A parameter isn't valid, or the key was put in the URL.
401No key, or the key isn't valid.
404No such company file, record or job for this key.
409if_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.
429More than 60 requests a minute with this key. Retry-After says when to try again.

One bill

GET/v1/files/{file_id}/bills/{qb_id}

One bill by its QuickBooks id.

Parameters

ParameterInTypeDescription
file_id (required)pathstringThe company file id (file_...), from GET /v1/files.
qb_id (required)pathstringQuickBooks' id for the record (ListID or TxnID).
if_queuedquerystring: errorerror: 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).
formatquerystring: json, csvjson (default) or csv. Accept: text/csv works too.

Fields

Bills fields
FieldTypeDescription
idstringQuickBooks' own id (ListID for lists, TxnID for transactions).
editSequencestringChanges every time the record is edited in QuickBooks.
createdAtdate-timeWhen the record was created, with the company file's time offset.
modifiedAtdate-timeWhen the record last changed. Use modified_since to read only what changed.
numberstringThe number people see (invoice number, check number).
datedateThe transaction date (YYYY-MM-DD).
memostringThe memo field.
currencystringCurrency code, when the company file uses multiple currencies.
exchangeRatenumberExchange rate to the home currency, when the company file uses multiple currencies.
vendorRefThe vendor, as { id, name }.
dueDatedateWhen payment is due (YYYY-MM-DD).
amountDuenumberThe bill amount.
openAmountnumberWhat is still unpaid.
isPaidbooleanTrue when nothing is left to pay.
statusstring: paid, open, overduepaid, open, or overdue (open and past the due date). Computed by Desktop Books when the record is read.
daysOverdueintegerDays past the due date while a balance is open, counted in the company file's time zone. 0 when nothing is overdue. Computed by Desktop Books when the record is read.
linesBillsLine[]Line items: item, description, quantity, rate, amount, class.
Line item fields
FieldTypeDescription
itemRefThe item, as { id, name }.
descriptionstringThe line's description.
quantitynumberQuantity.
ratenumberPrice per unit.
amountnumberThe line amount.
classRefThe class on the line, when classes are turned on.
accountRefThe expense account, for expense lines.

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.

Example

curl -H "Authorization: Bearer dbk_your_key" "https://desktop-app.greatwork.company/v1/files/file_8f2c41/bills?status=open&limit=100"
{
  "object": "list",
  "resource": "bills",
  "file_id": "file_8f2c41",
  "data": [
    {
      "id": "1B10-1700001000",
      "number": "RL-55120",
      "date": "2026-11-10",
      "dueDate": "2026-12-10",
      "vendor": {
        "id": "80000012-1700000100",
        "name": "Ridgeline Lumber"
      },
      "amountDue": 1875,
      "openAmount": 1875,
      "isPaid": false
    }
  ],
  "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 bills

What you owe, bill by bill

A bill is a vendor's invoice entered into QuickBooks. amountDue is the bill's full amount and openAmount is what is still unpaid. status is worked out when you read it: paid, overdue (unpaid and past the due date in the company file's time zone) or open. daysOverdue counts the days since the due date.

Bills to pay, for a weekly payables run:

GET /v1/files/file_8f2c41/bills?status=open&fields=number,date,dueDate,vendor,openAmount,daysOverdue&format=csv

The date filters apply to the bill date, not the due date, so "due in the next 7 days" is a filter on the due_date column in your sheet. Overdue first, then by due date, is the usual order.

Why the aging report may bucket a bill differently

QuickBooks can age bills from the due date or from the bill date, a company preference (Intuit explains both). daysOverdue always counts from the due date. When a file ages from the bill date, the A/P aging summary shows some bills older than this list does. The report also counts vendor credits, which this list leaves out. Match the report when the numbers have to agree with QuickBooks.

Expense lines and item lines

A bill can carry two kinds of lines, and both come back in lines: expense lines charge an account (rent, fuel, subcontractors) and fill account; item lines buy an item (parts, materials) and fill item, with quantity and cost. For spending by category, read rows=lines&format=csv, then pivot on account_name for expense lines and on item_name for item lines. Lines carry a class when class tracking is on (classes).

Payments against bills are a separate transaction in QuickBooks: see bill payments, whose appliedTo names the bills each payment covered. A voided bill stays here with its amounts at zero, as QuickBooks keeps it (Intuit on voiding versus deleting); a deleted bill disappears after the daily sweep for deleted records.

Also in the reference: Invoices, Sales receipts, Payments, Credit memos.