Shopify webhook generating duplicate operations

Hello,

I am using a shopify webhook to trigger an operation where is a new order created. This is a super simple scenario. But for each line item in an order, 2 operations of the same bundle are being generated. I have compared the data from both operations and they appear to be identical.


I have attached the two output.
op 2.txt (35.6 KB)
op 1.txt (35.4 KB)

Any help is appreciated.

It turns out shopify has implemented an is_removed attribute which sends a second bundle when the order/create webhook is used (Solved: Bug: GraphQL and REST Admin API do not reflect removal of shipping from order - Shopify Community). I am switching to order/paid to see if that solves it.

I’ve had similar issues in the past using other APIs. What I suggest is have the scenario run sequentially and use a database to keep track of the processed orders. You can use the database module and a filter to accomplish this.

Thanks for the suggestion. However, it doesn’t look like Shopify has a built in database module on Make so I have to rely on either order payment or order creation to keep track of orders. Maybe I am not understanding you correctly?

I meant this module on Make. Use it to temporarily house your data to keep track of which orders were processed. And have a step to delete the entry afterwards

2 Likes

Oh I didn’t know this existed! This is brilliant! I will try this out. Thank you so much!

1 Like

This is working! Thank you so so much!

2 Likes