OPTOUT for PUT call not functioning

Highlighted
Occasional Advisor

OPTOUT for PUT call not functioning

Hi Constant Contact,

 

I'm trying to make a PUT call in the I/O docs and OPTOUT a contact, but the response body continues to say ACTIVE (even though the call succeeds). Any idea why this is happening? I've attached screenshots to show you what I've done, and please let me know if you need more info. Any help you can provide will help greatly.

 

Thanks,

Nick W

PUT call 1.PNG

PUT call 2.PNG

PUT call 3.PNG

PUT call 4.PNG

PUT call 5.PNG

1 REPLY 1
Highlighted
Honored Contributor

Re: OPTOUT for PUT call not functioning

Hello,

 

The reason that changing the OPTOUT status through a PUT request is not working is because that action is separated into a different API call. In order to change a contact to OPTOUT status, you need to make a DELETE request to https://api.constantcontact.com/v2/contacts/CONTACTID

 

If you continue to have any problems, please let us know!

 

Best Regards,

Elijah G.
API Support Engineer
Developer Portal

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

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