No. 1: As a newsletter subscriber, I want to unsubscribe via the link in a Mailchimp mail in the footer, as it is easier than logging into the shop account of the given vendor.
No. 2: As the same customer, I may want to subscribe to the newsletter again within Sylius shop, as I changed my mind.
Problem
unsubscribing via the Mailchimp link in the footer and subscribing again via Sylius throws an error
Mailchimp error: {"message":"Response status is 400 instead of subscribed.","response":{"title":"Member In Compliance State","status":400,"detail":"123@test.net is in a compliance state due to unsubscribe, bounce, or compliance review and cannot be subscribed."
User Story
No. 1: As a newsletter subscriber, I want to unsubscribe via the link in a Mailchimp mail in the footer, as it is easier than logging into the shop account of the given vendor.
No. 2: As the same customer, I may want to subscribe to the newsletter again within Sylius shop, as I changed my mind.
Problem
unsubscribing via the Mailchimp link in the footer and subscribing again via Sylius throws an error
Mailchimp error: {"message":"Response status is 400 instead of subscribed.","response":{"title":"Member In Compliance State","status":400,"detail":"123@test.net is in a compliance state due to unsubscribe, bounce, or compliance review and cannot be subscribed."
Suggested solution
this Stackoverflow thread suggests to first check and change the user status on Mailchimp before attempting to change the user's subscription state https://stackoverflow.com/questions/42990336/mailchimp-how-can-i-tell-if-a-user-has-unsubscribed-themselves