Update Contact Event

Triggered when a Contact has been updated on matteroTM

POST https://my.mattero.com.au/public/api/v1/webhooks


Parameters

Name Location Type Description
eventName Body string The value must be "UpdateContactEvent"
callbackUrl Body string The RESTful callback to be invoked when the event is trigger, this callback must accept a POST request.

Example data sent to the Webhook call back URL

{
  "entityId": "167-A",
  "entityType": "UpdateContactEvent",
  "currentValue": {
      "id": "167-A",
      "firstName": "Postman",
      "middleName": "P",
      "lastName": "Patty",
      "birthday": "1978-12-12",
      "company": "Oz Post",
      "jobTitle": "Postmaster",
      "title": "MS",
      "gender": "Female",
      "fullName": "Patty, Postman",
      "shortName": "Patty P",
      "website": "http://post.com.au",
      "notes": "some notes",
      "abn": "77616260256",
      "addresses": [
          {
              "regionCode": "AU",
              "administrativeArea": "WA",
              "locality": "Newman",
              "postalCode": "6753",
              "line1": "769 Evergreen Terrace",
              "line2": "",
              "formattedAddress": "769 Evergreen Terrace\nNEWMAN WA 6753"
          }
      ],
      "phones": [
          {
              "rfc3966": "+61-1800-123-456",
              "number": "1800 123 456"
          },
          {
              "rfc3966": "+61-7-3212-4578",
              "number": "(07) 3212 4578"
          }
      ],
      "emails": [
          "tim@lawmaster.com.au",
          "timmy@gmail.com.au"
      ],
      "customFields": {
          "brand": "Nissan",
          "color": "Red"
      }
  }
}

Sent object

Name Type Description
entityId string The unique identifier of the created contact.
entityType string "CreateContactEvent"
currentValue Company Contact / Person Contact All information of created contact

Company Contact object

Name Type Description
id string The unique identifier associated with a Contact.
acn string The Australian Company Number of the company contact.
fullName string The full name of the contact where the formatting is dependent on the type of the contact. A persons full name will have the surname first, followed by the given name, delimited by a comma. A company will just display the full name.
shortName string An abbreviation for the fullname of the contact.
website string The website url associated with the contact.
notes string Notes made against the associated contact.
abn string The Australian Business Number associated with the contact.
addresses Address[] A list of physical addresses associated with the contact.
phones Phone[] A list of phone numbers associated with the contact.
emails string[] A list of email addresses associated with the contact.
customFields Dictionary A list of custom fields and their associated values as defined in Mattero.

Person Contact object

Name Type Description
id string The unique identifier associated with a Contact.
firstName string The given name of the contact.
middleName string The middle name of the contact.
lastName string The surname of the contact.
birthday DateTime The date the contact was born.
company string The Company the contact works for or is associated with.
jobTitle string The job title for the company the associated contact works for.
title string The contacts title or pronoun.
gender string The Gender the contact identifies with, expected values are [Male | Female | Unknown]
fullName string The full name of the contact where the formatting is dependent on the type of the contact. A persons full name will have the surname first, followed by the given name, delimited by a comma. A company will just display the full name.
shortName string An abbreviation for the fullname of the contact.
website string The website url associated with the contact.
notes string Notes made against the associated contact.
abn string The Australian Business Number associated with the contact.
addresses Address[] A list of physical addresses associated with the contact.
phones Phone[] A list of phone numbers associated with the contact.
emails string[] A list of email addresses associated with the contact.
customFields Dictionary A list of custom fields and their associated values as defined in Mattero.

Phone object

Name Type Description
rfc3966 string Number in the RFC 3966 format. Represented as per INTERNATIONAL format, but with all spaces and other separating symbols replaced with a hyphen, and with any phone number extension appended with ";ext=", e.g. "+41-44-668-1800;ext=55".
number string Number for viewing in the UI. Represented as per NATIONAL format for the local numbers (so far Australian only) and as per INTERNATIONAL for foreign numbers, e.g. "+41 44 668 18 00 ext. 55"

Address object

Name Type Description
regionCode string Required. CLDR region code of the country/region of the address.
administrativeArea string Generally refers to the state or region of the address.
locality string Generally refers to the city/town portion of the address.
subLocality string Sublocality of the address. For example, this can be neighborhoods, boroughs, districts.
postalCode string Postal code of the address.
line1 string Line1 of unstructured address lines describing the lower levels of an address. The order of address lines should be "envelope order" for the country/region of the address.
line2 string Line2 of unstructured address lines describing the lower levels of an address.
formattedAddress string Address formatted according to the country rules.

Response

Code Summary Description
200 Ok The request was successful with a body in the response.
400 Bad Request The request failed validation checks.
401 Unauthorized Failed authentication check.
403 Forbidden Failed authorization check.