orders/paid webhook also firing orders/updated & orders/cancelled also firing orders/updated

DropVessel
Shopify Partner
3 0 2

Hello,

We have the store subscribed to 3 different webhooks

orders/paid, orders/updated, orders/cancelled

When we have a new order that is paid we get a webhook request. Works great.

We added orders/updated hook on this store and now this hook also is firing on the new order that was just generated.... is this correct?

Why is orders/updated firing on orders/paid hook?

When we cancel an order the cancel request fires but its also firing the orders/updated hook?

Why is the orders/updated firing on orders/cancelled hook?

Any help would be greatly appreciated. I'm trying to understand if we are doing something wrong or is this is the intended way the hooks have been implemented by Shopify.

Thank you,
J

Andy_Lower
Shopify Partner
45 0 7

Hi J,

We had the same issue.

Whilst I can't help with why they do this, we placed all of the order updates/cancellations/paid webhooks into a queue. In the script that processes the queue, we check for duplicates to make sure we only execute the update/cancellation once.

Hope that's of some use.

Thanks,

Andy

Kind regards, Andy Lower PandaCake Shopify Partners
DropVessel
Shopify Partner
3 0 2

Thanks for your reply.

Yes makes sense. I appreciate the update.

0 Likes
MozzoERP
Shopify Partner
64 3 8

I understand this post is old, but the issue still remains as of 2021.

 

Why do two webhooks get called for Order Paid and Order Cancelled? i.e. in both cases you also get an additional Order Updated webhook at almost the exact same time as the the original webhook (paid or cancelled). This causes potential issues and unnecessary overhead. 

In the case of Paid, we received the Updated webhook call first, then the Paid...which doesn't

Chad Richardson
Mozzo Software - Modular Software that grows with you from solopreneur to a 200 person mega team. Why keep outgrowing your Shopify Apps? Start with us, and just use the modules you need, then add more as you grow. http://MozzoERP.com
0 Likes