# Reports

Source: https://docs.autessa.com/docs/tools/quickbooks/reports

> QuickBooks reporting tool types.

# Reports

Tool types that run QuickBooks' built-in reports: profit and loss, balance sheet, cash flow, receivables and payables aging, customer and vendor balances, and the raw transaction list.

Every type on this page requires a [QuickBooks connector](/docs/guide/connectors.md); `connectorId` is the ID of that connector. All dates are `YYYY-MM-DD` strings, and where `accountingMethod` appears it's `Cash` or `Accrual`. Reports come back in QuickBooks' row/column report format rather than as entity lists — for pre-digested aggregates, see the summary composites on the [Workflows](/docs/tools/quickbooks/workflows.md) page.

## Get profit and loss **TOOL** `QUICKBOOKS_GET_PROFIT_AND_LOSS`

Runs the P&L (income statement) for a date range: income, cost of goods sold, expenses, and net income. `summarizeColumnsBy` splits the columns by `Month`, `Week`, and so on, or keeps a single `Total` column.

### Example

```json title="Tool config"
{
  "toolType": "QUICKBOOKS_GET_PROFIT_AND_LOSS",
  "connectorId": "V1StGXR8Z5",
  "startDate": "@@{startDate}",
  "endDate": "@@{endDate}",
  "accountingMethod": "Accrual",
  "summarizeColumnsBy": "Month"
}
```

> This tool type requires a connected external account. Pass the connector's ID as `connectorId` in the tool configuration.

**Configuration fields**

- `connectorId` (string (ID)) — Required string (ID) value. References a connector by ID.
- `startDate` (string) — Start date (YYYY-MM-DD)
- `endDate` (string) — End date (YYYY-MM-DD)
- `accountingMethod` (string) — Cash or Accrual
- `summarizeColumnsBy` (string) — Total, Month, Week, etc.

## Get balance sheet **TOOL** `QUICKBOOKS_GET_BALANCE_SHEET`

Runs the balance sheet as of `endDate`: assets, liabilities, and equity at that point in time. Like the P&L, columns can be summarized by period for trend views.

### Example

```json title="Tool config"
{
  "toolType": "QUICKBOOKS_GET_BALANCE_SHEET",
  "connectorId": "V1StGXR8Z5",
  "endDate": "@@{asOfDate}",
  "accountingMethod": "Accrual",
  "summarizeColumnsBy": "Total"
}
```

> This tool type requires a connected external account. Pass the connector's ID as `connectorId` in the tool configuration.

**Configuration fields**

- `connectorId` (string (ID)) — Required string (ID) value. References a connector by ID.
- `endDate` (string) — As of date (YYYY-MM-DD)
- `accountingMethod` (string) — Cash or Accrual
- `summarizeColumnsBy` (string) — Total, Month, Week, etc.

## Get cash flow **TOOL** `QUICKBOOKS_GET_CASH_FLOW`

Runs the statement of cash flows for a date range, broken into operating, investing, and financing activities. Useful for agents answering "where did the money actually go?" as opposed to accrual-based P&L questions.

### Example

```json title="Tool config"
{
  "toolType": "QUICKBOOKS_GET_CASH_FLOW",
  "connectorId": "V1StGXR8Z5",
  "startDate": "@@{startDate}",
  "endDate": "@@{endDate}",
  "summarizeColumnsBy": "Month"
}
```

> This tool type requires a connected external account. Pass the connector's ID as `connectorId` in the tool configuration.

**Configuration fields**

- `connectorId` (string (ID)) — Required string (ID) value. References a connector by ID.
- `startDate` (string) — Start date (YYYY-MM-DD)
- `endDate` (string) — End date (YYYY-MM-DD)
- `summarizeColumnsBy` (string) — Total, Month, Week, etc.

## Get aged receivables **TOOL** `QUICKBOOKS_GET_AGED_RECEIVABLES`

Runs the A/R aging report — who owes money and how overdue it is, bucketed into aging periods (`daysPerAgingPeriod` wide, `numPeriods` of them, defaulting to 4 x 30 days). Pass `customerId` to age a single customer's balance; this is the natural input for collections and dunning agents.

### Example

```json title="Tool config"
{
  "toolType": "QUICKBOOKS_GET_AGED_RECEIVABLES",
  "connectorId": "V1StGXR8Z5",
  "reportDate": "@@{asOfDate}",
  "agingMethod": "Report_Date",
  "daysPerAgingPeriod": 30,
  "numPeriods": 4
}
```

> This tool type requires a connected external account. Pass the connector's ID as `connectorId` in the tool configuration.

**Configuration fields**

- `connectorId` (string (ID)) — Required string (ID) value. References a connector by ID.
- `reportDate` (string) — As of date (YYYY-MM-DD)
- `agingMethod` (string) — Report_Date or Current
- `daysPerAgingPeriod` (integer) — Days per period (default 30)
- `numPeriods` (integer) — Number of periods (default 4)
- `customerId` (string) — Filter by specific customer

## Get aged payables **TOOL** `QUICKBOOKS_GET_AGED_PAYABLES`

The A/P mirror of aged receivables — which vendors the company owes and how overdue each balance is, in the same configurable aging buckets. Pass `vendorId` to focus on one vendor before deciding what to pay first.

### Example

```json title="Tool config"
{
  "toolType": "QUICKBOOKS_GET_AGED_PAYABLES",
  "connectorId": "V1StGXR8Z5",
  "reportDate": "@@{asOfDate}",
  "agingMethod": "Report_Date",
  "daysPerAgingPeriod": 30,
  "numPeriods": 4
}
```

> This tool type requires a connected external account. Pass the connector's ID as `connectorId` in the tool configuration.

**Configuration fields**

- `connectorId` (string (ID)) — Required string (ID) value. References a connector by ID.
- `reportDate` (string) — As of date (YYYY-MM-DD)
- `agingMethod` (string) — Report_Date or Current
- `daysPerAgingPeriod` (integer) — Days per period (default 30)
- `numPeriods` (integer) — Number of periods (default 4)
- `vendorId` (string) — Filter by specific vendor

## Get customer balance **TOOL** `QUICKBOOKS_GET_CUSTOMER_BALANCE`

Runs the customer balance report — each customer's open balance as of `reportDate`, without the aging breakdown. Filter with `customerId` for a quick "how much does this customer owe right now?" answer.

### Example

```json title="Tool config"
{
  "toolType": "QUICKBOOKS_GET_CUSTOMER_BALANCE",
  "connectorId": "V1StGXR8Z5",
  "reportDate": "@@{asOfDate}",
  "accountingMethod": "Accrual",
  "customerId": "@@{customerId}"
}
```

> This tool type requires a connected external account. Pass the connector's ID as `connectorId` in the tool configuration.

**Configuration fields**

- `connectorId` (string (ID)) — Required string (ID) value. References a connector by ID.
- `reportDate` (string) — As of date (YYYY-MM-DD)
- `accountingMethod` (string) — Cash or Accrual
- `customerId` (string) — Filter by specific customer

## Get vendor balance **TOOL** `QUICKBOOKS_GET_VENDOR_BALANCE`

Runs the vendor balance report — how much is owed to each vendor as of `reportDate`. Filter with `vendorId` to check a single vendor before approving new spend or a payment run.

### Example

```json title="Tool config"
{
  "toolType": "QUICKBOOKS_GET_VENDOR_BALANCE",
  "connectorId": "V1StGXR8Z5",
  "reportDate": "@@{asOfDate}",
  "accountingMethod": "Accrual",
  "vendorId": "@@{vendorId}"
}
```

> This tool type requires a connected external account. Pass the connector's ID as `connectorId` in the tool configuration.

**Configuration fields**

- `connectorId` (string (ID)) — Required string (ID) value. References a connector by ID.
- `reportDate` (string) — As of date (YYYY-MM-DD)
- `accountingMethod` (string) — Cash or Accrual
- `vendorId` (string) — Filter by specific vendor

## Get transaction list **TOOL** `QUICKBOOKS_GET_TRANSACTION_LIST`

Runs the transaction list report — every transaction in a date range, filterable by comma-separated `transactionType` values (`Invoice`, `Payment`, `Bill`, ...), groupable by customer, vendor, or account, with selectable `columns`. It's the most flexible read on this page and the engine behind `QUICKBOOKS_GET_RECENT_ACTIVITY` on the [Workflows](/docs/tools/quickbooks/workflows.md) page.

### Example

```json title="Tool config"
{
  "toolType": "QUICKBOOKS_GET_TRANSACTION_LIST",
  "connectorId": "V1StGXR8Z5",
  "startDate": "@@{startDate}",
  "endDate": "@@{endDate}",
  "transactionType": "Invoice,Payment",
  "groupBy": "Customer"
}
```

> This tool type requires a connected external account. Pass the connector's ID as `connectorId` in the tool configuration.

**Configuration fields**

- `connectorId` (string (ID)) — Required string (ID) value. References a connector by ID.
- `startDate` (string) — Start date (YYYY-MM-DD)
- `endDate` (string) — End date (YYYY-MM-DD)
- `transactionType` (string) — Invoice, Payment, Bill, etc. (comma-separated)
- `sourceAccountType` (string) — Filter by account type
- `groupBy` (string) — None, Customer, Vendor, Account, etc.
- `columns` (string) — Comma-separated column names to include

## Related

- [Tools overview](/docs/tools.md)
- [QuickBooks overview](/docs/tools/quickbooks.md)
- [Sales & AR](/docs/tools/quickbooks/sales-ar.md)
- [Purchasing & AP](/docs/tools/quickbooks/purchasing-ap.md)
- [Items, Accounts & Company](/docs/tools/quickbooks/items-accounts-company.md)
- [Payments](/docs/tools/quickbooks/payments.md)
- [Workflows](/docs/tools/quickbooks/workflows.md)
- [Connectors](/docs/guide/connectors.md)
- [Autessa Payments](/docs/tools/autessa-payments.md)

