Solved

What is the correct URL for GDPR webhooks endpoint in the partner dashboard?

StevenFitzAA
Shopify Partner
14 0 2

Hi,

I just want to confirm the regular process handling the GDPR compliance webhooks.

The remix app seems to set up the default code for handling the 3 GDPR webhooks in `webhooks.tsx` where it's mixed in with handling all your other webhooks etc.

 

export const action = async ({ request }: ActionFunctionArgs) => {
  const { topic, shop, session, admin, payload } = await authenticate.webhook(request);
  logger(`Webhook fired for ${topic} and shop ${shop}`);
  if (!admin) {
    // The admin context isn't returned if the webhook fired after a shop was uninstalled.
    throw new Response();
  }

  switch (topic) {
    case 'CUSTOMERS_DATA_REQUEST':
    case 'CUSTOMERS_REDACT':
    case 'SHOP_REDACT':

 

HMAC validation all seems to be set up with 

`const { topic, shop, session, admin, payload } = await authenticate.webhook(request);`
 
My question really is what url do I need to enter in the partner dashboard for the webhook end point for each of the 3 GDPR webhooks?
 
 
Does shopify send the graphql mutation with the topic name etc when each of these 3 is requested?

Or is there a need to actually create a remix route for each of the 3?
 
Thanks!
 

 

 

Accepted Solution (1)

LetterT
Shopify Partner
49 5 16

This is an accepted solution.

Shopify hasn't complained that all 3 endpoints are the same 😉

just check for the webhook topic

Don't be shy, click that like button!

View solution in original post

Reply 1 (1)

LetterT
Shopify Partner
49 5 16

This is an accepted solution.

Shopify hasn't complained that all 3 endpoints are the same 😉

just check for the webhook topic

Don't be shy, click that like button!