Request for webhook support for storefront password protection changes

We’re currently looking for a reliable way to detect when a merchant enables or disables Online Store password protection.

At the moment, we can retrieve the current state through the Admin GraphQL API via onlineStore.passwordProtection.enabled, but we could not find a dedicated webhook topic for changes to this setting.

Would it be possible to either:

  • Have password protection changes trigger the existing SHOP_UPDATE webhook, if they do not already, or
  • Add a dedicated webhook/event for storefront password protection changes?

For our use case, this would allow Consentmo to react immediately when the storefront becomes password protected or publicly accessible, rather than periodically polling the API.

Could you also confirm whether changing the password protection setting currently triggers SHOP_UPDATE?

Hey @Jonida_Mersinllari, thanks for reaching out. I checked this on our end, and changing storefront password protection does trigger the SHOP_UPDATE webhook. The payload includes password_enabled, which you can compare against the previously stored value.

The caveat is that SHOP_UPDATE fires for every shop update, so it may be noisy. If it doesn’t work reliably for your use case, just let me know and I can definitely put through a feature request for a dedicated webhook.