You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Problem with REST API while creating contacts

Accepted answer
54
Views
7
Comments
edited Mar 1, 2017 7:44AM in Integrations and APIs 7 comments

Content

Hi,

I am creating contacts from REST API with first name, last name and email address. Considering a happy path, I could create contacts with different values but when i hit the API again, I could create contacts with same email address that appends "001" and "002" at the end of the email address and so on in a consecutive manner. How can i stop the API to create a contact with same email?

 

Version

Nov 2016

Code Snippet

             REST API: https://mysite.custhelp.com/services/rest/connect/v1.3/contacts

{
    "name":
    {
        "first" : "First Name demo",
        "last" : "Last Name demo"
    },
"emails" :
    {
        "addressType" :
        {
            "lookupName": "Email - Primary"
        },
   

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!