#EzequielCalcanat-refunded

1 messages · Page 1 of 1 (latest)

swift junco
#

Hi 👋 are you referring to Payment Intents by chance?

rotund sapphire
#

sorry, paymentIntents

swift junco
#

Gotcha, thank you.

#

I'm thinking through that, but I don't think there is going to be a straight forward way to do this.

rotund sapphire
#

I was reading the Search documentation and refunded is a field that have a similar structure as this, the difference is that refunded its on charges{data[{refunded}]}
So, maybe to search by that field would be charges.data[0].refunded:false

swift junco
#

What is it that you're ultimately trying to achieve here?

rotund sapphire
#

I have a dropdown list and users can search within a period of time the payments that have been refunded or not, well, that's the idea

swift junco
#

Ah gotcha, thank you for that clarification. (I was thinking if this was a one-off search that it might be easier to do from the dashboard).

swift junco
#

I do think Search is going to be your best approach, but I'm honestly not sure whether it would be easier (or even possible) to search for this at the Payment Intent level rather than the Charge level.