Orders event api not firing new order events

Solved
Souravv
Tourist
16 0 1

I am not able to use orders event api to monitor new orders placed in a store.

I am using the following api endpoint.

"GET /admin/api/2020-04/events.json?filter=Order&verb=placed"

getting empty response.

{events:{}}

Please suggest if I am doing something wrong.

0 Likes
SBD_
Shopify Staff
Shopify Staff
1044 141 183

Try confirmed instead of placed.

Also, depending on your use-case, a webhook might make more sense.

0 Likes
Souravv
Tourist
16 0 1

Thanks for the response.

If I use "confirmed" it's returning list of all the orders confirmed, not only the newly created one.

If I create a webhook, it will execute a piece of code or notify me when a new order will get created. But how will I get that newly created order details in real time?

Please help.

0 Likes
SBD_
Shopify Staff
Shopify Staff
1044 141 183

This is an accepted solution.

Hey @Souravv 

Newly created as in open orders? The Orders API will give you open orders by default.

Regarding the orders/create webhook, here's an example payload, which contains order information.

0 Likes
Souravv
Tourist
16 0 1

Thanks scottydont..

Webhooks are just the thing I need. It's working fine.