Guerriky Guerriky - 1 year ago 102
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,

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download