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.

CC Programming or Developer error

Highlighted
New Member

CC Programming or Developer error

Our web developer recently added a newsletter signup form on our website and integrated it with our active constant contact account. Problem we are having is, anyone who may have been on one of the older lists in our CC account are being rejected from signing up for one of our new lists offered on our website. I was udner the impression that people could be on multiple lists. So did the developer not code the sign up correctly which is causing these rejections? or will constant contact deny e-mail addresses for a new list if they are already on some other old list?

1 REPLY 1
Highlighted
Employee

Contacts are certainly

Contacts are certainly allowed to be on multiple lists in your account. When creating a contact, the contact will be subscribed to any lists that are in the <ContactLists> element of the XML used to create that contact. Once a contact is created, you always have the option to Add or Remove a Contact from a List by performing an http PUT, where the XML contains a <ContactList> element for each list the contact should be subscribed to. To see which lists a contact is currently subscribed to, you can obtain a contacts information by contact id. If you do not know the contacts id, you can always search for a contact by email address.


 


For the example below, the contact would be subscribed to the lists 1, 11, 12, and 14. You can retrieve a collection of your contact lists by performing an http get on https://api.constantcontact.com/ws/customers/{user-name}/lists.


 


<entry xmlns="http://www.w3.org/2005/Atom">
<id>http://api.constantcontact.com/ws/customers/joesflowers/contacts/101</id>
<title type="text">Contact: u86597@example.com</title>
<updated>2008-04-25T19:29:06.096Z</updated>
<author> </author>
<content type="application/vnd.ctct+xml">
<Contact xmlns="http://ws.constantcontact.com/ns/1.0/" id="http://api.constantcontact.
com/ws/customers/joesflowers/contacts/101">
<EmailAddress>u86597@example.com</EmailAddress>
<OptInSource>ACTION_BY_CUSTOMER</OptInSource>
<ContactLists>
<ContactList id="http://api.constantcontact.com/ws/customers/joesflowers/lists/1"></ContactList>
<ContactList id="http://api.constantcontact.com/ws/customers/joesflowers/lists/11"></ContactList>
<ContactList id="http://api.constantcontact.com/ws/customers/joesflowers/lists/12"></ContactList>
<ContactList id="http://api.constantcontact.com/ws/customers/joesflowers/lists/14"></ContactList>
</ContactLists>
</Contact>
</content>
</entry>

David J

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