v1/Customer/CreateContact

 

API parameters
Required

 

Name In Type Description Default
Bearer Token Authorization string Authentication token.
Role Json Data string Position in Company,Required Only in Corporate. Director & Shareholder,Director,Shareholder
Title Json Data string Title of the contact. Sr,Dr,Miss,Mr,Mr & Miss,Mr & Mrs
FirstName Json Data string First Name of the contact.
LastName Json Data string Last Name of the contact.
DateOfBirth Json Data string Date Of Birth of the contact.
Nationality Json Data string Nationality of the contact.
Email Json Data string Email of the contact.
ISDCode Json Data string ISD Code of the contact.
MobileNumber Json Data string Mobile Number of the contact.
PrimaryContact Json Data string Is Conatct Primary or not true,false
AddressLine1 Json Data string Address of the contact.
City Json Data string City of the contact.
PostCode Json Data string Post Code of the contact .
Country Json Data string Country of the contact.
Status Json Data string Contact status. Active,Inactive

 

Optional

 

Name In Type Description
CustomerId Parameter string CustomerId.

 

Request

 

{   
  "ContactDetails": [{         
  "Role": "Director",
  "Title": "Mr",
  "FirstName": "Test",
  "LastName": "Test1",
  "DateOfBirth": "1980-07-09",
  "Nationality": "IN",
  "Email": "Test@mailinator.com",
  "ISDCode": "91",
  "MobileNumber": "9898608827",
  "PrimaryContact": "true",
  "AddressDetails": {
  "AddressLine1": "TestAddress",
  "City": "TestCity",
  "PostCode": "HA298UE",
  "Country": "GB"
   }
 }]     
 
}

 

Response

 

{

     "ContactId": "B48D3556-E080-4351-8002-",
     "ContactStatus": "Inactive",
     "ActionRequired": "Upload document"
 
}

 

Error Codes

 

HTTP Status Code Description
401 Invalid credentials Invalid credentials
400 Invalid JSON body Invalid JSON body
400 Role required Role required
404 Invalid role Invalid role
400 Title required Title required
404 Invalid title Invalid title
400 First name required First name required
400 Last name required Last name required
400 Date Of birth required Date Of birth required
400 Date Of birth should be in yyyy/mm/dd Date Of birth should be in yyyy/mm/dd
400 Contact age should be greater than 18 years Contact age should be greater than 18 years
400 Nationality required Nationality required
404 Invalid nationality Invalid nationality
400 Email required Email required
404 Invalid email Invalid email
400 ISD code required ISD code required
404 Invalid ISD code Invalid ISD code
400 Mobile number required Mobile number required
400 Primary contact required Primary contact required
404 Invalid primary contact type Invalid primary contact type
400 Address details required Address details required
400 Addressline1 required Addressline1 required
400 City required City required
400 Post code required Post code required
400 Country required Country required
404 Invalid country Invalid country