Skip to navigation

The AR Aging object

An extracted accounts receivable aging report, in summary or detail form.

The retrieve endpoint returns this object on its own. The list endpoint returns one per document, wrapped as { "borrower_id": …, "agings": [ { "extracted_document_id", "document_category", "report_data" } ] }, and takes ?form=summary or ?form=detail to keep one form.

report_subtype is summary or detail and decides the shape: a summary carries one row per customer in customers with the aging buckets as printed, a detail carries transactions with customer_subtotals. grand_totals carries the totals the document prints and computed_totals the same totals taken over the rows, so the two can be compared.

The documents behind this object carry document_category ar, accounts_receivable, ar_aging_platform, ar_aging, accounts_receivable_summary, accounts_receivable_detail, ar_aging_detail, ar_detail_platform or ar_detail. Money keys are JSON strings with exactly two decimals ("9200000.00", "-1250.50"). Date keys are as printed on the document unless a key’s Type column states a format.

report_subtype says which shape follows. Each shape’s fields are listed under its own heading.

Summary

A summary aging: one row per counterparty with the balance per aging column.

KeyTypePresent whenDescription
document_typealways ar_agingAlwaysWhich family of document this is.
report_subtypealways summaryAlwaysAlways summary.
company_namestring, nullableAlwaysThe reporting company as printed.
as_of_datestring (YYYY-MM-DD), nullableAlwaysThe aging date.
currencystringAlwaysCurrency code; USD.
customersarray of AgingCustomerRowAlwaysOne entry per counterparty.
grand_totalsobject (AgingGrandTotals)AlwaysThe printed grand totals.
computed_totalsobjectWhen the document states itThe counterparty rows added together, column by column, beside the printed totals.
bucket_columnsarray of objects, nullableWhen the document states itThe aging columns as the report prints them, in print order.
formula_censusobject, nullableWhen the document states itOn a spreadsheet aging whose printed total covers only some of its rows, how many rows it covers; null otherwise.
anomaliesarray of stringAlwaysIrregularities noted on the report, in words.
signalsarray of AgingSignalWhen the document states itNotes about the aging date, when any.
statusstring, one of RECONCILED, FLAGGEDWhen the document states itRECONCILED when the printed grand totals equal the rows added together; FLAGGED otherwise.
entity_sourcestringWhen the document states itWhat names the company when the report heading does not: the page image (page_image); absent when the heading names it.
entity_source_sheetstringOn a spreadsheet upload whose own sheet does not name the company, when the workbook names exactly one company; absent otherwise.The sheet of the uploaded workbook that names the company, when this aging’s own sheet does not and the workbook names exactly one company; absent otherwise.
period_sourcestringWhen the document states itWhich part of the document dates the report when its printed as-of line states no date: the page image (page_image), the file’s name (filename) or the file’s own creation date (file_metadata); absent when the as-of line dates the report.

computed_totals

The counterparty rows added together, column by column, beside the printed totals.

KeyTypePresent whenDescription
current_sumstring (money)When the document states itThe rows’ current total, stated beside the printed total for comparison.
bucket_1_30_sumstring (money)When the document states itThe rows’ 1 to 30 days total, stated beside the printed total for comparison.
bucket_31_60_sumstring (money)When the document states itThe rows’ 31 to 60 days total, stated beside the printed total for comparison.
bucket_61_90_sumstring (money)When the document states itThe rows’ 61 to 90 days total, stated beside the printed total for comparison.
bucket_91_plus_sumstring (money)When the document states itThe rows’ over 90 days total, stated beside the printed total for comparison.
retainage_sumstring (money)When the document states itThe rows’ retainage total, stated beside the printed total for comparison.
prepayments_sumstring (money)When the document states itThe rows’ prepayments total, stated beside the printed total for comparison.
total_sumstring (money)AlwaysThe rows’ total, stated beside the printed grand total for comparison.

bucket_columns[]

One aged column as the report prints it.

KeyTypePresent whenDescription
keystringAlwaysThe key the column’s figures carry on each row, for example bucket_91_plus.
labelstringAlwaysThe column heading as printed.

formula_census

Present when the report is a workbook whose printed total is a cell the workbook computes itself from only some of its rows, rather than a typed value: how many rows that total covers, how many it leaves out, and what those left out add up to, so the rows and the printed total can be read together.

KeyTypePresent whenDescription
footsbooleanAlwaysWhether the rows the printed total covers add up to it.
rows_in_totalintegerAlwaysNumber of rows the printed total covers.
rows_outside_totalintegerAlwaysNumber of rows the printed total leaves out.
outside_sumstring (money)AlwaysThe total column of the rows the printed total leaves out, added together.

Detail

A detail aging: one row per open transaction.

KeyTypePresent whenDescription
document_typealways ar_agingAlwaysWhich family of document this is.
report_subtypealways detailAlwaysAlways detail.
company_namestring, nullableAlwaysThe reporting company as printed.
as_of_datestring (YYYY-MM-DD), nullableAlwaysThe aging date.
currencystringAlwaysCurrency code; USD.
customersarray of AgingCustomerRowWhen the document states itEmpty on a detail aging.
transactionsarray of objectsAlwaysOne entry per open transaction.
customer_subtotalsarray of objectsAlwaysOne entry per counterparty.
grand_totalsobject (AgingGrandTotals)AlwaysThe printed grand totals.
computed_totalsobjectAlwaysThe transaction rows added together.
anomaliesarray of stringAlwaysIrregularities noted on the report, in words.
signalsarray of AgingSignalWhen the document states itNotes about the aging date, when any.
statusstring, one of RECONCILED, FLAGGEDAlwaysRECONCILED when the printed grand total equals the rows added together; FLAGGED otherwise.
entity_sourcestringWhen the document states itWhat names the company when the report heading does not: the page image (page_image); absent when the heading names it.
entity_source_sheetstringOn a spreadsheet upload whose own sheet does not name the company, when the workbook names exactly one company; absent otherwise.The sheet of the uploaded workbook that names the company, when this aging’s own sheet does not and the workbook names exactly one company; absent otherwise.
period_sourcestringWhen the document states itWhich part of the document dates the report when its printed as-of line states no date: the page image (page_image), the file’s name (filename) or the file’s own creation date (file_metadata); absent when the as-of line dates the report.

transactions[]

One open transaction on a detail aging.

KeyTypePresent whenDescription
customer_namestring, nullableAlwaysThe customer, or the vendor on a payables aging.
transaction_typestring, nullableAlwaysThe transaction’s kind as printed: invoice, credit, payment.
transaction_numberstring, nullableAlwaysThe transaction’s number as printed.
transaction_datestring (as printed), nullableAlwaysThe transaction date as printed.
due_datestring (as printed), nullableAlwaysThe due date as printed.
po_numberstring, nullableAlwaysPurchase order number, when printed.
age_daysinteger, nullableAlwaysDays past the transaction or due date at the aging date, as printed.
bucketstring, one of current, bucket_1_30, bucket_31_60, bucket_61_90, bucket_91_plus, nullableOn a detail aging; null when the report prints no aging sections; absent on an older extraction.The aging column the row sits under, as the column’s key: current, bucket_1_30, bucket_31_60, bucket_61_90 or bucket_91_plus; null when the report prints no aging sections.
amountstring (money), nullableAlwaysThe transaction’s original amount.
balance_duestring (money), nullableAlwaysThe open balance.

customer_subtotals[]

One counterparty’s subtotal on a detail aging.

KeyTypePresent whenDescription
customer_namestringAlwaysThe customer, or the vendor on a payables aging.
subtotalstring (money)AlwaysTotal balance due across the counterparty’s transactions.
is_intercompanybooleanWhen the document states itTrue when the counterparty’s name shares a distinctive word with the reporting company’s name.

computed_totals

The transaction rows added together.

KeyTypePresent whenDescription
balance_due_sumstring (money)AlwaysThe rows’ balance due total, stated beside the printed total for comparison.
n_transactionsintegerAlwaysNumber of open items in the report.

Shared objects

Object types that several keys above carry. The Type column names them.

AgingCustomerRow

One counterparty row of a summary aging: a customer on a receivables aging, a vendor on a payables aging. A column the report prints beyond the standard tiers appears under its own bucket_ key.

KeyTypePresent whenDescription
customer_namestring, nullableAlwaysThe customer, or the vendor on a payables aging.
customer_nostring, nullableWhen the document states itThe counterparty’s account number, when printed.
termsstring, nullableWhen the document states itPayment terms, when printed.
status_flagstring, nullableWhen the document states itA status mark printed on the row, when any.
statusstring, nullableWhen the document states itThe status word printed on the row, when the report has a status column.
currentstring (money), nullableWhen the document states itNot yet due.
bucket_1_30string (money), nullableWhen the document states it1 to 30 days past due.
bucket_31_60string (money), nullableWhen the document states it31 to 60 days past due.
bucket_61_90string (money), nullableWhen the document states it61 to 90 days past due.
bucket_91_plusstring (money), nullableWhen the document states it91 or more days past due.
retainagestring (money), nullableWhen the document states itRetainage held, when the report has the column.
prepaymentsstring (money), nullableWhen the document states itPrepayments on the row, when the report has the column. A credit, counted toward the total like retainage.
totalstring (money), nullableWhen the document states itThe row’s total.
is_intercompanybooleanWhen the document states itTrue when the counterparty’s name shares a distinctive word with the reporting company’s name.

AgingGrandTotals

The report’s own printed totals row. Each aged column the report prints beyond the standard five carries its own key.

KeyTypePresent whenDescription
currentstring (money), nullableWhen the document states itPrinted total of the current column.
bucket_1_30string (money), nullableWhen the document states itPrinted total of the 1 to 30 days column.
bucket_31_60string (money), nullableWhen the document states itPrinted total of the 31 to 60 days column.
bucket_61_90string (money), nullableWhen the document states itPrinted total of the 61 to 90 days column.
bucket_91_plusstring (money), nullableWhen the document states itPrinted total of the over 90 days column.
retainagestring (money), nullableWhen the document states itPrinted total of the retainage column.
prepaymentsstring (money), nullableWhen the document states itPrinted total of the prepayments column.
grand_totalstring (money), nullableWhen the document states itThe printed grand total.

AgingSignal

A note about the report’s as-of date.

KeyTypePresent whenDescription
severitystring, one of info, warnAlwaysHow much weight the note carries: info or warn.
codestring, one of coverage_unreadable, no_reporting_period, year_from_file_metadata, year_from_filename, year_from_page_image, year_matches_print_stampAlwaysThe note’s identifier.
detailstringAlwaysThe note in words.