Creates a Person Contact in matteroTM using the provided JSON body.
POST https://my.mattero.com.au/public/api/v1/contacts/person
Name | Location | Type | Description |
---|---|---|---|
firstName | Body | string:required | The given name of the contact. |
middleName | Body | string:optional | The middle name of the contact. |
lastName | Body | string:required | The surname of the contact. |
birthday | Body | DateTime:optional | The date the contact was born. |
company | Body | string:optional | The Company the contact works for or is associated with. |
jobTitle | Body | string:optional | The job title for the company the associated contact works for. |
title | Body | string:optional | The contacts title or pronoun. |
gender | Body | string:optional | The Gender the contact identifies with, expected values are [Male | Female | Unknown] |
website | Body | string:optional | The website url associated with the contact. |
notes | Body | string:optional | Notes made against the associated contact. |
abn | Body | string:optional | The Australian Business Number associated with the contact. |
addresses | Body | Address[]:optional | A list of physical addresses associated with the contact. |
phones | Body | string[]:optional | A list of phone numbers associated with the contact. |
emails | Body | string[]:optional | A list of email addresses associated with the contact. |
customFields | Body | Dictionary:optional | A list of custom fields and their associated values as defined in Mattero. |
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. |
{
"regionCode": "AU",
"administrativeArea": "WA",
"locality": "Newman",
"subLocality": "",
"postalCode": "6753",
"line1": "742 Evergreen Terrace",
"line2": ""
}
{
"id": "6241-A",
"name": "Abernathy, Rosalia"
}
EntityReference object
Name | Type | Description |
---|---|---|
id | string | The unique identifier of the Contact. |
name | string | The name for the Contact. |
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. |