I am creating an app in Shopify. If some conditions are met for a product in Shopify, an endpoint in my server should receive a post request of all details.
conditions can be:
'Order status is completed' AND ('product tag is milk' OR 'payment status is UPI')
It can get complicated as it goes. If I use webhook it will receive requests irrespective of the conditions and all conditions have to be checked from my end.If using workflows i don't see an OR option as well.
Is there a way i can set some kind of trigger for webhook, so it gets fired only when some conditions are met?