Pulling my hair out with Webhooks!

Shopify Partner
1 0 0

We are having an issue where some webhooks are being created and others are returning a 422 error:

The below are working:





These are not:







This works:
{"webhook":{"format":"json","topic":"/orders/create","address":"https://blazemediaaws.co.uk/createshoporder" }}
This doesn't:
{"webhook":{"format":"json","topic":"/carts/update","address":"https://blazemediaaws.co.uk/updateshopcart" }}
practically identical sets, except for topic and address, but the address can be anything, so that just leaves the topic/trigger


Any ideas guys?


Reply 1 (1)

Shopify Staff
1421 232 486

Hi @Blaze-Team 👋


I'd recommend reviewing the event topic list here, some of your topics appear to be incorrectly formatted. They should not start with `/` and `/orders/update` should be `orders/updated` (with the d) instead.


Hope that helps!


Developer Support @ Shopify
- Was this reply helpful? Click Like to let us 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