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_id | dropdown | Required | The Xero organisation (tenant) to target. Loaded dynamically from the connected account's authorised organisations. |
name | text | Required | Full name of contact or organisation (max 255 chars). Must be unique. |
first_name | text | Optional | First name of the contact person (max 255 chars). |
last_name | text | Optional | Last name of the contact person (max 255 chars). |
email_address | text | Optional | Email address of the contact person (max 255 chars). |
account_number | text | Optional | User-defined account number (max 50 chars). |
company_number | text | Optional | Company registration number (max 50 chars). |
tax_number | text | Optional | Tax number (ABN, GST, VAT, or Tax ID depending on Xero region) (max 50 chars). |
default_currency | text | Optional | ISO 4217 currency code for raising invoices against this contact (e.g. USD, NZD, GBP). |
Outputs
| Name | Type | Description |
|---|---|---|
statusCode | number | HTTP status code from the Xero API response. |
body | object | Structured Xero response envelope. The created contact is typically at body.Contacts[0]. |
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. |