Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Pulling my hair out with Webhooks!

Pulling my hair out with Webhooks!

Blaze-Team
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:
orders/create

orders/delete

draft_orders/create

draft_orders/update

draft_orders/delete

These are not:

/orders/update

/carts/create

/carts/update

/checkouts/create

/checkouts/update

 

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)

ShopifyDevSup
Shopify Staff
1453 238 525

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