Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
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":
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:
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?
If so, why all apps are required to have these webhooks' endpoints?
Thank you.
Solved! Go to the solution
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
@HunkyBill @Parcel_Intellig @Joel-Reeds
Gentlemen, would you happen to have any information about this?
Thank you very much in advance!
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
Understood.
Thank you very much for your time and reply, @Parcel_Intellig , I appreciate it!