getbuzzr / buzzr-api

0 stars 1 forks source link

Trigger abandoned cart email by hitting Mailchimp marketing API #252

Open blau2 opened 3 years ago

blau2 commented 3 years ago

Description

To re-engage potential customers who have added items to checkout but have abandoned their cart, we should send a reminder email to attempt to get them to finish their purchase.

A Mailchimp workflow has been setup to send an abandoned cart email when the following endpoint is hit:

curl -X POST https://us1.api.mailchimp.com/3.0/lists/928f780a78/members/{md5_hash_of_email_address}/events \
--user "anystring:{mailchimp_api_key}" \
-d '{"name":"abandoned_cart"}'

This endpoint should be hit if a user has started the checkout process (order status checking_out) but has not completed it after a set amount of time (ideally 1 hour for best conversion rate, but it looks like our CRON deletes the order after 30 minutes). The user then receives an email informing them that they still have items in their cart with a deeplink to take them back into the app.

Acceptance Criteria

dzlau commented 3 years ago

I actually think this is better as a push notification