QuickBooks Desktop purchase orders API

Purchase orders sent to vendors, with expected dates and whether everything has arrived. Purchase orders come from QuickBooks transactions (qbXML PurchaseOrderQuery). Empty when inventory and purchase orders are turned off in the company file.

List purchase orders

GET/v1/files/{file_id}/purchase-orders

List purchase orders. 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, closed, received, allFilter by status.
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 purchase order

GET/v1/files/{file_id}/purchase-orders/{qb_id}

One purchase order 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

Purchase orders 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 }.
totalnumberTotal amount, in the transaction's currency.
isFullyReceivedbooleanTrue once everything is received.
expectedDatedateWhen the order is expected.
linesPurchaseOrdersLine[]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/purchase-orders?status=open&limit=100"
{
  "object": "list",
  "resource": "purchase-orders",
  "file_id": "file_8f2c41",
  "data": [
    {
      "id": "1B30-1700001200",
      "number": "PO-1042",
      "date": "2026-11-05",
      "vendor": {
        "id": "80000012-1700000100",
        "name": "Ridgeline Lumber"
      },
      "total": 5400,
      "isFullyReceived": false,
      "expectedDate": "2026-12-02"
    }
  ],
  "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 purchase orders

Orders you placed with vendors

A purchase order records what you ordered before it arrives or is billed. Like sales orders and estimates it doesn't post to the books, so it isn't on the profit and loss or the A/P aging. Purchase orders are switched on together with inventory in QuickBooks (Edit > Preferences > Items & Inventory > Company Preferences, per Intuit's article); with that off, this list is empty.

Open orders and late deliveries

isFullyReceived turns true when everything on the order has been received. status=open lists the orders still waiting and leaves out the ones someone closed by hand in QuickBooks. expectedDate is when you expect delivery, so a late-deliveries list is open orders with expected_date before today:

GET /v1/files/file_8f2c41/purchase-orders?status=open&fields=number,date,vendor,total,expectedDate&format=csv

Sort on expected_date and filter in the sheet; the API's date filters apply to the order date. Pivot on vendor_name for the money committed with each vendor.

Purchase orders and stock

QuickBooks counts the open quantities on purchase orders as on order. The inventory resource shows that number per item as quantityOnOrder, so you rarely need to add up order lines yourself to see what is coming. When you do want the detail (which order, which vendor, which expected date), read rows=lines&format=csv and pivot on item_name.

From order to bill

When the goods arrive and the vendor's bill is entered against the order, the cost shows up in bills and the order moves toward isFullyReceived. For a vendor scorecard (ordered, billed, late), line up purchase orders and bills by vendor over the same months. The vendor filter takes an id or a name on both.

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