QuickBooks Desktop invoices API
Invoices with their line items, what was paid and what is still open. The usual starting point for receivables reports. Invoices come from QuickBooks transactions (qbXML InvoiceQuery).
List invoices
GET/v1/files/{file_id}/invoices
List invoices. Follow next_cursor for the rest (how pages work).
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). |
date_from | query | date | Transaction date on or after (YYYY-MM-DD). |
date_to | query | date | Transaction date on or before (YYYY-MM-DD). |
status | query | string: open, unpaid, paid, closed, overdue, all | Filter by status. overdue is open and past the due date in the company file's time zone. |
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: date, modified, id | date (newest first, default), modified (oldest change first, default with modified_since) or id. |
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). |
rows | query | string: records, lines | lines gives one row per line item (with format=csv or flat=1). |
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 invoice
GET/v1/files/{file_id}/invoices/{qb_id}
One invoice 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
| 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. |
number | string | The number people see (invoice number, check number). |
date | date | The transaction date (YYYY-MM-DD). |
memo | string | The memo field. |
currency | string | Currency code, when the company file uses multiple currencies. |
exchangeRate | number | Exchange rate to the home currency, when the company file uses multiple currencies. |
customer | Ref | The customer or job, as { id, name }. |
dueDate | date | When payment is due (YYYY-MM-DD). |
subtotal | number | Total before sales tax. |
tax | number | Sales tax. |
total | number | Total amount, in the transaction's currency. |
applied | number | Payments and credits applied so far, as a positive number. |
balance | number | What is still owed. |
isPaid | boolean | True when nothing is left to pay. |
terms | Ref | Payment terms, such as Net 30. |
class | Ref | The class on the invoice. |
status | string: paid, open, overdue | paid, open, or overdue (open and past the due date). Computed by Desktop Books when the record is read. |
daysOverdue | integer | Days 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. |
lines | InvoicesLine[] | Line items: item, description, quantity, rate, amount, class. |
| Field | Type | Description |
|---|---|---|
item | Ref | The item, as { id, name }. |
description | string | The line's description. |
quantity | number | Quantity. |
rate | number | Price per unit. |
amount | number | The line amount. |
class | Ref | The class on the line, when classes are turned on. |
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/invoices?status=open&limit=100"
{
"object": "list",
"resource": "invoices",
"file_id": "file_8f2c41",
"data": [
{
"id": "1A2B-1700000400",
"number": "1001",
"date": "2026-11-01",
"dueDate": "2026-12-01",
"customer": {
"id": "80000001-1700000000",
"name": "Acme Construction"
},
"subtotal": 1200,
"tax": 0,
"total": 1200,
"applied": 0,
"balance": 1200,
"isPaid": false,
"lines": [
{
"item": {
"id": "80000020-1700000200",
"name": "Labor:Framing labor"
},
"quantity": 16,
"rate": 75,
"amount": 1200
}
]
}
],
"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 invoices
Open, overdue and paid
status is worked out when you read the invoice, from QuickBooks' own balance and due date: paid when nothing is left to pay, overdue when money is still owed and the due date has passed in the company file's time zone, and open otherwise. daysOverdue counts the days since the due date. Filter with status=open (everything unpaid, late or not), status=overdue or status=paid.
A collections list as a spreadsheet (sort it on the days_overdue column, most days late first):
GET /v1/files/file_8f2c41/invoices?status=overdue&fields=number,date,dueDate,customer,total,balance,daysOverdue&format=csv
Why an invoice's days late can differ from the aging report
QuickBooks has a company preference for where aging starts: from the due date or from the transaction date (Edit > Preferences > Reports & Graphs > Company Preferences; Intuit explains both). daysOverdue always counts from the due date. If the file ages from the transaction date, the A/R aging summary will put some invoices in a later bucket than daysOverdue suggests. An invoice that comes back without a due date never counts as overdue here. Use the aging report when the numbers have to match what the bookkeeper sees in QuickBooks, and the invoice list when you need the invoices behind them.
balance, applied and total
total is the subtotal plus sales tax. applied is everything set against the invoice so far: customer payments and credit memos. balance is what is still owed. A partly paid invoice has all three filled in and stays open until balance reaches zero.
Voided and deleted invoices
QuickBooks keeps a voided invoice with its amounts set to zero (Intuit on voiding versus deleting), so a voided invoice stays in the list with a zero total. Leave it in when you count invoices by number, and it adds nothing to the sums. A deleted invoice disappears after the daily sweep for deleted records.
Sales by item
rows=lines with format=csv gives one row per line item, with the invoice's txn_number, txn_date and customer_name repeated on each row. Pivot on item_name for sales by item, or on class_name for sales by location (classes). Add sales receipts for the sales paid on the spot, which never become invoices. The customer filter includes a customer's jobs, so ?customer=Acme%20Construction returns every job's invoices too.
Also in the reference: Sales receipts, Payments, Credit memos, Estimates.