Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
Hello everyone,
I have been using the API to create Blogs and other entities from localhost. I'm trying to create a webhook but no matter the type of webhook. i'm getting "The remote server returned an error: (400) Bad Request". I'm not using a test or locahost address when I try to create the webhook but it still gives me "BadRequest"
I have even tried to post the example api JSON. Any ideas?
{ "webhook": { "topic": "products/creation", "address": "http://whatever.hostname.com";, "format": "json" } }
What was your API client ID? Also, did you request the correct permissions when the application was installed (only relevant if not a private app)?
Chris | 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 the Shopify Help Center or the Shopify Blog
Webhooks created via API are not displayed. This is to prevent merchants from possibly sabotaging your app by mistake.
Getting the list of webhooks only shows you your webhooks. Again to prevent apps/merchants from sabotaging 🙂
Chris | 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 the Shopify Help Center or the Shopify Blog
So you'd pull in events - 1 request
You'd pull in each item relevant to your events - n requests
You hit your API limit and spend eternity catching up
Webhooks are asynchronous and allow shopify to send you the data as it happens. Your application spends no time "catching up" which means you are able to handle the data whenever it's most relevant. Also an added benefit is your system doesn't get completely rocked and useless because it's 5 hours out of date and your customer needs the data now.
Chris | 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 the Shopify Help Center or the Shopify Blog