• 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    string

The contact’s first name.

Lastname    string

The contact’s last name.

Email    string

The contact’s primary email address.

EmailOther    string

Any other email for the contact.

Phone    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. 


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. 


 

{   
"ContactId" : 1000", "Firstname" : "John", "Lastname" : "Smith", "Email": "john.smith@gmail.com", "Phone": "0229876567", "Mobile": "0418258987", "PrimaryPhone" : "M", "Organisation" : "ACME Limited", , "Address" :[
{
"AddressType" : "BUSINESS",     "AddressLine1" : "Suite 501",     "AddressLine2" : "50 Blue Street",     "AddressLine3" : "",
     "Suburb" : "Sydney",
     "State" : "NSW",
     "Postcode" : "2000",
     "Country" : "Australia" }, { "AddressType" : "POSTAL",     "AddressLine1" : "PO BOX 152",     "Suburb" : "Sydney",
     "State" : "NSW",     "Postcode" : "1001",     "Country" : "Australia" } ] }

Response:
{ 
    “success”: true,
    “result”: { 
              "Contact Id":1234, 
    
}