Reports
The company's financial reports, computed when you ask, by the same run the report pages in the app use: the figures you read are the figures on the screen. Requires reports:read (or the broad reports scope). Payroll reports are not on the API.
A period report (Profit & Loss, Cash Flow, General Ledger) takes date_from and date_to together, or neither for its default window: the fiscal year to date for the Profit & Loss, the month to date for the Cash Flow and the General Ledger. A point-in-time report (Balance Sheet, Trial Balance, the agings) takes as_of, the end of that day, and defaults to today in the company's time zone. A parameter the report can't honour exactly, such as an unknown entity or a basis other than accrual or cash, is refused with invalid_filter rather than answered with different figures.
Reading a report
Every report has the same shape. columns lists the amount columns: one Total column on a statement, debit and credit on the trial balance, one per age bucket and a Total on an aging, debit, credit and balance on the General Ledger. rows is a flat list in reading order; each row's amounts_cents holds one integer per column, in cents as everywhere on the API, and depth is its indent.
header | Opens a section, a group or a parent account (on the General Ledger, each account). It has no amounts. |
account | One account, with account_id and account_number. |
party | One customer or vendor on an aging, with party_id. |
line | A figure that is not one account: a cash flow line, Net Income inside equity. |
subtotal | Closes the header above it, at the same depth. |
total | A report-level figure: Gross Profit, Net Income, Total Liabilities & Equity, Ending cash. |
Header, line, subtotal and total rows carry a stable key (net_income, total_assets, accounts_receivable), so you can find a figure without matching its label. Account and party rows are identified by their id instead. Amounts are in the company's home currency, named in currency; notes says in plain sentences what the figures leave out, such as a foreign document with no exchange rate. A cash-basis figure can fall between cents; it is rounded to the cent, and the report then says so in notes, since a row may differ from its total by a cent.
Summary and detail
Every report except the Cash Flow Statement takes view=detail. On the Profit & Loss, Balance Sheet and Trial Balance, each account row is followed, one level deeper, by what makes it up: a balance row for its opening balance when it has one, a transaction row per posting, and an unposted_adjustment line for any part no posting explains, such as a currency revaluation. The rows under an account add up to its figure. On an aging, each customer or vendor is followed by its open invoices or bills, each in its age bucket.
A transaction row carries a transaction object (null on every other row): its date, the record it came from (source_type, source_id) and its journal entry, number and memo, the customer or vendor by id and name, the account on the other side (split_account_id, when the entry has one other line; read the journal entry when it has several), and the account's running balance after it (balance_cents).
Pass account_id to list one account's postings; the other rows keep their figures. A detail is capped at 10,000 transaction rows, and a larger one is refused with too_many_rows rather than cut short: narrow the window or name an account. Balance sheet and trial balance detail list the postings since the start of the fiscal year, after the opening balance, and are available on the accrual basis only.
General Ledger
The General Ledger is posting detail by nature, so it has no summary view. Each account with postings in the window is a header, then its opening balance (a balance row, figure in the balance column only), one transaction row per posting, and a subtotal with the window's debits, its credits and the ending balance. Debits and credits under an account add up to its subtotal; the balance runs from the opening balance to the ending balance, in the account's own sign. The last row, total, has every account's debits and credits and, as its balance, debits less credits: zero over whole entries.
It takes account_id (that account and its sub-accounts), entity_id, dimension_value_ids, and include_closing=true to show fiscal-year closing entries, which it leaves out by default so it ties to the trial balance. It has no basis and is capped at 10,000 transaction rows like any detail.
Columns by period
The Profit & Loss and the Cash Flow Statement take columns=month, quarter or year: one column per period and a Total, up to 24 columns. Quarters and years follow the company's fiscal year. Each column names the days it covers (date_from, date_to), and its key is the period's first day. The Balance Sheet takes the same columns with date_from and date_to in place of as_of: one column per period end, keyed by that day, and no Total, since balances at different dates don't add. A row that only some periods have (an account used in March alone) reads 0 in the others. Columns don't combine with detail.
Tracking categories
The Profit & Loss and the General Ledger take dimension_value_ids: values from GET /dimensions, at most one per dimension, which limit the report to lines tagged with all of them. The report echoes them back. The other reports refuse it, as the app does: the balance sheet, trial balance and cash flow balance per whole entry, and the lines of one tracking category don't.
Signs and keys
Amounts read the way the report reads on screen. On the Profit & Loss, income and expenses are both positive and Net Income is income less costs. On the Balance Sheet, assets, liabilities and equity are each positive at their normal balance, so a contra account such as accumulated depreciation, or an overdrawn bank account, is negative. The Trial Balance and the General Ledger put debits and credits in their own columns, both positive; the General Ledger's balance is in the account's own sign. On the Cash Flow Statement, cash in is positive and cash out negative. On an aging, what is owed is positive and a credit or an unapplied payment negative. At detail, a transaction's amount and its running balance are in its account's sign, so the rows under an account add up to it.
Each endpoint below lists the keys it always sends and the ones it sends when the company has that activity (cost of goods sold, other income), so you can find a figure such as net_income without matching a label. A Balance Sheet's group headers and subtotals (current_assets, bank_accounts) also carry keys, but those follow the app's grouping and aren't promised.
The Report Object
| Field | Type | Description |
|---|---|---|
| object | report | Always 'report' |
| type | profit_and_loss | balance_sheet | trial_balance | cash_flow | ar_aging | ap_aging | general_ledger | Which report this is |
| title | string | The report's title, as the app shows it |
| view | summary | detail | summary, or detail: each account (or party) row followed by what makes it up |
| basis | accrual | cash | null | accrual or cash; null for a report that has no basis (the agings) |
| date_from | date | null | First day covered (period reports) |
| date_to | date | null | Last day covered (period reports) |
| as_of | date | null | The day the report stands at, end of day (point-in-time reports) |
| currency | string | ISO currency every amount is in: the company's home currency |
| entity_id | uuid | null | The entity the report is limited to; null for the whole company |
| dimension_value_ids | string[] | The tracking-category values the report is limited to; empty for none |
| generated_at | date-time | When the report was computed |
| columns | object[] | The amount columns, in order |
| rows | object[] | Every row, in reading order |
| notes | string[] | What the figures leave out or could not do, in plain sentences; empty when nothing |
Endpoints
/api/v1/reports/profit_and_lossProfit & Loss
Income, cost of goods sold and expenses over a period. Without dates it covers the fiscal year to date. Parent accounts appear as a header, their sub-accounts and a subtotal. Signs: Income and expenses both read positive, as on the screen; an amount that reduces its section (a refund booked to income) reads negative. Gross Profit and Net Income are income less costs. Rows always present, by key: income, total_income, gross_profit, expenses, total_expenses, net_ordinary_income, net_income. When the company has that activity: cost_of_goods_sold, total_cost_of_goods_sold, other_income, total_other_income, other_expense, total_other_expense, unrealized_foreign_exchange_gain_loss, net_other_income.
Scopes: reports:read or reports·operationId: profitReportAndLoss
Path & Query Parameters
| Parameter | Type | Description |
|---|---|---|
| date_from | date | First day (YYYY-MM-DD). Send with date_to, or omit both for the default window |
| date_to | date | Last day (YYYY-MM-DD). Send with date_from |
| columns | total | month | quarter | year | total (default), or month, quarter or year: one column per period (quarters and years by the fiscal year) and a Total |
| basis | accrual | cash | accrual (default) or cash |
| entity_id | uuid | Limit to one entity (GET /entities); omit for the whole company |
| dimension_value_ids | string[] | Limit to lines tagged with these tracking-category values (GET /dimensions), at most one per dimension |
| view | summary | detail | summary (default), or detail: each account followed by its opening balance and postings |
| account_id | uuid | With view=detail: list only this account's postings (GET /accounts) |
curl https://imprest.ai/api/v1/reports/profit_and_loss \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"{
"report": {
"object": "report",
"type": "profit_and_loss",
"title": "Profit & Loss",
"view": "summary",
"basis": "accrual",
"date_from": "2019-01-01",
"date_to": "2019-02-28",
"as_of": null,
"currency": "USD",
"entity_id": null,
"dimension_value_ids": [],
"generated_at": "2026-11-23T22:27:49Z",
"columns": [
{
"key": "2019-01-01",
"label": "Jan 2019",
"date_from": "2019-01-01",
"date_to": "2019-01-31",
"as_of": null
},
{
"key": "2019-02-01",
"label": "Feb 2019",
"date_from": "2019-02-01",
"date_to": "2019-02-28",
"as_of": null
}
],
"rows": [
{
"type": "header",
"key": "income",
"label": "Income",
"depth": 0,
"section": "income",
"account_id": null,
"account_number": null,
"party_id": null,
"amounts_cents": [],
"transaction": null
},
{
"type": "account",
"key": null,
"label": "Sales Revenue",
"depth": 1,
"section": "income",
"account_id": "6c738cd1-e888-5afe-b0c0-628ac6316713",
"account_number": null,
"party_id": null,
"amounts_cents": [
125000,
0
],
"transaction": null
}
],
"notes": []
}
}Response fields
| Parameter | Type | Description |
|---|---|---|
| reportrequired | object | The report |
| objectrequired | report | Always 'report' |
| typerequired | profit_and_loss | balance_sheet | trial_balance | cash_flow | ar_aging | ap_aging | general_ledger | Which report this is |
| titlerequired | string | The report's title, as the app shows it |
| viewrequired | summary | detail | summary, or detail: each account (or party) row followed by what makes it up |
| basisrequired | accrual | cash | null | accrual or cash; null for a report that has no basis (the agings) |
| date_fromrequired | date | null | First day covered (period reports) |
| date_torequired | date | null | Last day covered (period reports) |
| as_ofrequired | date | null | The day the report stands at, end of day (point-in-time reports) |
| currencyrequired | string | ISO currency every amount is in: the company's home currency |
| entity_idrequired | uuid | null | The entity the report is limited to; null for the whole company |
| dimension_value_idsrequired | string[] | The tracking-category values the report is limited to; empty for none |
| generated_atrequired | date-time | When the report was computed |
| columnsrequired | object[] | The amount columns, in order |
| keyrequired | string | Stable column name: total, debit, credit, balance (general ledger), an age bucket (current, days_1_30, …), or with columns=month|quarter|year the period's first day (the balance sheet: its last day) |
| labelrequired | string | The column's heading (Jan 2026, Q1 FY2026, Total) |
| date_fromrequired | date | null | First day the column covers |
| date_torequired | date | null | Last day the column covers |
| as_ofrequired | date | null | The day a balance column stands at (balance sheet, agings) |
| rowsrequired | object[] | Every row, in reading order |
| typerequired | header | account | party | line | subtotal | total | balance | transaction | header opens a section, group or parent account (on the general ledger, each account); account is one account; party is one customer or vendor; line is a figure that is not one account; subtotal closes the header above it; total is a report-level figure. At detail: balance is an account's opening balance; transaction is one posting under its account, or one open invoice or bill under its party on an aging |
| keyrequired | string | null | Stable snake_case name of a header, line, subtotal or total row (net_income, total_assets, accounts_receivable); null on account and party rows |
| labelrequired | string | The row's label, as the app shows it |
| depthrequired | integer | Indent level, from 0 |
| sectionrequired | string | null | The top-level section the row sits in (income, expenses, assets, operating, …; the account type on a trial balance and general ledger); null on a total row |
| account_idrequired | uuid | null | The account (account rows, and a parent account's header and subtotal) |
| account_numberrequired | string | null | The account's number, if the company numbers accounts |
| party_idrequired | uuid | null | The customer or vendor (party rows) |
| amounts_centsrequired | integer[] | Amounts in the currency's cents, one per column in order; empty on a header row |
| transactionrequired | object | null | What a transaction row is about; null on every other row |
| daterequired | date | The transaction's date |
| due_daterequired | date | null | When the document is due (agings) |
| source_typerequired | string | null | The kind of record behind it: Invoice, Bill, Expense, SalesReceipt, JournalEntry, … |
| source_idrequired | uuid | null | That record's id |
| journal_entry_idrequired | uuid | null | The journal entry it posted in (GET /journal_entries/{id}) |
| numberrequired | string | null | The document or entry number |
| memorequired | string | null | The posting's or document's memo |
| party_idrequired | uuid | null | The customer or vendor it was with |
| party_namerequired | string | null | That customer's or vendor's name |
| split_account_idrequired | uuid | null | The account on the other side, when the entry has exactly one other line; null when it has several (read the journal entry) |
| split_account_namerequired | string | null | That account's name |
| balance_centsrequired | integer | null | The account's running balance after this line, in its own sign (statements); null on an aging |
| notesrequired | string[] | What the figures leave out or could not do, in plain sentences; empty when nothing |
Errors
401No valid access token (invalid_token).403The token or the person behind it can't do this: insufficient_scope names the scope the token lacks; forbidden means the person's role doesn't allow it.422A parameter it can't honour exactly: a malformed date, one date without the other, an unknown value, a period parameter on a point-in-time report, more than 24 columns (invalid_filter); a detail over 10000 rows (too_many_rows); a combination the report can't produce, such as detail on the cash basis (unsupported)
Every error uses the same envelope: error, message and error_code.
/api/v1/reports/balance_sheetBalance Sheet
Assets, liabilities and equity at the end of a day, grouped the way the app groups them (Current Assets, then Bank Accounts …). Net Income for the year is a line inside equity. Signs: Assets, liabilities and equity each read positive at their normal balance; a contra account (accumulated depreciation) or an overdrawn bank account reads negative. Rows always present, by key: assets, total_assets, liabilities, total_liabilities, equity, total_equity, total_liabilities_and_equity. When the company has that activity: net_income, net_income_without_donor_restrictions, net_assets_with_donor_restrictions.
Scopes: reports:read or reports·operationId: balanceReportSheet
Path & Query Parameters
| Parameter | Type | Description |
|---|---|---|
| as_of | date | The day to report at, end of day (YYYY-MM-DD). Default: today in the company's time zone |
| columns | total | month | quarter | year | total (default), or month, quarter or year with date_from and date_to in place of as_of: one column per period end, and no Total |
| date_from | date | With columns: the range's first day |
| date_to | date | With columns: the range's last day |
| basis | accrual | cash | accrual (default) or cash |
| entity_id | uuid | Limit to one entity (GET /entities); omit for the whole company |
| view | summary | detail | summary (default), or detail: each account followed by its opening balance and postings |
| account_id | uuid | With view=detail: list only this account's postings (GET /accounts) |
curl https://imprest.ai/api/v1/reports/balance_sheet \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"{
"report": {
"object": "report",
"type": "balance_sheet",
"title": "Balance Sheet",
"view": "summary",
"basis": "accrual",
"date_from": "2019-01-01",
"date_to": "2019-02-28",
"as_of": null,
"currency": "USD",
"entity_id": null,
"dimension_value_ids": [],
"generated_at": "2026-11-23T22:27:49Z",
"columns": [
{
"key": "2019-01-31",
"label": "Jan 2019",
"date_from": null,
"date_to": null,
"as_of": "2019-01-31"
},
{
"key": "2019-02-28",
"label": "Feb 2019",
"date_from": null,
"date_to": null,
"as_of": "2019-02-28"
}
],
"rows": [
{
"type": "header",
"key": "assets",
"label": "Assets",
"depth": 0,
"section": "assets",
"account_id": null,
"account_number": null,
"party_id": null,
"amounts_cents": [],
"transaction": null
},
{
"type": "header",
"key": "current_assets",
"label": "Current Assets",
"depth": 1,
"section": "assets",
"account_id": null,
"account_number": null,
"party_id": null,
"amounts_cents": [],
"transaction": null
}
],
"notes": []
}
}Response fields
| Parameter | Type | Description |
|---|---|---|
| reportrequired | object | The report |
| objectrequired | report | Always 'report' |
| typerequired | profit_and_loss | balance_sheet | trial_balance | cash_flow | ar_aging | ap_aging | general_ledger | Which report this is |
| titlerequired | string | The report's title, as the app shows it |
| viewrequired | summary | detail | summary, or detail: each account (or party) row followed by what makes it up |
| basisrequired | accrual | cash | null | accrual or cash; null for a report that has no basis (the agings) |
| date_fromrequired | date | null | First day covered (period reports) |
| date_torequired | date | null | Last day covered (period reports) |
| as_ofrequired | date | null | The day the report stands at, end of day (point-in-time reports) |
| currencyrequired | string | ISO currency every amount is in: the company's home currency |
| entity_idrequired | uuid | null | The entity the report is limited to; null for the whole company |
| dimension_value_idsrequired | string[] | The tracking-category values the report is limited to; empty for none |
| generated_atrequired | date-time | When the report was computed |
| columnsrequired | object[] | The amount columns, in order |
| keyrequired | string | Stable column name: total, debit, credit, balance (general ledger), an age bucket (current, days_1_30, …), or with columns=month|quarter|year the period's first day (the balance sheet: its last day) |
| labelrequired | string | The column's heading (Jan 2026, Q1 FY2026, Total) |
| date_fromrequired | date | null | First day the column covers |
| date_torequired | date | null | Last day the column covers |
| as_ofrequired | date | null | The day a balance column stands at (balance sheet, agings) |
| rowsrequired | object[] | Every row, in reading order |
| typerequired | header | account | party | line | subtotal | total | balance | transaction | header opens a section, group or parent account (on the general ledger, each account); account is one account; party is one customer or vendor; line is a figure that is not one account; subtotal closes the header above it; total is a report-level figure. At detail: balance is an account's opening balance; transaction is one posting under its account, or one open invoice or bill under its party on an aging |
| keyrequired | string | null | Stable snake_case name of a header, line, subtotal or total row (net_income, total_assets, accounts_receivable); null on account and party rows |
| labelrequired | string | The row's label, as the app shows it |
| depthrequired | integer | Indent level, from 0 |
| sectionrequired | string | null | The top-level section the row sits in (income, expenses, assets, operating, …; the account type on a trial balance and general ledger); null on a total row |
| account_idrequired | uuid | null | The account (account rows, and a parent account's header and subtotal) |
| account_numberrequired | string | null | The account's number, if the company numbers accounts |
| party_idrequired | uuid | null | The customer or vendor (party rows) |
| amounts_centsrequired | integer[] | Amounts in the currency's cents, one per column in order; empty on a header row |
| transactionrequired | object | null | What a transaction row is about; null on every other row |
| daterequired | date | The transaction's date |
| due_daterequired | date | null | When the document is due (agings) |
| source_typerequired | string | null | The kind of record behind it: Invoice, Bill, Expense, SalesReceipt, JournalEntry, … |
| source_idrequired | uuid | null | That record's id |
| journal_entry_idrequired | uuid | null | The journal entry it posted in (GET /journal_entries/{id}) |
| numberrequired | string | null | The document or entry number |
| memorequired | string | null | The posting's or document's memo |
| party_idrequired | uuid | null | The customer or vendor it was with |
| party_namerequired | string | null | That customer's or vendor's name |
| split_account_idrequired | uuid | null | The account on the other side, when the entry has exactly one other line; null when it has several (read the journal entry) |
| split_account_namerequired | string | null | That account's name |
| balance_centsrequired | integer | null | The account's running balance after this line, in its own sign (statements); null on an aging |
| notesrequired | string[] | What the figures leave out or could not do, in plain sentences; empty when nothing |
Errors
401No valid access token (invalid_token).403The token or the person behind it can't do this: insufficient_scope names the scope the token lacks; forbidden means the person's role doesn't allow it.422A parameter it can't honour exactly: a malformed date, one date without the other, an unknown value, a period parameter on a point-in-time report, more than 24 columns (invalid_filter); a detail over 10000 rows (too_many_rows); a combination the report can't produce, such as detail on the cash basis (unsupported)
Every error uses the same envelope: error, message and error_code.
/api/v1/reports/trial_balanceTrial Balance
Every account's balance at the end of a day, as a debit or a credit. Each row's section is its account type. Signs: Debits in the debit column and credits in the credit column, both positive. Rows always present, by key: total.
Scopes: reports:read or reports·operationId: trialReportBalance
Path & Query Parameters
| Parameter | Type | Description |
|---|---|---|
| as_of | date | The day to report at, end of day (YYYY-MM-DD). Default: today in the company's time zone |
| basis | accrual | cash | accrual (default) or cash |
| entity_id | uuid | Limit to one entity (GET /entities); omit for the whole company |
| view | summary | detail | summary (default), or detail: each account followed by its opening balance and postings |
| account_id | uuid | With view=detail: list only this account's postings (GET /accounts) |
curl https://imprest.ai/api/v1/reports/trial_balance \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"{
"report": {
"object": "report",
"type": "trial_balance",
"title": "Trial Balance Detail",
"view": "detail",
"basis": "accrual",
"date_from": null,
"date_to": null,
"as_of": "2019-01-31",
"currency": "USD",
"entity_id": null,
"dimension_value_ids": [],
"generated_at": "2026-11-23T22:27:48Z",
"columns": [
{
"key": "debit",
"label": "Debit",
"date_from": null,
"date_to": null,
"as_of": null
},
{
"key": "credit",
"label": "Credit",
"date_from": null,
"date_to": null,
"as_of": null
}
],
"rows": [
{
"type": "account",
"key": null,
"label": "Checking",
"depth": 0,
"section": "asset",
"account_id": "def75944-088d-5417-88b3-d3d68486b302",
"account_number": null,
"party_id": null,
"amounts_cents": [
110000,
0
],
"transaction": null
},
{
"type": "balance",
"key": "opening_balance",
"label": "Opening balance",
"depth": 1,
"section": "asset",
"account_id": "def75944-088d-5417-88b3-d3d68486b302",
"account_number": null,
"party_id": null,
"amounts_cents": [
10000,
0
],
"transaction": null
}
],
"notes": []
}
}Response fields
| Parameter | Type | Description |
|---|---|---|
| reportrequired | object | The report |
| objectrequired | report | Always 'report' |
| typerequired | profit_and_loss | balance_sheet | trial_balance | cash_flow | ar_aging | ap_aging | general_ledger | Which report this is |
| titlerequired | string | The report's title, as the app shows it |
| viewrequired | summary | detail | summary, or detail: each account (or party) row followed by what makes it up |
| basisrequired | accrual | cash | null | accrual or cash; null for a report that has no basis (the agings) |
| date_fromrequired | date | null | First day covered (period reports) |
| date_torequired | date | null | Last day covered (period reports) |
| as_ofrequired | date | null | The day the report stands at, end of day (point-in-time reports) |
| currencyrequired | string | ISO currency every amount is in: the company's home currency |
| entity_idrequired | uuid | null | The entity the report is limited to; null for the whole company |
| dimension_value_idsrequired | string[] | The tracking-category values the report is limited to; empty for none |
| generated_atrequired | date-time | When the report was computed |
| columnsrequired | object[] | The amount columns, in order |
| keyrequired | string | Stable column name: total, debit, credit, balance (general ledger), an age bucket (current, days_1_30, …), or with columns=month|quarter|year the period's first day (the balance sheet: its last day) |
| labelrequired | string | The column's heading (Jan 2026, Q1 FY2026, Total) |
| date_fromrequired | date | null | First day the column covers |
| date_torequired | date | null | Last day the column covers |
| as_ofrequired | date | null | The day a balance column stands at (balance sheet, agings) |
| rowsrequired | object[] | Every row, in reading order |
| typerequired | header | account | party | line | subtotal | total | balance | transaction | header opens a section, group or parent account (on the general ledger, each account); account is one account; party is one customer or vendor; line is a figure that is not one account; subtotal closes the header above it; total is a report-level figure. At detail: balance is an account's opening balance; transaction is one posting under its account, or one open invoice or bill under its party on an aging |
| keyrequired | string | null | Stable snake_case name of a header, line, subtotal or total row (net_income, total_assets, accounts_receivable); null on account and party rows |
| labelrequired | string | The row's label, as the app shows it |
| depthrequired | integer | Indent level, from 0 |
| sectionrequired | string | null | The top-level section the row sits in (income, expenses, assets, operating, …; the account type on a trial balance and general ledger); null on a total row |
| account_idrequired | uuid | null | The account (account rows, and a parent account's header and subtotal) |
| account_numberrequired | string | null | The account's number, if the company numbers accounts |
| party_idrequired | uuid | null | The customer or vendor (party rows) |
| amounts_centsrequired | integer[] | Amounts in the currency's cents, one per column in order; empty on a header row |
| transactionrequired | object | null | What a transaction row is about; null on every other row |
| daterequired | date | The transaction's date |
| due_daterequired | date | null | When the document is due (agings) |
| source_typerequired | string | null | The kind of record behind it: Invoice, Bill, Expense, SalesReceipt, JournalEntry, … |
| source_idrequired | uuid | null | That record's id |
| journal_entry_idrequired | uuid | null | The journal entry it posted in (GET /journal_entries/{id}) |
| numberrequired | string | null | The document or entry number |
| memorequired | string | null | The posting's or document's memo |
| party_idrequired | uuid | null | The customer or vendor it was with |
| party_namerequired | string | null | That customer's or vendor's name |
| split_account_idrequired | uuid | null | The account on the other side, when the entry has exactly one other line; null when it has several (read the journal entry) |
| split_account_namerequired | string | null | That account's name |
| balance_centsrequired | integer | null | The account's running balance after this line, in its own sign (statements); null on an aging |
| notesrequired | string[] | What the figures leave out or could not do, in plain sentences; empty when nothing |
Errors
401No valid access token (invalid_token).403The token or the person behind it can't do this: insufficient_scope names the scope the token lacks; forbidden means the person's role doesn't allow it.422A parameter it can't honour exactly: a malformed date, one date without the other, an unknown value, a period parameter on a point-in-time report, more than 24 columns (invalid_filter); a detail over 10000 rows (too_many_rows); a combination the report can't produce, such as detail on the cash basis (unsupported)
Every error uses the same envelope: error, message and error_code.
/api/v1/reports/cash_flowCash Flow Statement
Cash from operating, investing and financing activities over a period (indirect method), then the cash bridge. Without dates it covers the month to date. It has no detail view. Signs: Cash in is positive and cash out negative. Rows always present, by key: operating, net_cash_from_operating_activities, investing, net_cash_from_investing_activities, financing, net_cash_from_financing_activities, net_change_in_cash, beginning_cash, ending_cash, net_income. When the company has that activity: unrealized_fx, other_adjustments, accounts_receivable, retainage_receivable, inventory, prepaid_expenses, undeposited_funds, other_current_assets, intercompany_receivable, accounts_payable, credit_cards, sales_tax_payable, payroll_liabilities, employee_reimbursements, deferred_revenue, other_current_liabilities, intercompany_payable, depreciation, retained_earnings_adjustments, fixed_assets, intercompany_loans_made, investments_in_affiliates, long_term_liabilities, intercompany_loans_received, owner_equity, partner_equity, shareholder_equity, intercompany_equity.
Scopes: reports:read or reports·operationId: cashReportFlow
Path & Query Parameters
| Parameter | Type | Description |
|---|---|---|
| date_from | date | First day (YYYY-MM-DD). Send with date_to, or omit both for the default window |
| date_to | date | Last day (YYYY-MM-DD). Send with date_from |
| columns | total | month | quarter | year | total (default), or month, quarter or year: one column per period (quarters and years by the fiscal year) and a Total |
| basis | accrual | cash | accrual (default) or cash |
| entity_id | uuid | Limit to one entity (GET /entities); omit for the whole company |
curl https://imprest.ai/api/v1/reports/cash_flow \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"{
"report": {
"object": "report",
"type": "cash_flow",
"title": "Cash Flow Statement",
"view": "summary",
"basis": "accrual",
"date_from": "2019-01-01",
"date_to": "2019-06-30",
"as_of": null,
"currency": "USD",
"entity_id": null,
"dimension_value_ids": [],
"generated_at": "2026-11-23T22:27:49Z",
"columns": [
{
"key": "2019-01-01",
"label": "Q1 2019",
"date_from": "2019-01-01",
"date_to": "2019-03-31",
"as_of": null
},
{
"key": "2019-04-01",
"label": "Q2 2019",
"date_from": "2019-04-01",
"date_to": "2019-06-30",
"as_of": null
}
],
"rows": [
{
"type": "header",
"key": "operating",
"label": "Operating activities",
"depth": 0,
"section": "operating",
"account_id": null,
"account_number": null,
"party_id": null,
"amounts_cents": [],
"transaction": null
},
{
"type": "line",
"key": "net_income",
"label": "Net income",
"depth": 1,
"section": "operating",
"account_id": null,
"account_number": null,
"party_id": null,
"amounts_cents": [
100000,
-10000
],
"transaction": null
}
],
"notes": []
}
}Response fields
| Parameter | Type | Description |
|---|---|---|
| reportrequired | object | The report |
| objectrequired | report | Always 'report' |
| typerequired | profit_and_loss | balance_sheet | trial_balance | cash_flow | ar_aging | ap_aging | general_ledger | Which report this is |
| titlerequired | string | The report's title, as the app shows it |
| viewrequired | summary | detail | summary, or detail: each account (or party) row followed by what makes it up |
| basisrequired | accrual | cash | null | accrual or cash; null for a report that has no basis (the agings) |
| date_fromrequired | date | null | First day covered (period reports) |
| date_torequired | date | null | Last day covered (period reports) |
| as_ofrequired | date | null | The day the report stands at, end of day (point-in-time reports) |
| currencyrequired | string | ISO currency every amount is in: the company's home currency |
| entity_idrequired | uuid | null | The entity the report is limited to; null for the whole company |
| dimension_value_idsrequired | string[] | The tracking-category values the report is limited to; empty for none |
| generated_atrequired | date-time | When the report was computed |
| columnsrequired | object[] | The amount columns, in order |
| keyrequired | string | Stable column name: total, debit, credit, balance (general ledger), an age bucket (current, days_1_30, …), or with columns=month|quarter|year the period's first day (the balance sheet: its last day) |
| labelrequired | string | The column's heading (Jan 2026, Q1 FY2026, Total) |
| date_fromrequired | date | null | First day the column covers |
| date_torequired | date | null | Last day the column covers |
| as_ofrequired | date | null | The day a balance column stands at (balance sheet, agings) |
| rowsrequired | object[] | Every row, in reading order |
| typerequired | header | account | party | line | subtotal | total | balance | transaction | header opens a section, group or parent account (on the general ledger, each account); account is one account; party is one customer or vendor; line is a figure that is not one account; subtotal closes the header above it; total is a report-level figure. At detail: balance is an account's opening balance; transaction is one posting under its account, or one open invoice or bill under its party on an aging |
| keyrequired | string | null | Stable snake_case name of a header, line, subtotal or total row (net_income, total_assets, accounts_receivable); null on account and party rows |
| labelrequired | string | The row's label, as the app shows it |
| depthrequired | integer | Indent level, from 0 |
| sectionrequired | string | null | The top-level section the row sits in (income, expenses, assets, operating, …; the account type on a trial balance and general ledger); null on a total row |
| account_idrequired | uuid | null | The account (account rows, and a parent account's header and subtotal) |
| account_numberrequired | string | null | The account's number, if the company numbers accounts |
| party_idrequired | uuid | null | The customer or vendor (party rows) |
| amounts_centsrequired | integer[] | Amounts in the currency's cents, one per column in order; empty on a header row |
| transactionrequired | object | null | What a transaction row is about; null on every other row |
| daterequired | date | The transaction's date |
| due_daterequired | date | null | When the document is due (agings) |
| source_typerequired | string | null | The kind of record behind it: Invoice, Bill, Expense, SalesReceipt, JournalEntry, … |
| source_idrequired | uuid | null | That record's id |
| journal_entry_idrequired | uuid | null | The journal entry it posted in (GET /journal_entries/{id}) |
| numberrequired | string | null | The document or entry number |
| memorequired | string | null | The posting's or document's memo |
| party_idrequired | uuid | null | The customer or vendor it was with |
| party_namerequired | string | null | That customer's or vendor's name |
| split_account_idrequired | uuid | null | The account on the other side, when the entry has exactly one other line; null when it has several (read the journal entry) |
| split_account_namerequired | string | null | That account's name |
| balance_centsrequired | integer | null | The account's running balance after this line, in its own sign (statements); null on an aging |
| notesrequired | string[] | What the figures leave out or could not do, in plain sentences; empty when nothing |
Errors
401No valid access token (invalid_token).403The token or the person behind it can't do this: insufficient_scope names the scope the token lacks; forbidden means the person's role doesn't allow it.422A parameter it can't honour exactly: a malformed date, one date without the other, an unknown value, a period parameter on a point-in-time report, more than 24 columns (invalid_filter); a detail over 10000 rows (too_many_rows); a combination the report can't produce, such as detail on the cash basis (unsupported)
Every error uses the same envelope: error, message and error_code.
/api/v1/reports/ar_agingA/R Aging Summary
What each customer owes at the end of a day, by how far past due: a column per age bucket and a Total. In the home currency: a foreign invoice counts at its booked rate, and one with no rate is left out and named in notes. On a rental company it includes the rent tenants owe. Signs: What is owed is positive; a credit or an unapplied payment reads negative. Rows always present, by key: total.
Scopes: reports:read or reports·operationId: arReportAging
Path & Query Parameters
| Parameter | Type | Description |
|---|---|---|
| as_of | date | The day to report at, end of day (YYYY-MM-DD). Default: today in the company's time zone |
| entity_id | uuid | Limit to one entity (GET /entities); omit for the whole company |
| view | summary | detail | summary (default), or detail: each party followed by its open documents |
curl https://imprest.ai/api/v1/reports/ar_aging \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"{
"report": {
"object": "report",
"type": "ar_aging",
"title": "A/R Aging Detail",
"view": "detail",
"basis": null,
"date_from": null,
"date_to": null,
"as_of": "2026-11-23",
"currency": "USD",
"entity_id": null,
"dimension_value_ids": [],
"generated_at": "2026-11-23T22:27:49Z",
"columns": [
{
"key": "current",
"label": "Current",
"date_from": null,
"date_to": null,
"as_of": null
},
{
"key": "days_1_30",
"label": "1–30",
"date_from": null,
"date_to": null,
"as_of": null
}
],
"rows": [
{
"type": "party",
"key": null,
"label": "Wayne Enterprises",
"depth": 0,
"section": null,
"account_id": null,
"account_number": null,
"party_id": "5c0cc1cd-61e5-5b13-973e-0d98885f8486",
"amounts_cents": [
0,
0
],
"transaction": null
},
{
"type": "transaction",
"key": null,
"label": "Invoice INV-0002",
"depth": 1,
"section": null,
"account_id": null,
"account_number": null,
"party_id": null,
"amounts_cents": [
0,
0
],
"transaction": {
"date": "2026-01-15",
"due_date": "2026-02-14",
"source_type": "Invoice",
"source_id": "fcf28856-6021-5c51-b4ce-9dc9739c3b40",
"journal_entry_id": null,
"number": "INV-0002",
"memo": null,
"party_id": "5c0cc1cd-61e5-5b13-973e-0d98885f8486",
"party_name": "Wayne Enterprises",
"split_account_id": null,
"split_account_name": null,
"balance_cents": null
}
}
],
"notes": []
}
}Response fields
| Parameter | Type | Description |
|---|---|---|
| reportrequired | object | The report |
| objectrequired | report | Always 'report' |
| typerequired | profit_and_loss | balance_sheet | trial_balance | cash_flow | ar_aging | ap_aging | general_ledger | Which report this is |
| titlerequired | string | The report's title, as the app shows it |
| viewrequired | summary | detail | summary, or detail: each account (or party) row followed by what makes it up |
| basisrequired | accrual | cash | null | accrual or cash; null for a report that has no basis (the agings) |
| date_fromrequired | date | null | First day covered (period reports) |
| date_torequired | date | null | Last day covered (period reports) |
| as_ofrequired | date | null | The day the report stands at, end of day (point-in-time reports) |
| currencyrequired | string | ISO currency every amount is in: the company's home currency |
| entity_idrequired | uuid | null | The entity the report is limited to; null for the whole company |
| dimension_value_idsrequired | string[] | The tracking-category values the report is limited to; empty for none |
| generated_atrequired | date-time | When the report was computed |
| columnsrequired | object[] | The amount columns, in order |
| keyrequired | string | Stable column name: total, debit, credit, balance (general ledger), an age bucket (current, days_1_30, …), or with columns=month|quarter|year the period's first day (the balance sheet: its last day) |
| labelrequired | string | The column's heading (Jan 2026, Q1 FY2026, Total) |
| date_fromrequired | date | null | First day the column covers |
| date_torequired | date | null | Last day the column covers |
| as_ofrequired | date | null | The day a balance column stands at (balance sheet, agings) |
| rowsrequired | object[] | Every row, in reading order |
| typerequired | header | account | party | line | subtotal | total | balance | transaction | header opens a section, group or parent account (on the general ledger, each account); account is one account; party is one customer or vendor; line is a figure that is not one account; subtotal closes the header above it; total is a report-level figure. At detail: balance is an account's opening balance; transaction is one posting under its account, or one open invoice or bill under its party on an aging |
| keyrequired | string | null | Stable snake_case name of a header, line, subtotal or total row (net_income, total_assets, accounts_receivable); null on account and party rows |
| labelrequired | string | The row's label, as the app shows it |
| depthrequired | integer | Indent level, from 0 |
| sectionrequired | string | null | The top-level section the row sits in (income, expenses, assets, operating, …; the account type on a trial balance and general ledger); null on a total row |
| account_idrequired | uuid | null | The account (account rows, and a parent account's header and subtotal) |
| account_numberrequired | string | null | The account's number, if the company numbers accounts |
| party_idrequired | uuid | null | The customer or vendor (party rows) |
| amounts_centsrequired | integer[] | Amounts in the currency's cents, one per column in order; empty on a header row |
| transactionrequired | object | null | What a transaction row is about; null on every other row |
| daterequired | date | The transaction's date |
| due_daterequired | date | null | When the document is due (agings) |
| source_typerequired | string | null | The kind of record behind it: Invoice, Bill, Expense, SalesReceipt, JournalEntry, … |
| source_idrequired | uuid | null | That record's id |
| journal_entry_idrequired | uuid | null | The journal entry it posted in (GET /journal_entries/{id}) |
| numberrequired | string | null | The document or entry number |
| memorequired | string | null | The posting's or document's memo |
| party_idrequired | uuid | null | The customer or vendor it was with |
| party_namerequired | string | null | That customer's or vendor's name |
| split_account_idrequired | uuid | null | The account on the other side, when the entry has exactly one other line; null when it has several (read the journal entry) |
| split_account_namerequired | string | null | That account's name |
| balance_centsrequired | integer | null | The account's running balance after this line, in its own sign (statements); null on an aging |
| notesrequired | string[] | What the figures leave out or could not do, in plain sentences; empty when nothing |
Errors
401No valid access token (invalid_token).403The token or the person behind it can't do this: insufficient_scope names the scope the token lacks; forbidden means the person's role doesn't allow it.422A parameter it can't honour exactly: a malformed date, one date without the other, an unknown value, a period parameter on a point-in-time report, more than 24 columns (invalid_filter); a detail over 10000 rows (too_many_rows); a combination the report can't produce, such as detail on the cash basis (unsupported)
Every error uses the same envelope: error, message and error_code.
/api/v1/reports/ap_agingA/P Aging Summary
What the company owes each vendor at the end of a day, by how far past due, in the home currency as the A/R aging is. Signs: What is owed is positive; a vendor credit or an unapplied payment reads negative. Rows always present, by key: total.
Scopes: reports:read or reports·operationId: apReportAging
Path & Query Parameters
| Parameter | Type | Description |
|---|---|---|
| as_of | date | The day to report at, end of day (YYYY-MM-DD). Default: today in the company's time zone |
| entity_id | uuid | Limit to one entity (GET /entities); omit for the whole company |
| view | summary | detail | summary (default), or detail: each party followed by its open documents |
curl https://imprest.ai/api/v1/reports/ap_aging \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"{
"report": {
"object": "report",
"type": "ap_aging",
"title": "A/P Aging Summary",
"view": "summary",
"basis": null,
"date_from": null,
"date_to": null,
"as_of": "2026-11-23",
"currency": "USD",
"entity_id": null,
"dimension_value_ids": [],
"generated_at": "2026-11-23T22:27:49Z",
"columns": [
{
"key": "current",
"label": "Current",
"date_from": null,
"date_to": null,
"as_of": null
},
{
"key": "days_1_30",
"label": "1–30",
"date_from": null,
"date_to": null,
"as_of": null
}
],
"rows": [
{
"type": "party",
"key": null,
"label": "Hardware Supply Co",
"depth": 0,
"section": null,
"account_id": null,
"account_number": null,
"party_id": "70f521ef-a9f8-53be-b515-59af7c75c1e9",
"amounts_cents": [
0,
0
],
"transaction": null
},
{
"type": "total",
"key": "total",
"label": "Total",
"depth": 0,
"section": null,
"account_id": null,
"account_number": null,
"party_id": null,
"amounts_cents": [
0,
0
],
"transaction": null
}
],
"notes": []
}
}Response fields
| Parameter | Type | Description |
|---|---|---|
| reportrequired | object | The report |
| objectrequired | report | Always 'report' |
| typerequired | profit_and_loss | balance_sheet | trial_balance | cash_flow | ar_aging | ap_aging | general_ledger | Which report this is |
| titlerequired | string | The report's title, as the app shows it |
| viewrequired | summary | detail | summary, or detail: each account (or party) row followed by what makes it up |
| basisrequired | accrual | cash | null | accrual or cash; null for a report that has no basis (the agings) |
| date_fromrequired | date | null | First day covered (period reports) |
| date_torequired | date | null | Last day covered (period reports) |
| as_ofrequired | date | null | The day the report stands at, end of day (point-in-time reports) |
| currencyrequired | string | ISO currency every amount is in: the company's home currency |
| entity_idrequired | uuid | null | The entity the report is limited to; null for the whole company |
| dimension_value_idsrequired | string[] | The tracking-category values the report is limited to; empty for none |
| generated_atrequired | date-time | When the report was computed |
| columnsrequired | object[] | The amount columns, in order |
| keyrequired | string | Stable column name: total, debit, credit, balance (general ledger), an age bucket (current, days_1_30, …), or with columns=month|quarter|year the period's first day (the balance sheet: its last day) |
| labelrequired | string | The column's heading (Jan 2026, Q1 FY2026, Total) |
| date_fromrequired | date | null | First day the column covers |
| date_torequired | date | null | Last day the column covers |
| as_ofrequired | date | null | The day a balance column stands at (balance sheet, agings) |
| rowsrequired | object[] | Every row, in reading order |
| typerequired | header | account | party | line | subtotal | total | balance | transaction | header opens a section, group or parent account (on the general ledger, each account); account is one account; party is one customer or vendor; line is a figure that is not one account; subtotal closes the header above it; total is a report-level figure. At detail: balance is an account's opening balance; transaction is one posting under its account, or one open invoice or bill under its party on an aging |
| keyrequired | string | null | Stable snake_case name of a header, line, subtotal or total row (net_income, total_assets, accounts_receivable); null on account and party rows |
| labelrequired | string | The row's label, as the app shows it |
| depthrequired | integer | Indent level, from 0 |
| sectionrequired | string | null | The top-level section the row sits in (income, expenses, assets, operating, …; the account type on a trial balance and general ledger); null on a total row |
| account_idrequired | uuid | null | The account (account rows, and a parent account's header and subtotal) |
| account_numberrequired | string | null | The account's number, if the company numbers accounts |
| party_idrequired | uuid | null | The customer or vendor (party rows) |
| amounts_centsrequired | integer[] | Amounts in the currency's cents, one per column in order; empty on a header row |
| transactionrequired | object | null | What a transaction row is about; null on every other row |
| daterequired | date | The transaction's date |
| due_daterequired | date | null | When the document is due (agings) |
| source_typerequired | string | null | The kind of record behind it: Invoice, Bill, Expense, SalesReceipt, JournalEntry, … |
| source_idrequired | uuid | null | That record's id |
| journal_entry_idrequired | uuid | null | The journal entry it posted in (GET /journal_entries/{id}) |
| numberrequired | string | null | The document or entry number |
| memorequired | string | null | The posting's or document's memo |
| party_idrequired | uuid | null | The customer or vendor it was with |
| party_namerequired | string | null | That customer's or vendor's name |
| split_account_idrequired | uuid | null | The account on the other side, when the entry has exactly one other line; null when it has several (read the journal entry) |
| split_account_namerequired | string | null | That account's name |
| balance_centsrequired | integer | null | The account's running balance after this line, in its own sign (statements); null on an aging |
| notesrequired | string[] | What the figures leave out or could not do, in plain sentences; empty when nothing |
Errors
401No valid access token (invalid_token).403The token or the person behind it can't do this: insufficient_scope names the scope the token lacks; forbidden means the person's role doesn't allow it.422A parameter it can't honour exactly: a malformed date, one date without the other, an unknown value, a period parameter on a point-in-time report, more than 24 columns (invalid_filter); a detail over 10000 rows (too_many_rows); a combination the report can't produce, such as detail on the cash basis (unsupported)
Every error uses the same envelope: error, message and error_code.
/api/v1/reports/general_ledgerGeneral Ledger
Every posting in a period, account by account: each account with postings in the window is a header, its opening balance (a balance row), one transaction row per posting and a subtotal with the window's debits, credits and the ending balance, under Debit, Credit and Balance columns. The Total row's balance is the window's debits less its credits. Without dates it covers the month to date. It is always posting detail (view is detail) and has no basis: it is the ledger as booked. Signs: Debits in the debit column and credits in the credit column, both positive. Balance is the account's running balance in its own sign: an asset or expense in debit, or a liability, equity or income account in credit, reads positive. Rows always present, by key: total. When the company has that activity: opening_balance.
Scopes: reports:read or reports·operationId: generalReportLedger
Path & Query Parameters
| Parameter | Type | Description |
|---|---|---|
| date_from | date | First day (YYYY-MM-DD). Send with date_to, or omit both for the default window |
| date_to | date | Last day (YYYY-MM-DD). Send with date_from |
| entity_id | uuid | Limit to one entity (GET /entities); omit for the whole company |
| dimension_value_ids | string[] | Limit to lines tagged with these tracking-category values (GET /dimensions), at most one per dimension |
| account_id | uuid | List only this account and its sub-accounts (GET /accounts) |
| include_closing | boolean | Include fiscal-year closing entries (default false: the ledger then ties to the trial balance) |
curl https://imprest.ai/api/v1/reports/general_ledger \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"{
"report": {
"object": "report",
"type": "general_ledger",
"title": "General Ledger",
"view": "detail",
"basis": null,
"date_from": "2019-01-01",
"date_to": "2019-01-31",
"as_of": null,
"currency": "USD",
"entity_id": null,
"dimension_value_ids": [],
"generated_at": "2026-11-23T22:27:48Z",
"columns": [
{
"key": "debit",
"label": "Debit",
"date_from": null,
"date_to": null,
"as_of": null
},
{
"key": "credit",
"label": "Credit",
"date_from": null,
"date_to": null,
"as_of": null
}
],
"rows": [
{
"type": "header",
"key": null,
"label": "Checking",
"depth": 0,
"section": "asset",
"account_id": "def75944-088d-5417-88b3-d3d68486b302",
"account_number": null,
"party_id": null,
"amounts_cents": [],
"transaction": null
},
{
"type": "balance",
"key": "opening_balance",
"label": "Opening balance",
"depth": 1,
"section": "asset",
"account_id": "def75944-088d-5417-88b3-d3d68486b302",
"account_number": null,
"party_id": null,
"amounts_cents": [
0,
0
],
"transaction": null
}
],
"notes": [
"Fiscal-year closing entries are included, so income and expense accounts close to Retained Earnings at each year end."
]
}
}Response fields
| Parameter | Type | Description |
|---|---|---|
| reportrequired | object | The report |
| objectrequired | report | Always 'report' |
| typerequired | profit_and_loss | balance_sheet | trial_balance | cash_flow | ar_aging | ap_aging | general_ledger | Which report this is |
| titlerequired | string | The report's title, as the app shows it |
| viewrequired | summary | detail | summary, or detail: each account (or party) row followed by what makes it up |
| basisrequired | accrual | cash | null | accrual or cash; null for a report that has no basis (the agings) |
| date_fromrequired | date | null | First day covered (period reports) |
| date_torequired | date | null | Last day covered (period reports) |
| as_ofrequired | date | null | The day the report stands at, end of day (point-in-time reports) |
| currencyrequired | string | ISO currency every amount is in: the company's home currency |
| entity_idrequired | uuid | null | The entity the report is limited to; null for the whole company |
| dimension_value_idsrequired | string[] | The tracking-category values the report is limited to; empty for none |
| generated_atrequired | date-time | When the report was computed |
| columnsrequired | object[] | The amount columns, in order |
| keyrequired | string | Stable column name: total, debit, credit, balance (general ledger), an age bucket (current, days_1_30, …), or with columns=month|quarter|year the period's first day (the balance sheet: its last day) |
| labelrequired | string | The column's heading (Jan 2026, Q1 FY2026, Total) |
| date_fromrequired | date | null | First day the column covers |
| date_torequired | date | null | Last day the column covers |
| as_ofrequired | date | null | The day a balance column stands at (balance sheet, agings) |
| rowsrequired | object[] | Every row, in reading order |
| typerequired | header | account | party | line | subtotal | total | balance | transaction | header opens a section, group or parent account (on the general ledger, each account); account is one account; party is one customer or vendor; line is a figure that is not one account; subtotal closes the header above it; total is a report-level figure. At detail: balance is an account's opening balance; transaction is one posting under its account, or one open invoice or bill under its party on an aging |
| keyrequired | string | null | Stable snake_case name of a header, line, subtotal or total row (net_income, total_assets, accounts_receivable); null on account and party rows |
| labelrequired | string | The row's label, as the app shows it |
| depthrequired | integer | Indent level, from 0 |
| sectionrequired | string | null | The top-level section the row sits in (income, expenses, assets, operating, …; the account type on a trial balance and general ledger); null on a total row |
| account_idrequired | uuid | null | The account (account rows, and a parent account's header and subtotal) |
| account_numberrequired | string | null | The account's number, if the company numbers accounts |
| party_idrequired | uuid | null | The customer or vendor (party rows) |
| amounts_centsrequired | integer[] | Amounts in the currency's cents, one per column in order; empty on a header row |
| transactionrequired | object | null | What a transaction row is about; null on every other row |
| daterequired | date | The transaction's date |
| due_daterequired | date | null | When the document is due (agings) |
| source_typerequired | string | null | The kind of record behind it: Invoice, Bill, Expense, SalesReceipt, JournalEntry, … |
| source_idrequired | uuid | null | That record's id |
| journal_entry_idrequired | uuid | null | The journal entry it posted in (GET /journal_entries/{id}) |
| numberrequired | string | null | The document or entry number |
| memorequired | string | null | The posting's or document's memo |
| party_idrequired | uuid | null | The customer or vendor it was with |
| party_namerequired | string | null | That customer's or vendor's name |
| split_account_idrequired | uuid | null | The account on the other side, when the entry has exactly one other line; null when it has several (read the journal entry) |
| split_account_namerequired | string | null | That account's name |
| balance_centsrequired | integer | null | The account's running balance after this line, in its own sign (statements); null on an aging |
| notesrequired | string[] | What the figures leave out or could not do, in plain sentences; empty when nothing |
Errors
401No valid access token (invalid_token).403The token or the person behind it can't do this: insufficient_scope names the scope the token lacks; forbidden means the person's role doesn't allow it.422A parameter it can't honour exactly: a malformed date, one date without the other, an unknown value, a period parameter on a point-in-time report, more than 24 columns (invalid_filter); a detail over 10000 rows (too_many_rows); a combination the report can't produce, such as detail on the cash basis (unsupported)
Every error uses the same envelope: error, message and error_code.