Solved

How to add GDPR Webhooks in remix Shopify app

syedusama0786
Shopify Partner
38 2 10

Can anyone please tell me how to add GDPR Webhooks in Remix app?
I tried it but I couldn't get any solution in it...

Accepted Solution (1)
syedusama0786
Shopify Partner
38 2 10

This is an accepted solution.

This is how I create an endpoint and add my code to it in remix Shopify template.

syedusama0786_1-1701073561699.png


and this is how I add my endpoints in Partners account.

syedusama0786_2-1701073632653.png

 

View solution in original post

Replies 8 (8)

marktiddy
Shopify Partner
3 0 1

Hey @syedusama0786 - Did you ever work this out? I'm having the same issue and can't find any answers!

syedusama0786
Shopify Partner
38 2 10

yes i solve it by creating an end point in the routes folder.

Ronak3
Shopify Partner
14 1 3

The app must verify the authenticity of the request from Shopify. Expected HTTP 401 (Unauthorized), but got HTTP 404.

I got the above error, Can you please explain how you solved your problem? And if possible please share a code as well. Thank you

syedusama0786
Shopify Partner
38 2 10

This is an accepted solution.

This is how I create an endpoint and add my code to it in remix Shopify template.

syedusama0786_1-1701073561699.png


and this is how I add my endpoints in Partners account.

syedusama0786_2-1701073632653.png

 

Ronak3
Shopify Partner
14 1 3

Okay, Thank you @syedusama0786. No need to change the code in the "shopify.server.js" file, right? And write the same code for all files?

syedusama0786
Shopify Partner
38 2 10

yes

marktiddy
Shopify Partner
3 0 1

As of this pull request on the shopify-app-js repo a few days ago the default setup for Webhooks.jsx in the remix app now returns a 200 for authenticated requests and a 401 otherwise.

 

This means the default remix template now behaves as it should for these requests (I think!)

Khangthedev303
Shopify Partner
5 0 0