> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.quickbooks.accounting.ListAccounts

- Component: `appmixer.quickbooks.accounting.ListAccounts`
- Kind: Action
- Version: 1.0.1
- Visibility: Public
- Connector: [appmixer.quickbooks 1.10.2](https://connectors.appmixer.com/connector/appmixer.quickbooks/1.10.2.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.quickbooks/1.10.2/component/appmixer.quickbooks.accounting.ListAccounts>

Retrieves accounts.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Minor Version (`minorVersion`) | number | Minor version of the request. Note: Versions below 75 are ignored and will default to version 75. Use version 75 or higher for current features. See the [docs](https://developer.intuit.com/app/developer/qbo/docs/learn/explore-the-quickbooks-online-api/minor-versions) for more details. |
| Search Type (`searchType`) | select | Choose whether you want to search by Name or use [advanced query](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/class#query-a-class) to filter records. |
| Query (`term`) | textarea | Search by name or provide an advanced query. When providing a query note that only the part after the WHERE clause should be provided. For example, if you want to search for all accounts with a name that contains 'foo', you would provide `Name LIKE '%foo%'` as the query. For even more advanced queries, use Query component. For more details and limitations of the query, see the [Query operations and syntax docs](https://developer.intuit.com/app/developer/qbo/docs/learn/explore-the-quickbooks-online-api/data-queries). |
| Max Results (`maxResults`) | number | Maximum number of results to return. The default is 100. |
| Output Type (`outputType`) | select | Choose whether you want to receive the result set as one complete list, or one item at a time or stream the items to a file. For large datasets, streaming the rows to a file is the most efficient method. |

## Output ports

### Port `out`

Variables are loaded dynamically from `/component/appmixer/quickbooks/accounting/ListAccounts?outPort=out`.

## Full metadata (component.json)

```json
{
  "name": "appmixer.quickbooks.accounting.ListAccounts",
  "author": "Jiří Hofman <jirka@client.io>",
  "icon": "(data URI omitted)",
  "description": "Retrieves accounts.",
  "version": "1.0.1",
  "auth": {
    "service": "appmixer:quickbooks"
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "minorVersion": {
            "type": "number"
          },
          "searchType": {
            "type": "string"
          },
          "term": {
            "type": "string"
          },
          "maxResults": {
            "type": "number",
            "max": 1000
          },
          "outputType": {
            "type": "string"
          }
        },
        "required": []
      },
      "inspector": {
        "inputs": {
          "minorVersion": {
            "type": "number",
            "index": 1,
            "label": "Minor Version",
            "defaultValue": 75,
            "tooltip": "Minor version of the request. Note: Versions below 75 are ignored and will default to version 75. Use version 75 or higher for current features. See the <a target='_blank' rel='noopener noreferrer' href='https://developer.intuit.com/app/developer/qbo/docs/learn/explore-the-quickbooks-online-api/minor-versions'>docs</a> for more details."
          },
          "searchType": {
            "type": "select",
            "options": [
              {
                "content": "Name equals",
                "value": "nameEquals"
              },
              {
                "content": "Name contains",
                "value": "nameContains"
              },
              {
                "content": "Query",
                "value": "query"
              }
            ],
            "index": 2,
            "label": "Search Type",
            "tooltip": "Choose whether you want to search by Name or use <a target='_blank' rel='noopener noreferrer' href='https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/class#query-a-class'>advanced query</a> to filter records."
          },
          "term": {
            "type": "textarea",
            "label": "Query",
            "index": 3,
            "tooltip": "Search by name or provide an advanced query. When providing a query note that only the part after the WHERE clause should be provided. For example, if you want to search for all accounts with a name that contains 'foo', you would provide <code>Name LIKE '%foo%'</code> as the query. For even more advanced queries, use Query component. For more details and limitations of the query, see the <a target='_blank' rel='noopener noreferrer' href='https://developer.intuit.com/app/developer/qbo/docs/learn/explore-the-quickbooks-online-api/data-queries'>Query operations and syntax docs</a>."
          },
          "maxResults": {
            "type": "number",
            "index": 4,
            "label": "Max Results",
            "tooltip": "Maximum number of results to return. The default is 100."
          },
          "outputType": {
            "type": "select",
            "options": [
              {
                "label": "All at once",
                "value": "items"
              },
              {
                "label": "One at a time",
                "value": "item"
              },
              {
                "label": "File",
                "value": "file"
              }
            ],
            "defaultValue": "items",
            "index": 5,
            "label": "Output Type",
            "tooltip": "Choose whether you want to receive the result set as one complete list, or one item at a time or stream the items to a file. For large datasets, streaming the rows to a file is the most efficient method."
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "source": {
        "url": "/component/appmixer/quickbooks/accounting/ListAccounts?outPort=out",
        "data": {
          "properties": {
            "generateOutputPortOptions": true
          },
          "messages": {
            "in/outputType": "inputs/in/outputType"
          }
        }
      }
    }
  ]
}
```
