Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An email address may not be changed once a customer is created #17

Open
Santiagoebizmarts opened this issue Jun 20, 2016 · 30 comments
Open
Assignees

Comments

@Santiagoebizmarts
Copy link
Contributor

No description provided.

@lduh lduh added the priority label Jun 22, 2016
@gonzaloebiz
Copy link
Collaborator

In magento a customer can change their email in any moment, we need to go deeply on this

@takmonster
Copy link

We could add support in the MailChimp API to update an existing customer's email address - that may be the ideal behavior here.

@gonzaloebiz
Copy link
Collaborator

That would be great.
What happens if we delete an existing customer, the associated orders are deleted too?

@takmonster
Copy link

takmonster commented Jun 24, 2016

Not at the moment, no. Is that what we would want?

@gonzaloebiz
Copy link
Collaborator

No. The best approach is that the API allows to change the customer email
Imagine this situation. The customer change the email, we delete the customer via API (the orders remains in mailchimp linked to a this customer id), then we add a new customer with the changed email, but with the same customer id that the old one. That works in your end? or we can't add a customer with the same id that one deleted customer?

@takmonster
Copy link

Cool, I agree - allowing the update of an existing Customer's email address via the API would be the ideal solution.

For your questions, we DO allow adding a customer with the same id of a DELETED customer - but I'm not confident that the existing orders will be re-associated properly. I can test a bit and let you know on Monday.

@gonzaloebiz
Copy link
Collaborator

Ok, thanks.

@centerax
Copy link
Collaborator

Assigning to @takzilla , I think we need the API modified, right?

@takmonster
Copy link

takmonster commented Jul 1, 2016

Yep yep - will be working on this in our upcoming release, which is expected to be live around the 20th.

We had to bump this so we hope to have it ready early August.

@twoonesixdigital
Copy link

Hi guys. I was curious how things are progressing with this issue. It just became extremely relevant to us with our Miva/MailChimp integration and we're kind of on hold pending its resolution. Can we expect that the API is going to be modified so that PUT requests to the customer resource containing a different email address will result in the customer record being updated rather than the error response we're currently getting? Thank you kindly!

@takmonster
Copy link

Hey there,

MailChimp dev here. We haven't been able to build this out yet on the MailChimp-side, so this issue is still unresolved and in progress. Apologies for the wait - I'll be sure to post an update once it's become a feature of our API.

@takmonster
Copy link

We're going to re-visit this in the coming weeks and I'll post our progress. Going to bump this up in priority as it's beginning to cause some headaches for other platform integrations as well.

@WinstonN
Copy link
Contributor

Bump!

@brendanronan
Copy link

Bump! Any updates @takzilla ?

@szewczykmira
Copy link

Bump! @takzilla any updates?

@takmonster
Copy link

Sorry for the late response! No updates unfortunately - we don't have any concrete plans in the short-term to complete work on this. If that changes I'll be sure to update this thread.

@danharper83
Copy link

@Santiagoebizmarts what is the workaround if a customer has changed their email address? I have lots of errors but can't work out how to reset or remove the user to prevent the errors. The error log doesn't say which user it is.

@Santiagoebizmarts
Copy link
Contributor Author

Santiagoebizmarts commented Apr 5, 2018

@danharper83
For customers who are subscribed we remove the subscriber and create a new one.
Unfortunately for the customer object used in Automations this is not done because you would loose all the history you have on that customer. Unfortunately there is not much we can do with this in the extension side of things.

Regards.

@danharper83
Copy link

@Santiagoebizmarts the error log doesn't tell me which user it is that is failing.

@Santiagoebizmarts
Copy link
Contributor Author

Hello,

This should only affect those particular cases but the rest should work normally. I am not sure what you mean with your last comment.

Regards.

@danharper83
Copy link

@Santiagoebizmarts since I first started receiving this error message none of my other users have been added to the list, that was back at the start of March. There are around 60 users that haven't been added.

@WinstonN
Copy link
Contributor

WinstonN commented Apr 6, 2018

This commit has been tested and works & will fix this.
If the user changes his/her email address on the magento (on front or by admin) it will unsubscribe the original email and subscribe the new email.
#520

@seansan
Copy link
Contributor

seansan commented Apr 7, 2018

ALSO:
mailchimp just replied and said email can be updated right here (and this is the advised way)

https://developer.mailchimp.com/documentation/mailchimp/reference/lists/members/#edit-patch_lists_list_id_members_subscriber_hash

Use PATCH command and change email

@Santiagoebizmarts
Copy link
Contributor Author

Santiagoebizmarts commented Apr 9, 2018

@seansan

You are right about subscriber emails, unfortunately for customers this is not possible yet.

Regards.

@seansan
Copy link
Contributor

seansan commented Apr 9, 2018

got it!

and it is not possible to use a LIST command here? (maybe even as a workaround)

@Santiagoebizmarts
Copy link
Contributor Author

@seansan Unfortunately it is not. I just tested if the change in the subscriber endpoint affected the customer and it doesn't.

@seansan
Copy link
Contributor

seansan commented Apr 11, 2018

@Santiagoebizmarts

MC keeps confirming that is IS possible. When I said it is impossible they repsonded with this answer

"Make a GET call to the /lists/{list_id}/members endpoint. After making that call, you can get the subscriber_hash value for the list member you want to update and use it with the PATCH call to change the target subscribers email address. "

@brendanronan
Copy link

@seansan the specific issue we're referring to applies to customers, not list members. They are two different entities.

@tompicca
Copy link

tompicca commented Jul 15, 2018

At today, once a customer is created with a given email, there's no way to change its email. Also, is not possible to delete the customer and create a new one with an updated email because customer may only be deleted if no orders are associated with that customer. This is a serious lack for our ecommerce. Someone knows a workaround for this? @takzilla , what is the official procedure according to MC?

@pelargir
Copy link

pelargir commented Apr 2, 2019

+1, we are having the same problem. Customers can and do change their email addresses in our system, and that change needs to be reflected in Mailchimp. Sending a PATCH to update the list member that's associated with the customer results in this error:

This member's status is "transactional." You can only update email addresses for members with a status of "subscribed."

So we're stuck at the moment. No way to update a customer's email address without first deleting all of their orders, then deleting the customer and re-creating ALL of their orders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests