MailChimp 重新订阅已删除的成员导致 API 到 return 400 错误请求

MailChimp resubscribe a deleted member causes the API to return a 400 bad request

我在 MailChimp v3 API 上遇到了一个问题,当我尝试重新订阅成员时,它以状态 400 响应。以下是重现问题的步骤:

  1. 为一个成员订阅一个列表然后删除那个成员。
  2. 使用 API 通过端点 PUT /lists/{list_id}/members/{subscriber_hash} returns 状态重新订阅 400

    { 'type': 'http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/', 'title': 'Forgotten Email Not Subscribed', 'status': 400, 'detail': 'some@email.com was permanently deleted and cannot be re-imported. The contact must re-subscribe to get back on the list.' }

请求是:

{
  email_address: 'some@email.com',
  status_if_new: 'subscribed'
}

根据回复,解决方案是必须重新订阅 成员,我实际上正在尝试这样做。有人遇到过这个问题吗?

我认为你 Permanently delete a list member 之后不可能重新导入列表成员。

我联系了 MC 支持,这是他们给我的:

Due to the GDPR requirements for EU, we recently added a new way to delete contacts from your list. At this time, you can delete and archive (which is a soft delete and keeps that contact in your reports) or you can delete and remove (which is a hard delete and removes those contacts from all reporting / etc). Seeing this error message means you are trying to re-add someone that had been previously permanently deleted. If you intend to delete someone and re-add them via the API, you want to use the delete and archive option.

唯一令我困惑的是,我被要求重新订阅,而实际上这正是我正在做的事情,但支持团队还告诉我:

When seeing the message for 'resubscribe', this is referring to using a MailChimp signup form as opposed to using an API subscribe method. The MailChimp forms are the ultimate 'workaround' in which it can be used to resubscribe unsubscribers, cleaned addresses or permanently deleted addresses.

总而言之,代码没有任何问题,只是 MC 如何处理来自他们 API 的请求,我认为这不应该像错误消息所说的那样具有误导性。

好了,我希望这可以帮助那些一直处于同样痛苦的道路上的人,他们发现您的代码没有任何问题,而这只是他们 API 的工作方式。 ¯_(ツ)_/¯

re-import 列表成员并非不可能...只需进入您的 MailChimp 联系人并以这种方式添加成员。当然,您将无法在您的网站上使用 API/form,但如果 e-mail 需要在系统中,这是我找到的唯一方法。

您还可以获取现有联系人并将 his/her e-mail 更改为已永久删除的联系人。这实际上是我能够 re-import 删除烫发 e-mail 的方式,因为我还没有尝试添加新烫发,但我猜它可能同样有效。

存在重新订阅永久删除的联系人的方法。 Mailchimp 提供两种方式: 1)通过使用他们的表格重新订阅 2) 通过删除 Audience

您可以将整个受众整体删除,然后新建一个受众,重新导入。

这是来自 Mailchimp 知识库的信息:

如果您的所有联系人都被删除并需要重新导入,可以删除整个访问群体,然后创建新的访问群体,然后重新导入。这些步骤是删除存储联系人的受众容器,以便可以重新添加已删除的联系人。 仅当需要删除或已删除观众中的所有联系人时才建议这样做。删除整个访问群体将导致该访问群体的所有联系人丢失 activity。如果点击,打开,其他 activity 存在于受众中,这将丢失。

要永久删除整个受众:1️⃣导航到“受众”选项卡。 2️⃣点击“管理观众”和select“查看观众”。 3️⃣勾选听众名称旁边的方框,然后点击“删除”。

如果您在过去 7 天内向您的受众群体发送过邮件,则需要等待该时间段才能删除受众群体。如果您不想等待 7 天,唯一的其他选择是通过托管注册表单为这些订阅者注册。