QuickBooks Desktop A/R aging summary report API

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

Endpoint

GET/v1/files/{file_id}/reports/ar-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/ar-aging?as_of=2026-11-27"
{
  "object": "report",
  "report": "ar-aging",
  "file_id": "file_8f2c41",
  "shape": "table",
  "table": {
    "title": "A/R Aging Summary",
    "columns": [
      "",
      "Current",
      "1 - 30",
      "31 - 60",
      "61 - 90",
      "> 90",
      "TOTAL"
    ],
    "rows": [
      {
        "kind": "data",
        "label": "Acme Construction",
        "cells": [
          null,
          1200,
          3050,
          0,
          0,
          0,
          4250
        ],
        "depth": 0
      },
      {
        "kind": "total",
        "label": "TOTAL",
        "cells": [
          null,
          5410,
          3050,
          880,
          0,
          312,
          9652
        ],
        "depth": 0
      }
    ]
  },
  "synced_at": "2026-11-27T07:04:12-06:00",
  "as_of": "2026-11-27T07:03:58-06:00"
}

About this report

What the buckets mean

QuickBooks' A/R aging summary puts each customer's open balance into five columns. Current is what isn't due yet; 1 - 30 is what is past due by 1 to 30 days, and so on up to over 90 (Intuit explains Current and 1 - 30). With shape=rows or CSV the columns get stable keys: current, days_1_30, days_31_60, days_61_90, over_90 and total, so a sheet's formulas don't break when QuickBooks words a header differently.

as_of is the date the aging is counted to; leave it out for today. The copy for today is refreshed whenever it is older than 6 hours. An aging as of another date, such as last month end, is asked for at the next Web Connector check-in and read after it arrives (how queued reads work).

Counted from the due date, or not

QuickBooks has a company preference for where aging starts: the due date or the transaction date (Intuit's article). This report follows the file's setting, because it is QuickBooks' own report. The daysOverdue field on invoices always counts from the due date. So when the bookkeeper asks why an invoice is "31 - 60" on the report but 12 days overdue in the list, check that preference first.

Why it rarely equals the sum of open invoices

The report nets everything a customer has open: unpaid invoices, but also open credit memos, unused payments and journal entry lines against Accounts Receivable. Adding up open invoices alone usually comes out higher. When a number has to match QuickBooks, use this report; when you need the invoices behind a customer's row, list them with ?customer=<id>&status=open.

A collections sheet

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

Keep kind = data (one row per customer or job; top names the customer when a job sits under one), sort by over_90 and then days_61_90, and you have the calling order. The total row at the bottom is QuickBooks' own total. The A/P aging summary is the same report for what you owe.

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