Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Shopify webhook not sending all information

Shopify webhook not sending all information

Amir_
Visitor
2 0 0

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

Replies 3 (3)

SBD_
Shopify Staff
1831 273 423

Hey Amir,

 

Example payloads can be seen here: https://shopify.dev/docs/admin-api/rest/reference/events/webhook?api[version]=2020-04

Scott | Developer Advocate @ Shopify 

Beatriz
Visitor
1 0 0

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

Amir_
Visitor
2 0 0

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