• Venue and event management in the cloud

How Can We Help?


Contacts: Create or Update

In this article


Create or Update

POST /v2/contact/save

This API allows you to create or update a contact within your Priava account.

Parameter
ContactId     Long

The ID for the contact. Required only if updating a contact.

Firstname  (Required)  string

The contact’s first name.

Lastname (Required) string

The contact’s last name.

Email  (Required)  string

The contact’s primary email address.

EmailOther    string

Any other email for the contact.

Phone  (Required)  string

The contact’s phone number.

Mobile    string

The contact’s mobile number

PrimaryPhone    string

Specifies the primary phone number for the contact. The only accepted values are:

  1. P for the Phone number. 
  2. M for the Mobile/Cellular number.

The primary phone by default is Phone. 

personalInformationConsent    boolean

True / False – whether the contact has provided consent to store personal information.

Organisation    string

The name of the organisation the contact should be associated to. The organisation must exist in your Priava Account. 

Address    Object Array

An array of addresses (up to 3) for this contact. Passed in JSON format where; 

  1. AddressType = either POSTAL, BUSINESS or OTHER. 
  2. AddressLine1 = Line 1 of the address. 
  3. AddressLine2 = Line 2 of the address.
  4. AddressLine3 = Line 3 of the address.
  5. Suburb = The suburb for the address.
  6. State = The State or County.
  7. Postcode = The postal or zip code.
  8. Country = The country of the address.
  9. IsPrimary = True / False - Whether the address is the primary address of the contact. 

 

{   
"ContactId" : 1000", "Firstname" : "John", "Lastname" : "Smith", "Email": "john.smith@gmail.com", "Phone": "0229876567", "Mobile": "0418258987", "PrimaryPhone" : "M", "Organisation" : "ACME Limited", , "Address" :[
{
"AddressType" : "BUSINESS",     "AddressLine1" : "Macquarie Street",     "AddressLine2" : "50 Blue Street",     "AddressLine3" : "",     "Suburb" : "Parramatta",     "State" : "New South Wales",     "Postcode" : "2150",     "Country" : "Australia",
"IsPrimary" true }, { "AddressType" : "POSTAL",     "AddressLine1" : "New South Wales",     "Suburb" : "Sydney",     "State" : "New South Wales",     "Postcode" : "1001",     "Country" : "Australia",
"IsPrimary" false },
{
"AddressType" : "OTHER",
   "AddressLine1" : "Sydney",    
"Suburb" : "Sydney",
   "State" : "New South Wales",
   "Postcode" : "",
   "Country" : "Australia",
"IsPrimary" false
} ] }

Response:
{ 
    "result":{
"ContactId":100477986,
"success":true
}