Skip to content

Update Contact

Xero

Xero

Update Contact

Update an existing contact in a Xero organisation by ContactID. Only include fields you want to change — omitted fields retain their existing values.

ActionAI Tool

Inputs

Name Type Required Description
xero_tenant_iddropdownRequiredThe Xero organisation (tenant) to target. Loaded dynamically from the connected account's authorised organisations.
contact_idtextRequiredXero ContactID of the contact to update (UUID format, e.g. 297c2dc5-cc47-4afd-8ec8-74990b8761e9).
nametextOptionalUpdated full name of contact or organisation (max 255 chars).
first_nametextOptionalUpdated first name of the contact person.
last_nametextOptionalUpdated last name of the contact person.
email_addresstextOptionalUpdated email address of the contact person.
account_numbertextOptionalUpdated user-defined account number (max 50 chars).
company_numbertextOptionalUpdated company registration number (max 50 chars).
tax_numbertextOptionalUpdated tax number (ABN, GST, VAT, or Tax ID depending on Xero region).
contact_statusselectOptionalSet to ARCHIVED to archive this contact. (options: Active, Archived)
default_currencytextOptionalUpdated ISO 4217 currency code (e.g. USD, NZD, GBP).

Outputs

Name Type Description
statusCodenumberHTTP status code from the Xero API response.
bodyobjectStructured Xero response envelope. The updated contact is typically at body.Contacts[0].
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.