Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
We have a shopify app which is using "api_version": "2023-01", after completing the installation process and verifying that webhooks were setup correctly; When we created the order it didn' t came on to our system.
We checked the webhook delivery history and it shows no webhooks were called. What could be the possible reason for them to be not called at all?
Hi Avdevx,
There could be a few reasons why you're seeing this issue. Here are some things you can check and troubleshoot:
Incorrect Configuration: Ensure that the webhooks have been configured correctly, with the right topics and endpoint URLs, and are associated with the right events.
Endpoint Issues: Your endpoint URL may not be set up correctly or maybe it's not publicly accessible. Ensure that the endpoint is reachable and can accept POST requests.
SSL Certificate Issues: If your endpoint is secured with SSL, Shopify requires a valid and up-to-date SSL certificate. Self-signed certificates aren't accepted.
API Version Mismatch: Ensure that the API version used in your app matches the version used by the webhooks.
Delay in Webhook Delivery: Depending on the server load, there might be a delay in webhook delivery. It's not always instantaneous.
App Uninstalled: If the app was uninstalled and reinstalled, the webhooks might have been deleted and not re-created.
Order Creation Process: Depending on how the order is created, it may not trigger the orders/create
webhook. Make sure the order is created in a way that should trigger the webhook.
Try the above approaches and let us know if you're still having issues - hope this helps,
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
> verifying that webhooks were setup correctly
How did you verify that the webhooks were setup correctly? It would be helpful if posted the code you're using to install the webhook(s).
I was facing a similar issue where webhooks weren't triggering. I tried everything mentioned here, but nothing worked. Finally, I fixed it by removing the sqlite (in my case) and migrations folders and generating new migrations using following command:
npx prisma migrate dev -- --reset