> 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.xero.accounting.ListAccounts

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

Allows you to retrieve the full chart of accounts.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Tenant ID (`tenantId`) | text | - |
| 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. |
| Order by an any element (`order`) | text | - |
| Where (`where`) | text | Filter by an any element |

## Output ports

### Port `accounts`

Variables are loaded dynamically from `/component/appmixer/xero/accounting/ListAccounts?outPort=accounts&ignoreAuth=true`.

## Full metadata (component.json)

```json
{
  "name": "appmixer.xero.accounting.ListAccounts",
  "author": "Jiri Hofman <jirka@client.io>",
  "description": "Allows you to retrieve the full chart of accounts.",
  "private": false,
  "auth": {
    "service": "appmixer:xero",
    "scope": [
      "accounting.settings.read"
    ]
  },
  "quota": {
    "manager": "appmixer:xero:accounting",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "outputType": {
            "type": "string"
          },
          "order": {
            "type": "string"
          },
          "where": {
            "type": "string"
          }
        },
        "required": [
          "tenantId"
        ]
      },
      "inspector": {
        "inputs": {
          "tenantId": {
            "type": "text",
            "label": "Tenant ID",
            "index": 1,
            "source": {
              "url": "/component/appmixer/xero/accounting/ListTenants?outPort=tenants",
              "data": {
                "transform": "./transformers#tenantsToSelectArray"
              }
            }
          },
          "outputType": {
            "type": "select",
            "label": "Output Type",
            "index": 2,
            "defaultValue": "items",
            "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.",
            "options": [
              {
                "label": "All at once",
                "value": "items"
              },
              {
                "label": "One at a time",
                "value": "item"
              },
              {
                "label": "File",
                "value": "file"
              }
            ]
          },
          "order": {
            "type": "text",
            "label": "Order by an any element",
            "index": 3
          },
          "where": {
            "type": "text",
            "label": "Where",
            "index": 4,
            "tooltip": "Filter by an any element"
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "accounts",
      "source": {
        "url": "/component/appmixer/xero/accounting/ListAccounts?outPort=accounts&ignoreAuth=true",
        "data": {
          "properties": {
            "generateOutputPortOptions": true
          },
          "messages": {
            "in/tenantId": "any",
            "in/outputType": "inputs/in/outputType"
          }
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
