using api to move bounced email address into the do not mail list

Highlighted
Occasional Contributor

using api to move bounced email address into the do not mail list

Hi, does anyone know how to use the api to move bounced email addresses into the do not mail lsit

 

thanks

 

 

1 REPLY 1
Highlighted
CTCT Employee

Re: using api to move bounced email address into the do not mail list

Hey,

 

You can do so but it may not be the best practice to follow.  You would just do a get to your get to a specific campaign ID and append /events/bounces and that will return the bounces from that campaign in the xml.  You would then have to do a foreach to do a search for each contact and then do a get to that contacts contactID.  Once you receive the ID you can do a DELETE to it and it will move into the DNM list. 

Ryan Davis
Quality Engineer
Developer Portal

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

Visit Page

Constant Contact Would Like To Hear From You!

We want to hear from customers like you about your favorite features and how they have helped your business or organization. Tell us by answering a few questions in...

Read More
Featured