#.abishek

1 messages · Page 1 of 1 (latest)

restive cedarBOT
arctic token
#

I want to do the same with refunds as well

torn halo
#

Well the associated is done via the related Charge object which has a customer field

#

No way to look them up directly via the API

arctic token
#

so. I have to load the charge object on both refunds and disputes and identify the customer_id and then find an association. is that the way to go?

torn halo
#

I think you will likely want to paginate over the Charges list endpoint, passing customer parameter. From that list returned you can see if the Charge has disputes and/or refunds:

#

A bit convoluted I agree

arctic token
#

ok

#

is it possible to just list charges that are either disputed or refunds? it will be a bit overwhelming to list through all the charges