so I started to play with webhooks for public app I'm building but one concept is really strange to me. The question is as in the title - why do we need to register webhook for each shop rather than for our public app?
To my undestanding, the best time to register webhooks is right after successful oauth flow. There can be multiple webhook registration requests, say 10. But what if registration of one of them fails and app is dependant on it?
Wouldn't it be better to register all webhooks on app level (partners dashboard) the same way mandatory GDPR webhooks are? Then webhook event would be triggered from shop where event happened and has the app installed.
I really must be missing something obvious here. Anyone care to clarify, please?
Thanks for the feedback! There are some internal reasons for this as well as providing flexibility to developers that may have/need a variety of destinations for their webhooks based on different shops. We're always looking at ways to simplify the process while still offering flexibility so I'll share your feedback with some others.