"Fields like refunded_at will only have data if the transaction was refunded, and otherwise left null."
"Complete the query by filtering for refunded_at is not null."
We should filter using IS NULL. It means that there wasn't any refund. If "refunded_at" field contains a date there was a refund.