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.

Contact List id: '1' is not valid

Highlighted
New Member

Contact List id: '1' is not valid

I'm getting a Contact List is not valid error when trying to add a customer using REST. I integrated the ColdFusion sample code, then just updated the login info on application and mapped my fields to the addCustomer function. I have 5 lists created with IDs 1-5 (used the getLists function and they all returned). Thanks for the help!

 


Error 400: Contact List id: '1' is not valid


submitted XML

<?xml version="1.0" encoding="UTF-8"?> <entry xmlns="http://www.w3.org/2005/Atom"> <title type="text"> </title> <updated>2010-12-12T08:01:26:357Z</updated> <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>rxxx@xxx.com</EmailAddress> <EmailType/> <FirstName>rob</FirstName> <MiddleName/> <LastName>daniels</LastName> <JobTitle/> <CompanyName/> <WorkPhone>null</WorkPhone> <HomePhone>5555555555</HomePhone> <Addr1>1234 test st</Addr1> <Addr2></Addr2> <Addr3/> <City>tampa</City> <StateCode>FL</StateCode> <StateName/> <CountryCode/> <PostalCode>33626</PostalCode> <SubPostalCode/> <Note/> <CustomField1>299</CustomField1> <CustomField2/> <CustomField3/> <CustomField4/> <CustomField5/> <CustomField6/> <CustomField7/> <CustomField8/> <CustomField9/> <CustomField10/> <CustomField11/> <CustomField12/> <CustomField13/> <CustomField14/> <CustomField15/> <Note/> <OptInSource>ACTION_BY_CONTACT</OptInSource> <ContactLists><ContactList id="1"/></ContactLists> </Contact> </content> </entry>

Mike Roshaven
mikestraining@tampabay.rr.com
(813) 810-5857
1 REPLY 1
Highlighted
New Member

figured it out

I figured it out - i added the full id url instead of just the number

sorry for the noob question


<ContactLists><ContactList id="http://api.constantcontact.com/ws/customers/trainermike/lists/1"/></ContactLists> </Contact>

Mike Roshaven
mikestraining@tampabay.rr.com
(813) 810-5857
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