When we discussed how to get all WooCommerce orders with a refund, we talked about why the “refunded” status isn’t a great way of tracking orders with a refund, as a partially-refunded order will not have that status.
We put together a helper function to directly query refunds and return the associated order IDs for them.
Read Full Tutorial