cancel
Showing results for 
Search instead for 
Did you mean: 

Opting contacts back in

Opting contacts back in

Should be easy; I read the documentation

 

- API is PUT with /contact/contactid

 

- Action_by is ACTION_BY_VISITOR

 

I think only two additonal field are required to opt the contact back in; the list ID, and the email. But no luck!

 

An example json string is:

{
"email_addresses": [{"email_address": "test@test.com"}],
"lists": [{"id":"1814554569"}]
}

 

I get a 200ok response, but the status is still OPTOUT. What did I do wrong?

1 REPLY 1
Moderator

Re: Opting contacts back in

Hello,

 

Thank you for reaching out to Constant Contact's API Support.

 

The only thing I could see is in your endpoint and that was missing an s. It should be /contacts/{contactID}. I assume that was just a typo when writing your post.

 

Here is the code I used to submit and it worked fine for me. This is basically the exact same thing you submitted since the order and line spacing does not matter. At this point I suggest you email us at webservices@constantcontact.com so you can include some private details so we can take a closer look. Please include your API key, the email address, contact ID, and the list ID.

 

{
        "lists": [
        {
            "id": "111111"
        }
    ],
    "email_addresses": [
        {
            "email_address": "test@test.com"
        }
    ]
}

Regards,
Jimmy D.
Tier II API Support Engineer