Guerriky Guerriky - 4 months ago 54
PHP Question

Mailchimp API v3.0 change subscriber email

I'd like to know if the Mailchimp API v3.0 allows for the EMAIL address to be changed for a subscriber.

This is what I have:

$email = strtolower(trim($oldEmail));
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
return false;
$emailHash = md5($email);

$result = $this->patch('/lists/'.$listid.'/members/'.$emailHash,
'email_address' => $oldEmail,
'merge_fields' => array("EMAIL" => $newEmail),
'status' => "subscribed",

And it doesn't work.
Mailchimp returns the usual GET MEMBER response, and shows that nothing has been changed.

Any idea?

Thank you,


No, MailChimp doesn't really allow email addresses to be changed. You can do it in the web app, but almost all stats and activity information don't carry over. API v3.0 doesn't support changing email addresses at all for that reason. What you want to do is unsubscribe or delete the old address and then re-create the new one.