Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
Hello, I'm building a private app for shopify and I'm using webhooks. I register my webhooks threw the admin dashboard.
I'm using ngrok to test them on localhost. When I fire test webhook like "updated cart" everything works well, I can receive the test webhook but, when I'm trying to do some test with 'Order paid' then I don't receive any test webhook even if the dashboard says 'test webhook sent'.
The weird thing is that I don't receive any order related test webhook but it works when I test update cart. So I don't think that it is a problem that I caused.
I also tried to downgrade my API version from 2021-01 to 2020-10
Hello @VegaDev , welcome to the community!
I tried testing out the 'send test webhook' in my test store on both API versions (2020-10 and 2021-01) using ngrok, and was able to receive the test notification in both cases.
Are you sure that:
To learn more visit the Shopify Help Center or the Community Blog.
One other thing to verify is that your server is listening for POST requests, I'm using ExpressJS in my example:
app.post('/', (req, res) => {
console.log(express.json())
}
One other thing to verify is that your server is listening for POST requests not just get requests
app.post('/', (req, res) => {
console.log(express.json())
// your implementation here...
}