Skip to content

Create Contact

Xero

Xero

Create Contact

Create a new contact in a Xero organisation. Only Name is required; all other fields are optional.

ActionAI Tool

Inputs

Name Type Required Description
xero_tenant_iddropdownRequiredThe Xero organisation (tenant) to target. Loaded dynamically from the connected account's authorised organisations.
nametextRequiredFull name of contact or organisation (max 255 chars). Must be unique.
first_nametextOptionalFirst name of the contact person (max 255 chars).
last_nametextOptionalLast name of the contact person (max 255 chars).
email_addresstextOptionalEmail address of the contact person (max 255 chars).
account_numbertextOptionalUser-defined account number (max 50 chars).
company_numbertextOptionalCompany registration number (max 50 chars).
tax_numbertextOptionalTax number (ABN, GST, VAT, or Tax ID depending on Xero region) (max 50 chars).
default_currencytextOptionalISO 4217 currency code for raising invoices against this contact (e.g. USD, NZD, GBP).

Outputs

Name Type Description
statusCodenumberHTTP status code from the Xero API response.
bodyobjectStructured Xero response envelope. The created 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.