QuickBooks Desktop inventory API

Quantity on hand, on order and on sales orders for each inventory item, with average cost and value. Inventory come from the item list (qbXML ItemQuery). Empty when inventory is turned off in the company file.

List inventory

GET/v1/files/{file_id}/inventory

List inventory. 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).
statusquerystring: active, inactive, allFilter by status.
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: modified, idid (default) or modified (default with modified_since).
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).

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 inventory level

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

One inventory level 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

Inventory fields
FieldTypeDescription
idstringThe item's QuickBooks id (ListID).
itemRefThe inventory item.
quantityOnHandnumberQuantity on hand.
quantityOnOrdernumberQuantity on open purchase orders.
quantityOnSalesOrdernumberQuantity on open sales orders.
averageCostnumberAverage cost per unit.
valuenumberQuantity on hand times average cost.
modifiedAtdate-timeWhen the record last changed. Use modified_since to read only what changed.

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/inventory?limit=100"
{
  "object": "list",
  "resource": "inventory",
  "file_id": "file_8f2c41",
  "data": [
    {
      "id": "80000050-1700000500",
      "item": {
        "id": "80000050-1700000500",
        "name": "Hardware:Joist hanger 2x8"
      },
      "quantityOnHand": 340,
      "quantityOnOrder": 500,
      "averageCost": 1.12,
      "value": 380.8
    }
  ],
  "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 inventory

Why stock levels have their own resource

Every invoice, bill, item receipt and inventory adjustment changes an item's quantity on hand, but QuickBooks doesn't mark the item itself as changed when that happens. Intuit's reference says so plainly: the item query can't tell you which items had their quantity moved by other transactions, and the inventory query is the one to use (ItemInventoryQuery). So instead of trusting a change date, we re-read every inventory part, and every assembly on Premier and Enterprise, in full every 6 hours. Quantities here are as of that read; synced_at says when it was.

That makes this resource right for a daily stock sheet and a reorder list, and wrong for "can I sell the last one this minute". For that, look in QuickBooks.

The four numbers

FieldWhat QuickBooks counts
quantityOnHandWhat is on the shelf after every posted sale, purchase and adjustment
quantityOnOrderOpen quantities on purchase orders
quantityOnSalesOrderOpen quantities on sales orders (Premier and Enterprise)
averageCostQuickBooks' average cost per unit

value is ours: quantity on hand times average cost, rounded to the cent. Intuit points to its reports for inventory asset value, so when the number has to match the books, compare with QuickBooks' Inventory Valuation Summary. Negative quantities (sold before the purchase was entered) give a negative value here, which is usually the first thing to look for when the two disagree.

A reorder list

GET /v1/files/file_8f2c41/inventory?status=active&format=csv

Add a column for what you can still promise, quantity_on_hand - quantity_on_sales_order, and another for what will be there once orders arrive, adding quantity_on_order. Rows where the second number is under your reorder point are the list. QuickBooks keeps reorder points on the item, but they aren't in this resource, so keep them in a column of your own. Names, prices and accounts for the same items come from items (join on id, which is the item's id).

Inactive items stay in this list so old stock still shows: status=active leaves them out and status=inactive lists only them.