cancel
Showing results for 
Search instead for 
Did you mean: 
Constant Contact wants to help you succeed! We’re celebrating our professional service programs on the Constant Contact Community this month and you have a chance to try one of the services for free! Learn more.

Email doesn't exist, but adding it produces 409 Conflict response

New Member

Email doesn't exist, but adding it produces 409 Conflict response

I am working with the CC API and have it working fine for adding and updating contacts. An interesting scenario has emerged though for a specific email address that I am testing with. When I execute a request to search for the email address, I get a 500 Internal Server Error. Here is the log  ("MyUser" and "MyEmail" are substitutes for the actual values):














webdev.webserver.exe GET api.constantcontact.com https://api.constantcontact.com/ws/customers/MyUser/contacts?email=MyEmail text/plain 500 Internal Server Error

Your API states that this means the email does not exist in my client's lists.  However, when I try to add a new contact with the same email address, I get a 409 Conflict response:














webdev.webserver.exe POST api.constantcontact.com https://api.constantcontact.com/ws/customers/MyUser/contacts text/plain 409 Conflict

This is the XML  I am using for the insert:


<entry xmlns="http://www.w3.org/2005/Atom">

  <title type="text"></title>

  <updated>2008-07-23T14:21:06.407Z</updated>

  <author></author>

  <id>data:,none</id>

  <summary type="text">Contact</summary>

  <content type="application/vnd.ctct+xml">

    <Contact xmlns="http://ws.constantcontact.com/ns/1.0/">

      <EmailAddress>MyEmail</EmailAddress>

      <FirstName>John</FirstName>

      <LastName>Doe</LastName>

      <OptInSource>ACTION_BY_CONTACT</OptInSource>

      <ContactLists>

        <ContactList id="https://api.constantcontact.com/ws/customers/MyUser/lists/5" />

      </ContactLists>

    </Contact>

  </content>

</entry>


 


My code is working fine for searching, retrieving, inserting and updating contacts with any email other than the one in question. The problematic email belongs to me and might have been subscribed to the client's list in the past (I am not sure).  However, when I log in to my client's CC panel and search for it, it does not show up. What is the explanation for this scenario?


 


Thanks


 


Jeff Graham


 

1 REPLY 1
CTCT Employee

Re: 409 Error when contact does not already exist

Hello Jeff,



I would like to help you resolve this issue; however, there should not be any reason that you are getting a 409 error other than the contact already existing in the account. Could you let me know your username, as well as the email address that is causing this issue? I am going to look into this and find out why this is happening to you.



If you do not want to put this information on the forums, please feel free to email it to the Webservices Support Team.



Regards,

Benjamin Soder
NOC Analyst
Constant Contact