Using REST or graphql to find orders with gift_card used

I am trying to get a list of orders that have “gift_card” in the payment_gateway_names without having to brute force looping all our orders.

Anyone have a good solution to this?

1 Like