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.

Unable to test mandatory GDPR webhooks

Solved

Unable to test mandatory GDPR webhooks

diego_ezfy
Shopify Partner
2969 571 915

Problem
I'm trying to setup the GDPR webooks on my app but I'm not receiving anything when clicking on "View Customer Data" or "Erase Personal Data":

customer-privacy.jpg

Overview

1. I have the following endpoint in my app's API:

  router.post("/webhooks/customers/data_request", async (ctx, next) => {
    console.log("(test) webook POST request: ", ctx);
  });

 For testing purposes I have added only one.

2. I have added it to my app's dashboard:

data-request.jpg

3. Now when I try to request it via Customers > View Customer Data I don't receive anything. It works on Postman, though.

Can anyone tell me what I'm doing wrong here, please?
Am I not supposed to receive an immediate webhook when the user requests to view their data?
Does it apply exclusively for apps that have orders or customers added  to their scope as per mentioned in the documentation?

cust.jpg

If so, why all apps are required to have these webhooks' endpoints?

Thank you.

Accepted Solution (1)
Parcel_Intellig
Shopify Partner
107 1 52

This is an accepted solution.

Hi @diego_ezfy 

Confirming you should receive an immediate webhook, although my observations are sometimes webhooks don't fire immediately, as per the docos i don't think they are guaranteed to be delivered immediately or in order either.

Also, yes it appears only the apps which has access to the orders scope will have the request.

Thanks

Min

View solution in original post

Replies 3 (3)

diego_ezfy
Shopify Partner
2969 571 915

@HunkyBill @Parcel_Intellig @Joel-Reeds 

Gentlemen, would you happen to have any information about this? 

Thank you very much in advance!

Parcel_Intellig
Shopify Partner
107 1 52

This is an accepted solution.

Hi @diego_ezfy 

Confirming you should receive an immediate webhook, although my observations are sometimes webhooks don't fire immediately, as per the docos i don't think they are guaranteed to be delivered immediately or in order either.

Also, yes it appears only the apps which has access to the orders scope will have the request.

Thanks

Min

diego_ezfy
Shopify Partner
2969 571 915

Understood.

Thank you very much for your time and reply, @Parcel_Intellig , I appreciate it!