Skip to content

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_iddropdownRequiredThe Xero organisation (tenant) to target. Loaded dynamically from the connected account's authorised organisations.
idstextOptionalComma-separated list of ContactIDs to retrieve using Xero's optimised IDs query parameter (e.g. uuid1,uuid2).
wheretextOptionalXero where filter expression. Prefer optimised filters such as Name="ABC limited", EmailAddress="email@example.com", or AccountNumber="ABC-100".
ordertextOptionalOrder by expression, such as Name ASC, UpdatedDateUTC DESC, or ContactID ASC.
pagenumberOptionalPage number for paged results. Starts at 1. When omitted, Xero returns the default non-paged response shape.
page_sizenumberOptionalNumber of contacts to return per page (max 250). Used together with page.
include_archivedyes/noOptionalInclude contacts with ARCHIVED status.
summary_onlyyes/noOptionalWhen true, returns a lightweight response excluding computation-heavy fields.
search_termtextOptionalCase-insensitive text search across Name, FirstName, LastName, ContactNumber, CompanyNumber, and EmailAddress.
modified_afterdate-timeOptionalOnly return contacts created or modified since this UTC timestamp. Sent via the If-Modified-Since header.

Outputs

Name Type Description
statusCodenumberHTTP status code from the Xero API response.
bodyobjectStructured Xero response envelope. Access contacts via body.Contacts.
IdtextXero correlation/request identifier for this API call.
StatustextXero operation status, typically OK.
ProviderNametextName of the Xero app/provider handling the request.
DateTimeUTCtextUTC timestamp of the response.
Contactsarray of objectContacts returned by Xero for the requested organisation.
ContactIDtextUnique Xero identifier for the contact.
ContactStatustextCurrent status of the contact, such as ACTIVE or ARCHIVED.
NametextFull name of the contact or organisation.
ContactNumbertextExternal contact number / contact code.
AccountNumbertextUser-defined account number.
FirstNametextFirst name of the contact person.
LastNametextLast name of the contact person.
EmailAddresstextEmail address of the contact person.
BankAccountDetailstextBank account number/details for the contact.
CompanyNumbertextCompany registration number.
TaxNumbertextRegional tax number for the contact.
AccountsReceivableTaxTypetextDefault tax type used on AR invoices.
AccountsPayableTaxTypetextDefault tax type used on AP invoices.
DefaultCurrencytextDefault currency for the contact.
UpdatedDateUTCtextUTC timestamp of the contact's last update.
IsSupplieryes/noWhether the contact is treated as a supplier.
IsCustomeryes/noWhether the contact is treated as a customer.
HasAttachmentsyes/noWhether the contact has attachments in Xero.
HasValidationErrorsyes/noWhether Xero reported validation issues for the contact.
Addressesarray of objectAddress records attached to the contact.
AddressTypetextAddress type such as STREET or POBOX.
AddressLine1textAddress line 1.
AddressLine2textAddress line 2.
AddressLine3textAddress line 3.
AddressLine4textAddress line 4.
CitytextCity.
RegiontextRegion / state / province.
PostalCodetextPostal or ZIP code.
CountrytextCountry.
AttentionTotextAttention-to field for the address.
Phonesarray of objectPhone records attached to the contact.
PhoneTypetextPhone type such as DEFAULT, DDI, FAX, or MOBILE.
PhoneNumbertextPhone number.
PhoneAreaCodetextPhone area code.
PhoneCountryCodetextPhone country code.
ContactPersonsarray of objectAdditional contact people linked to the contact.
FirstNametextFirst name of the contact person.
LastNametextLast name of the contact person.
EmailAddresstextEmail address of the contact person.
IncludeInEmailsyes/noWhether the contact person is included in emails.
ContactGroupsarray of objectContact groups that include this contact. Each entry is a contact group object.
SalesTrackingCategoriesarray of objectSales tracking categories assigned to the contact.
PurchasesTrackingCategoriesarray of objectPurchase tracking categories assigned to the contact.