Skip to content

Commit

Permalink
Remove the mandatory compliance webhook topics. These are only needed…
Browse files Browse the repository at this point in the history
… for public apps.
  • Loading branch information
byrichardpowell committed Oct 15, 2024
1 parent 8b74e29 commit 2f03fd0
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 59 deletions.
13 changes: 0 additions & 13 deletions app/routes/webhooks.customers.data_request.tsx

This file was deleted.

13 changes: 0 additions & 13 deletions app/routes/webhooks.customers.redact.tsx

This file was deleted.

13 changes: 0 additions & 13 deletions app/routes/webhooks.shop.redact.tsx

This file was deleted.

39 changes: 19 additions & 20 deletions shopify.app.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,29 @@ scopes = "write_products"
[webhooks]
api_version = "2024-07"

# Mandatory compliance topics for public apps
# Delete only if the app is not public
# See: https://shopify.dev/docs/apps/build/privacy-law-compliance
[[webhooks.subscriptions]]
uri = "/webhooks/customers/data_request"
compliance_topics = [ "customers/data_request"]

[[webhooks.subscriptions]]
uri = "/webhooks/customers/redact"
compliance_topics = [ "customers/redact" ]

[[webhooks.subscriptions]]
uri = "/webhooks/shop/redact"
compliance_topics = [ "shop/redact" ]

# When a shop uninstalls the app, delete the session for that shop
# Handled by: /app/routes/webhooks.app.uninstalled.tsx
[[webhooks.subscriptions]]
uri = "/webhooks/app/uninstalled"
topics = [ "app/uninstalled" ]
topics = ["app/uninstalled"]

# # For reference
# # Only receive webhooks for products with a price >= 10.00
# # See: https://shopify.dev/docs/apps/build/webhooks/customize/filters
# Webhooks can have filters
# Only receive webhooks for products with a price >= 10.00
# See: https://shopify.dev/docs/apps/build/webhooks/customize/filters
# [[webhooks.subscriptions]]
# topics = ["products/update"]
# uri = "https://example.com/webhooks"
# filter = "variants.price:>=10.00"

# Mandatory compliance topics for public apps only
# See: https://shopify.dev/docs/apps/build/privacy-law-compliance
# [[webhooks.subscriptions]]
# uri = "/webhooks/customers/data_request"
# compliance_topics = ["customers/data_request"]

# [[webhooks.subscriptions]]
# uri = "/webhooks/customers/redact"
# compliance_topics = ["customers/redact"]

# [[webhooks.subscriptions]]
# uri = "/webhooks/shop/redact"
# compliance_topics = ["shop/redact"]

0 comments on commit 2f03fd0

Please sign in to comment.