QuickBooks Desktop A/P aging summary report API

What you owe each vendor, split into current, 1-30, 31-60, 61-90 and over 90 days past due. It is QuickBooks' own report (qbXML AgingReportQuery (APAgingSummary)), so the numbers match what you see in QuickBooks for the same date.

Endpoint

GET/v1/files/{file_id}/reports/ap-aging

With no parameters you get the scheduled copy (as of today), refreshed when it is older than 6 hours. Another period is read at the next Web Connector check-in and answered as a queued job (how queued reads work).

Parameters

ParameterInTypeDescription
file_id (required)pathstringThe company file id (file_...), from GET /v1/files.
as_ofquerydateAging as of this date (YYYY-MM-DD). Default today.
shapequerystring: table, rows, longtable (default for JSON), rows (default for CSV) or long.
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.

Response format

shape=table (the JSON default) returns the report as QuickBooks lays it out: the title, basis and period, the column titles, and rows with a kind (data, subtotal, total or text), a label, the cells and a depth for indenting. shape=rows (the CSV default) gives one row per line with a key per column; shape=long gives one row per line and column, ready for a pivot table.

Fields of a row (shape=rows)
FieldTypeDescription
topstringThe top heading, or the line itself when nothing is above it (the customer on aging and job reports).
sectionstring
categorystringIncome, Cost of Goods Sold, Expense, Other Income, Other Expense, or the balance sheet section.
groupstringThe heading right above the line.
pathstringEvery heading above the line and the line, joined with ' > '.
linestring
depthinteger
kindstring: data, subtotal, total
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.

Example

curl -H "Authorization: Bearer dbk_your_key" "https://desktop-app.greatwork.company/v1/files/file_8f2c41/reports/ap-aging?as_of=2026-11-27"
{
  "object": "report",
  "report": "ap-aging",
  "file_id": "file_8f2c41",
  "shape": "table",
  "table": {
    "title": "A/P Aging Summary",
    "columns": [
      "",
      "Current",
      "1 - 30",
      "31 - 60",
      "61 - 90",
      "> 90",
      "TOTAL"
    ],
    "rows": [
      {
        "kind": "data",
        "label": "Ridgeline Lumber",
        "cells": [
          null,
          1875,
          0,
          0,
          0,
          0,
          1875
        ],
        "depth": 0
      },
      {
        "kind": "total",
        "label": "TOTAL",
        "cells": [
          null,
          4120,
          960,
          0,
          0,
          0,
          5080
        ],
        "depth": 0
      }
    ]
  },
  "synced_at": "2026-11-27T07:04:12-06:00",
  "as_of": "2026-11-27T07:03:58-06:00"
}

About this report

What you owe, by vendor and by age

The A/P aging summary is QuickBooks' own report of open payables per vendor, split into Current (not yet due), 1 - 30, 31 - 60, 61 - 90 and over 90 days past due. With shape=rows or CSV the columns come back as current, days_1_30, days_31_60, days_61_90, over_90 and total. as_of sets the date it is counted to; leave it out for today, which is the copy kept here and refreshed when it is older than 6 hours. Another date is asked for at the next Web Connector check-in (how queued reads work).

Matching it to your bills

The report follows the company file's aging preference: from the due date, or from the bill date (Intuit's article). Bills always count daysOverdue from the due date, so a bill can sit in an older bucket here than its days overdue suggest. The report also nets vendor credits against what you owe; the bills list doesn't include vendor credits. When the totals must match QuickBooks, this report is the number; the bills list is where you find which bills make it up (?vendor=<id>&status=open).

A cash planning sheet

GET /v1/files/file_8f2c41/reports/ap-aging?shape=rows&format=csv

Keep kind = data for one row per vendor. current is what comes due soon, days_1_30 and older is what is already late. Next to it, put the open bills due in the next two weeks (from bills, filtered on due_date in the sheet) and the bank balances from accounts, and you have a plain cash plan for the next payables run. Bill payments already made but not yet cleared don't change this report; it counts what QuickBooks shows as unpaid.

The A/R aging summary is the same report for what customers owe you.

Other reports: Profit and loss, Balance sheet, A/R aging summary, Job profitability summary.