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.

Returned XML is lying to me


Returned XML is lying to me



I went into your web site, selected a contact, and manually added it to the "Do Not Mail" list.  When I review the results I see exactly what I expect.  The email is now on the Do Not Mail list and the "Date Removed" reflects todays date.  Perfect.


Now, using your API I've requested a list of any contacts added to the "do-not-mail" list as of today's date





Here is what I'm getting back:  (I removed non essential lines)


<Contact xmlns="" id="">
   <Status>Do Not Mail</Status>


You notice that the "OptOutTime", which I'm assuming is the same date field being used on your web site, shows 2011-03-18.  I don't know where this date came from except maybe it's the date it was initially added (OptedIn) to Constant Contact.  I do see the "LastUpdateTime" field shows the correct date.  But this date can change by editing contact information "after" it had been opted out.  Needless to say this is a little confusing and I hesitate using the"LastUpdateTime" because going forward this "may" not always be the actual Opt Out date.


So why is the node titled "OptOutTime" showing me the wrong date?  It lies like a rug!  :smileywink:










Re: Returned XML is lying to me

Hey Chris,


I will look into this for you and see what I can find out for you.  I will let you know the results.


Ryan Davis
Quality Engineer
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