The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

Duplicate Email address error - 409

Highlighted
New Member

Duplicate Email address error - 409

Hi, and I apologize if this has been covered.


I'm using a php form with the CC API to add new subscribers.


I have 4 lists, and the user can sign up for 1,2,3, or all 4 of them.


I have been able to add new emails to the multiple lists at one time.


Problem is, if they're signed up for 1, and then try to sign up for a different one, I get the duplicate (409) return code. I also seem to be getting 409's (sometimes) for emails that are NOT on any list.


Any idea of what's going on? I am accepting a return code of 201 as the only valid one. Am I missing something?


Thanks,


Roger


 

1 REPLY 1
Highlighted
Occasional Advisor

Updating Contact's Lists

Hello Roger,


The reason you are receiving the 409 error is due to the fact that the email address you are attempting to add is already in the system. In order to sign your contacts up for any additional lists or to change which lists they are on, you would need to update the existing contact. Please see the Contacts Collection for example XML formatting.


 


In regards to a contact not being on any list, if a contact had opted out of your newsletter, they would be placed on the 'do-not-mail' list, which would result in an Error 403. If you are receiving an Error 409 while attempting to create a contact that you feel is not on a list, I would recommend Searching for a Contact by Email Address to make sure.

Andrew T

Support Engineer, Constant Contact

Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More
Featured