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

- Component: `appmixer.xero.accounting.ListContacts`
- 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.ListContacts>

Allows you to retrieve contacts in a Xero organisation.

## 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. |
| `IDs` | text | Filter by a comma separated list of ContactIDs. Allows you to retrieve a specific set of contacts in a single call. |
| Include Archived (`includeArchived`) | toggle | Contacts with a status of ARCHIVED will be included in the response. By default only contacts of status ACTIVE will be returned. |
| Order by an any element (`order`) | text | - |
| Search Term (`searchTerm`) | text | Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields. |
| Summary Only (`summaryOnly`) | toggle | Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. |
| Where (`where`) | text | Filter by an any element |

## Output ports

### Port `contacts`

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

## Full metadata (component.json)

```json
{
  "name": "appmixer.xero.accounting.ListContacts",
  "author": "Jiri Hofman <jirka@client.io>",
  "description": "Allows you to retrieve contacts in a Xero organisation.",
  "private": false,
  "auth": {
    "service": "appmixer:xero",
    "scope": [
      "accounting.contacts.read"
    ]
  },
  "quota": {
    "manager": "appmixer:xero:accounting",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "outputType": {
            "type": "string"
          },
          "IDs": {
            "type": "string"
          },
          "includeArchived": {
            "type": "boolean"
          },
          "order": {
            "type": "string"
          },
          "searchTerm": {
            "type": "string"
          },
          "summaryOnly": {
            "type": "boolean"
          },
          "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"
              }
            ]
          },
          "IDs": {
            "type": "text",
            "label": "IDs",
            "index": 3,
            "tooltip": "Filter by a comma separated list of ContactIDs. Allows you to retrieve a specific set of contacts in a single call."
          },
          "includeArchived": {
            "type": "toggle",
            "label": "Include Archived",
            "index": 4,
            "tooltip": "Contacts with a status of ARCHIVED will be included in the response. By default only contacts of status ACTIVE will be returned."
          },
          "order": {
            "type": "text",
            "label": "Order by an any element",
            "index": 5
          },
          "searchTerm": {
            "type": "text",
            "label": "Search Term",
            "index": 6,
            "tooltip": "Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields."
          },
          "summaryOnly": {
            "type": "toggle",
            "label": "Summary Only",
            "index": 7,
            "tooltip": "Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient."
          },
          "where": {
            "type": "text",
            "label": "Where",
            "index": 8,
            "tooltip": "Filter by an any element"
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "contacts",
      "source": {
        "url": "/component/appmixer/xero/accounting/ListContacts?outPort=contacts&ignoreAuth=true",
        "data": {
          "properties": {
            "generateOutputPortOptions": true
          },
          "messages": {
            "in/tenantId": "any",
            "in/outputType": "inputs/in/outputType"
          }
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
