Menu
Update Or Create Contacts
Updates or creates one or more contacts in a Xero organisation
POST
/ContactsUse it in a workflow
- Add a step and choose the Xero connector.
- Pick the Update Or Create Contacts action (under Xero).
- Fill in the fields below, then reference the result from later steps as
{{updateOrCreateContacts.response.data}}.
Request
Query parameters
Headers
Request body
Enter the body as JSON in the step's Body field.
{
"pagination": {
"page": 0,
"pageSize": 0,
"pageCount": 0,
"itemCount": 0
},
"Warnings": [
{
"Message": "string"
}
],
"Contacts": [
{
"ContactID": "00000000-0000-0000-0000-000000000000",
"MergedToContactID": "00000000-0000-0000-0000-000000000000",
"ContactNumber": "string",
"AccountNumber": "string",
"ContactStatus": "ACTIVE",
"Name": "string",
"FirstName": "string",
"LastName": "string",
"CompanyNumber": "string",
"EmailAddress": "string",
"ContactPersons": [
{
"FirstName": "string",
"LastName": "string",
"EmailAddress": "string",
"IncludeInEmails": false
}
],
"BankAccountDetails": "string"
}
]
}
Response
Returns 200 with an object. Read it in later steps with {{updateOrCreateContacts.response.data.<field>}}.
{
"pagination": {
"page": 0,
"pageSize": 0,
"pageCount": 0,
"itemCount": 0
},
"Warnings": [
{
"Message": "string"
}
],
"Contacts": [
{
"ContactID": "00000000-0000-0000-0000-000000000000",
"MergedToContactID": "00000000-0000-0000-0000-000000000000",
"ContactNumber": "string",
"AccountNumber": "string",
"ContactStatus": "ACTIVE",
"Name": "string",
"FirstName": "string",
"LastName": "string",
"CompanyNumber": "string",
"EmailAddress": "string",
"ContactPersons": [
{
"FirstName": "string",
"LastName": "string",
"EmailAddress": "string",
"IncludeInEmails": false
}
],
"BankAccountDetails": "string"
}
]
}
Need more? See the Xero guide for connection setup and behaviour shared by every action.
Was this page helpful?