Is there a way to watch for newly created orders?

Solved
ehb
Tourist
5 0 1

So I made a webapp that is linked to Shopify via admin REST api plugin.

Is there a way to watch for newly created orders? Basically, my webapp wants to access the newly created order information everytime a new order was created by the customer at checkout/paid. Is there a way to do this? Syncing information while avoiding duplicates, etc. and not accessing orders it accessed in the past.

0 Likes
policenauts1
Trailblazer
173 13 32

Yes, you can create a webhook for order/create.

olivert
Explorer
51 11 14

This is an accepted solution.

Yas 

You may have to get your app to create the webhook programatically as the customer won't know how to create Web hooks 

Otherwise you can jump in the notifications settings in admin and create it yourself.

List of webhooks:

You want order/create

https://shopify.dev/docs/admin-api/rest/reference/events/webhook

0 Likes