Compliance Webhooks

Compliance Webhooks

weebySagar
Shopify Partner
18 1 3

I ve created shopify remix app which collects store information, owner details not the customer data so I didnt add any scopes for customer and order . but three mandatory webhooks needs to be subscribed for Customer data request, Customer data erasure, Shop data erasure but I didnt collect any consumer data what to do in this case ?

Reply 1 (1)

PageFly-Amelia
Shopify Partner
576 162 232

This is Amelia from PageFly - Landing Page Builder App


Shopify requires all public apps to subscribe to the mandatory GDPR compliance webhooks. This ensures that your app can handle any potential data requests in compliance with privacy laws. Here’s what you can do:

  1. Implement the Mandatory Webhooks:

    • You need to set up endpoints for the following webhooks:
      • customers/data_request: Handles requests to view stored customer data.
      • customers/redact: Handles requests to delete customer data.
      • shop/redact: Handles requests to delete shop data.
  2. Handle the Webhook Requests:

    • Even if your app doesn’t store customer data, you should still respond to these webhooks. You can set up your endpoints to return a 200 OK status, indicating that the request was received and processed, even if there’s no data to act on.
    • Here’s a basic example of how you might handle these webhooks in your app:
      JavaScript
       
      app.post('/webhooks/customers/data_request', (req, res) => {
        // Process the data request
        res.status(200).send('Data request received');
      });
      
      app.post('/webhooks/customers/redact', (req, res) => {
        // Process the data erasure request
        res.status(200).send('Data erasure request received');
      });
      
      app.post('/webhooks/shop/redact', (req, res) => {
        // Process the shop data erasure request
        res.status(200).send('Shop data erasure request received');
      });
      AI-generated code. Review and use carefully.
  3. Register the Webhooks:

    • Make sure to register these webhooks in your Shopify Partner Dashboard or through your app’s configuration file.

 

Hope that my solution works for you.

Best regards,

Amelia | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 
➜ Weekly updated Shopify tutorials on YouTube 


All features are available from Free plan. Live Chat Support is available 24/7.