How to automate failed refund notifications on expired gift cards?

Hey

I want to create an automation in Flow that sends an email when we refund money to a gift card and the refund is failed because the gift card is expired.

I tried many ways but unfortunately didn’t succeed.

Thanks!