# Items, Accounts & Company

Source: https://docs.autessa.com/docs/tools/quickbooks/items-accounts-company

> QuickBooks tool types for items, chart of accounts, and company info.

# Items, Accounts & Company

Tool types for the reference data everything else is built on: products and services (items), the chart of accounts, and read-only company info and preferences.

Every type on this page requires a [QuickBooks connector](/docs/guide/connectors.md); `connectorId` is the ID of that connector. Invoice lines reference items and expense lines reference accounts, so agents that create transactions usually carry one of the lookup tools from this page too. See the [QuickBooks overview](/docs/tools/quickbooks.md) for connector setup and sandbox behavior.

## Create item **TOOL** `QUICKBOOKS_CREATE_ITEM`

Creates a product or service item. `type` is `Service`, `NonInventory`, or `Inventory` — sales items need an `incomeAccountId`, purchase items an `expenseAccountId`, and inventory items additionally need an `assetAccountId` plus `trackQtyOnHand` and a starting `qtyOnHand`. The created item's ID is what invoice and PO lines reference.

### Example

```json title="Tool config"
{
  "toolType": "QUICKBOOKS_CREATE_ITEM",
  "connectorId": "V1StGXR8Z5",
  "name": "@@{itemName}",
  "type": "Service",
  "unitPrice": 150.00,
  "incomeAccountId": "45",
  "taxable": true
}
```

> 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.
- `name` (string) — Required
- `type` (string) — Required - Inventory, NonInventory, Service
- `description` (string) — Required string value.
- `unitPrice` (number) — Sales price
- `purchaseCost` (number) — Purchase cost
- `incomeAccountId` (string) — Required for sales items
- `expenseAccountId` (string) — Required for purchase items
- `assetAccountId` (string) — Required for inventory items
- `trackQtyOnHand` (boolean) — Track quantity
- `qtyOnHand` (number) — Starting quantity
- `sku` (string) — SKU/Part number
- `taxable` (boolean) — Is taxable

## Update item **TOOL** `QUICKBOOKS_UPDATE_ITEM`

Updates an existing item's name, description, pricing, SKU, or tax flag. Setting `active` to false retires the item from pick lists without disturbing historical transactions that reference it.

### Example

```json title="Tool config"
{
  "toolType": "QUICKBOOKS_UPDATE_ITEM",
  "connectorId": "V1StGXR8Z5",
  "itemId": "@@{itemId}",
  "unitPrice": 175.00
}
```

> 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.
- `itemId` (string) — Required
- `name` (string) — Required string value.
- `description` (string) — Required string value.
- `unitPrice` (number) — Required number value.
- `purchaseCost` (number) — Required number value.
- `sku` (string) — Required string value.
- `taxable` (boolean) — Required boolean value.
- `active` (boolean) — Required boolean value.

## Get items **TOOL** `QUICKBOOKS_GET_ITEMS`

Lists items with pagination, filtered by `itemType` (`Inventory`, `NonInventory`, `Service`, `Group`, ...) or a raw `whereClause`. This is how an agent finds the item IDs invoice lines need; `QUICKBOOKS_GET_ITEMS_FOR_INVOICE` on the [Workflows](/docs/tools/quickbooks/workflows.md) page adds fuzzy name search on top.

### Example

```json title="Tool config"
{
  "toolType": "QUICKBOOKS_GET_ITEMS",
  "connectorId": "V1StGXR8Z5",
  "maxResults": 50,
  "startPosition": 1,
  "itemType": "Service",
  "activeOnly": true
}
```

> 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.
- `maxResults` (integer) — Required integer value.
- `startPosition` (integer) — Required integer value.
- `whereClause` (string) — Required string value.
- `itemType` (string) — Inventory, NonInventory, Service, Group, etc.
- `activeOnly` (boolean) — Required boolean value.

## Get item by ID **TOOL** `QUICKBOOKS_GET_ITEM_BY_ID`

Fetches a single item's full record — pricing, linked income/expense/asset accounts, SKU, and quantity on hand for inventory items. Use it to verify pricing before quoting or invoicing.

### Example

```json title="Tool config"
{
  "toolType": "QUICKBOOKS_GET_ITEM_BY_ID",
  "connectorId": "V1StGXR8Z5",
  "itemId": "@@{itemId}"
}
```

> 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.
- `itemId` (string) — Required string value.

## Create account **TOOL** `QUICKBOOKS_CREATE_ACCOUNT`

Adds an account to the chart of accounts. `accountType` (e.g. `Bank`, `Expense`, `Income`, `OtherCurrentAsset`) is required and pairs with an optional `accountSubType` like `Checking` or `AdvertisingPromotional`; `parentAccountId` nests it as a sub-account. Changing the chart of accounts affects reporting, so give this tool only to agents that are meant to restructure books.

### Example

```json title="Tool config"
{
  "toolType": "QUICKBOOKS_CREATE_ACCOUNT",
  "connectorId": "V1StGXR8Z5",
  "name": "@@{accountName}",
  "accountType": "Expense",
  "accountSubType": "AdvertisingPromotional",
  "description": "@@{accountDescription}"
}
```

> 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.
- `name` (string) — Required
- `accountType` (string) — Required - Bank, Expense, Income, OtherCurrentAsset, etc.
- `accountSubType` (string) — Sub-type like Checking, Savings, AdvertisingPromotional, etc.
- `description` (string) — Required string value.
- `acctNum` (string) — Account number
- `parentAccountId` (string) — For sub-accounts

## Get accounts **TOOL** `QUICKBOOKS_GET_ACCOUNTS`

Lists the chart of accounts with pagination, filtered by `accountType`, `classification` (`Asset`, `Liability`, `Equity`, `Revenue`, `Expense`), or a raw `whereClause`. Agents use it to find the account IDs that bills, payments, and deposits reference.

### Example

```json title="Tool config"
{
  "toolType": "QUICKBOOKS_GET_ACCOUNTS",
  "connectorId": "V1StGXR8Z5",
  "maxResults": 100,
  "startPosition": 1,
  "classification": "Expense",
  "activeOnly": true
}
```

> 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.
- `maxResults` (integer) — Required integer value.
- `startPosition` (integer) — Required integer value.
- `whereClause` (string) — Required string value.
- `accountType` (string) — Bank, Expense, Income, etc.
- `classification` (string) — Asset, Liability, Equity, Revenue, Expense
- `activeOnly` (boolean) — Required boolean value.

## Get account by ID **TOOL** `QUICKBOOKS_GET_ACCOUNT_BY_ID`

Fetches a single account's details — type, sub-type, current balance, and parent relationship. Handy for confirming an account is the right target before booking transactions against it.

### Example

```json title="Tool config"
{
  "toolType": "QUICKBOOKS_GET_ACCOUNT_BY_ID",
  "connectorId": "V1StGXR8Z5",
  "accountId": "@@{accountId}"
}
```

> 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.
- `accountId` (string) — Required string value.

## Get company info **TOOL** `QUICKBOOKS_GET_COMPANY_INFO`

Returns the connected QuickBooks company's profile: legal name, addresses, fiscal-year start, and contact details. Takes only the `connectorId`, which also makes it a cheap way to verify a connector is alive and pointed at the right company.

### Example

```json title="Tool config"
{
  "toolType": "QUICKBOOKS_GET_COMPANY_INFO",
  "connectorId": "V1StGXR8Z5"
}
```

> 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.

## Get preferences **TOOL** `QUICKBOOKS_GET_PREFERENCES`

Returns the company's QuickBooks settings — sales-tax configuration, multi-currency, class tracking, default terms, and email preferences. Agents should read this before assuming a feature is on; for example, tax-code references on invoice lines only apply when sales tax is enabled here.

### Example

```json title="Tool config"
{
  "toolType": "QUICKBOOKS_GET_PREFERENCES",
  "connectorId": "V1StGXR8Z5"
}
```

> 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.

## 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)
- [Reports](/docs/tools/quickbooks/reports.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)

