Development discussions around Shopify APIs
Hi,
We currently have a Shopify webhook setup with Ometria, our marketing platform. The webhook sends events for customer creation, customer update and customer deletion.
There's a promotion running on our site where any new subscriber will receive a 10% discount code. The code is administered by Ometria, however it relies on the data sent by Shopify on customer creation.
We've had reports of some customers not receiving their discount. Ometria have looked into this and have claimed that they are not receiving this data. Is there a way of being able to check the payloads for these orders or the JSON files to see what information has been sent to Ometria?
The users have been created in Ometria, however they do not have the Shopify tag we have added.
Thanks,
Amir
Hey Amir,
Example payloads can be seen here: https://shopify.dev/docs/admin-api/rest/reference/events/webhook?api[version]=2020-04
Scott | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hi Scott,
Thank you for pointing us in the right direction.
After having looked into the issue, it looks like the webhook method works for our other clients. Therefore, the problem is likely to be linked to how the webhook is set up in this specific case.
I will keep you posted in case we need further assistance.
Regards,
Beatriz - Ometria Team
Hi,
After some discussions with Ometria, we have found that for some customer creation entries we are sending two payloads instead of one.
The first payload will come through with the data Ometria requires, however a second payload can come through seconds later which overwrites the first payload. The contents of the second payload is different to the first and does not contain the data Ometria require to fire off a Welcome email.
Does anyone know why two payloads would send to Ometria and how can we prevent this from happening?
Thanks,
Amir
User | RANK |
---|---|
49 | |
14 | |
9 | |
7 | |
5 |
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023