We developed an App to add some processing after order creation and cancellation. It works well on our Dev store, we can see both webhooks being triggered in partners.shopify.com.
But on our Prod store, only the orders/create webhook appears. We cancelled orders the same way we did on Dev, but nothing.
Both environments have the same empty configuration for webhooks in Settings => Notifications
Please provide the webhook subscription ID (found in partner dash) from the webhook you're not receiving, and we'll check the logs for more info.
@_JB , I think the issue is that the App was installed with only the orders/create. But now, the App's code was updated with the orders/cancellation webhook.
How can we re-register the defined webhooks in our store? I tried to rebuild the App's container, but no change...
To register the webhooks you'll need to make an API call using the token for each app. If this isn't happening automatically for existing installs but is working as expected for new installs, my guess is that the code you added is part of a function that only runs on install.
If your app creates offline access tokens, you can consider running a job from outside the app to make these API calls for each shop where a webhook isn't registered. This can be done using tokens the app has already stored.