Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
Hello,
I'm developing an abandoned basket functionality for my integration of Shopify with Ecomail.
I'm using checkouts/create webhook event for this functionality and everything is working great with a registered and logged in customer (I receive the products in basket, email, name etc.) but when an unregistered customer leaves checkout process at payment screen, I receive checkouts/create webhook event without an email, even though the customer filled his email in the previous step of the process and checked the checkbox, that he wants to receive newsletters.
Any idea how to receive his email address in checkouts/create webhook event?
Thanks
Hi @Majklos
Thanks for your question about this - I'm seeing the same results in my testing. I'm going to need to do a little more digging to determine whether this is intentional, however it seems as though the email address should be included as it is present on the checkout itself. I'll let you know what I find!
Regards,
To learn more visit the Shopify Help Center or the Community Blog.
Hi Csam,
any news?
Thanks
Hi @Majklos
I've left this with our product team for further review. A temporary workaround might be to have your app poll the shop for abandoned checkouts, then match them up by id or token to get the email address. You can read more about the abandoned checkout API here: https://shopify.dev/api/admin-rest/2021-10/resources/abandoned-checkouts#[get]/admin/api/2021-10/che...
Regards,
To learn more visit the Shopify Help Center or the Community Blog.
Doing some more testing, I can confirm that the webhook is sent as soon as the cart transitions to the checkout page, before any information can be entered by the customer. If you subscribe to the checkout/update webhook as well, you should be able to collect any information entered by customers who are not already logged in.
Regards,
To learn more visit the Shopify Help Center or the Community Blog.