Solved

Is orders/create webhook needed if we are subscribed to orders/update?

mmccall10
Visitor
2 0 0

When an order is placed both orders/create and orders/update webhooks gets sent. It appears there is no need to subscribe to both if you are subscribed to orders/update. Is there a case where orders/create would fire and orders/update will not? The payload for both webhooks is exactly the same at the point of creation.

Accepted Solution (1)

hassain
Shopify Staff (Retired)
624 104 187

This is an accepted solution.

Hey @mmccall10 

 

There are subtle differences between the orders/create webhook payload on order creation and the orders/update webhook on order creation, but in general these two payload will be almost identical.

 

From my testing, there are no cases where orders/create would fire and orders/update will not. However if you are only interested in order creation and do not want to be updated every time an order is fulfilled or refunded or updated, it might make more sense to only subscribe to orders/create

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Replies 2 (2)

hassain
Shopify Staff (Retired)
624 104 187

This is an accepted solution.

Hey @mmccall10 

 

There are subtle differences between the orders/create webhook payload on order creation and the orders/update webhook on order creation, but in general these two payload will be almost identical.

 

From my testing, there are no cases where orders/create would fire and orders/update will not. However if you are only interested in order creation and do not want to be updated every time an order is fulfilled or refunded or updated, it might make more sense to only subscribe to orders/create

To learn more visit the Shopify Help Center or the Community Blog.

mmccall10
Visitor
2 0 0

They get handled by the same idempotent handler. I am interested in both create and update. So it sounds like orders/update is the way to go. Thank you for your response.