Get Contacts
Xero
Xero
Get Contacts
Retrieve contacts from a Xero organisation with the full documented filter/query parameter set, including paging, IDs, where, order, archive inclusion, summary mode, and modified-since filtering.
ActionAI Tool
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
xero_tenant_id | dropdown | Required | The Xero organisation (tenant) to target. Loaded dynamically from the connected account's authorised organisations. |
ids | text | Optional | Comma-separated list of ContactIDs to retrieve using Xero's optimised IDs query parameter (e.g. uuid1,uuid2). |
where | text | Optional | Xero where filter expression. Prefer optimised filters such as Name="ABC limited", EmailAddress="email@example.com", or AccountNumber="ABC-100". |
order | text | Optional | Order by expression, such as Name ASC, UpdatedDateUTC DESC, or ContactID ASC. |
page | number | Optional | Page number for paged results. Starts at 1. When omitted, Xero returns the default non-paged response shape. |
page_size | number | Optional | Number of contacts to return per page (max 250). Used together with page. |
include_archived | yes/no | Optional | Include contacts with ARCHIVED status. |
summary_only | yes/no | Optional | When true, returns a lightweight response excluding computation-heavy fields. |
search_term | text | Optional | Case-insensitive text search across Name, FirstName, LastName, ContactNumber, CompanyNumber, and EmailAddress. |
modified_after | date-time | Optional | Only return contacts created or modified since this UTC timestamp. Sent via the If-Modified-Since header. |
Outputs
| Name | Type | Description |
|---|---|---|
statusCode | number | HTTP status code from the Xero API response. |
body | object | Structured Xero response envelope. Access contacts via body.Contacts. |
Id | text | Xero correlation/request identifier for this API call. |
Status | text | Xero operation status, typically OK. |
ProviderName | text | Name of the Xero app/provider handling the request. |
DateTimeUTC | text | UTC timestamp of the response. |
Contacts | array of object | Contacts returned by Xero for the requested organisation. |
ContactID | text | Unique Xero identifier for the contact. |
ContactStatus | text | Current status of the contact, such as ACTIVE or ARCHIVED. |
Name | text | Full name of the contact or organisation. |
ContactNumber | text | External contact number / contact code. |
AccountNumber | text | User-defined account number. |
FirstName | text | First name of the contact person. |
LastName | text | Last name of the contact person. |
EmailAddress | text | Email address of the contact person. |
BankAccountDetails | text | Bank account number/details for the contact. |
CompanyNumber | text | Company registration number. |
TaxNumber | text | Regional tax number for the contact. |
AccountsReceivableTaxType | text | Default tax type used on AR invoices. |
AccountsPayableTaxType | text | Default tax type used on AP invoices. |
DefaultCurrency | text | Default currency for the contact. |
UpdatedDateUTC | text | UTC timestamp of the contact's last update. |
IsSupplier | yes/no | Whether the contact is treated as a supplier. |
IsCustomer | yes/no | Whether the contact is treated as a customer. |
HasAttachments | yes/no | Whether the contact has attachments in Xero. |
HasValidationErrors | yes/no | Whether Xero reported validation issues for the contact. |
Addresses | array of object | Address records attached to the contact. |
AddressType | text | Address type such as STREET or POBOX. |
AddressLine1 | text | Address line 1. |
AddressLine2 | text | Address line 2. |
AddressLine3 | text | Address line 3. |
AddressLine4 | text | Address line 4. |
City | text | City. |
Region | text | Region / state / province. |
PostalCode | text | Postal or ZIP code. |
Country | text | Country. |
AttentionTo | text | Attention-to field for the address. |
Phones | array of object | Phone records attached to the contact. |
PhoneType | text | Phone type such as DEFAULT, DDI, FAX, or MOBILE. |
PhoneNumber | text | Phone number. |
PhoneAreaCode | text | Phone area code. |
PhoneCountryCode | text | Phone country code. |
ContactPersons | array of object | Additional contact people linked to the contact. |
FirstName | text | First name of the contact person. |
LastName | text | Last name of the contact person. |
EmailAddress | text | Email address of the contact person. |
IncludeInEmails | yes/no | Whether the contact person is included in emails. |
ContactGroups | array of object | Contact groups that include this contact. Each entry is a contact group object. |
SalesTrackingCategories | array of object | Sales tracking categories assigned to the contact. |
PurchasesTrackingCategories | array of object | Purchase tracking categories assigned to the contact. |