Shopify order webhooks
Shopify order webhooks
I looked into the different order webhooks and was wondering when they are triggered. This is what I figured out so far:
orders/updated
orders/create
orders/create
orders/paid
orders/fulfilled
orders/cancelled
Since orders/updated
is also fired whenever the other hooks are fired, it seems as if adding an update webhook would be good enough for keeping a local datastore synced to the shop data. However, I want to confirm that my understanding of those webhooks is correct, i.e. is it true that orders/updated
is always fired whenever an order changes in any way. and that the other webhooks are just aimed at more specific use cases?
orders/updated
orders/updated
1 Answer
1
I'd say for sake of keeping the code easier to understand it would be in your best interest to handle the appropriate webhooks just to keep the code easier to understand.
If all you're doing is tracking really general stuff, it's probably fine.
Also, on all state changes of an order the orders/updated
webhook is fired.
orders/updated
orders/update
it is not being triggered after an order creation.– nisevi
Feb 4 '16 at 20:09
orders/update
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Thanks! Good to know that the create/paid/fulfilled/cancelled hooks are just there to make things easier.
– Lars Grammel
Oct 5 '12 at 2:23