#yingwg

1 messages · Page 1 of 1 (latest)

still trellisBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

mystic loom
#

Have you tried List all Refund and take its Charge Ids?

wooden radish
#

not, I am actually want to use SearchPayments API to list all successfuly payment and calculate Total spend info for a customer

#

like this, I was recommened to use SearchPayment API and sum them up myself, but I just found the Search API doesn't allow me to filter out payment that are refunded

#

do I need to call ListAllRefunds API separately?

mystic loom
#

Yes if you are using Search PaymentIntent API it doesn't have a filter for refunded PIs. I guess yes you would want to call a separated API for refunded PIs and excludes those IDs from your original Search result

wooden radish
#

which API I should use? list all refunds?

#

is there a API for me to list refunds for a customer only?

mystic loom
#

Oh you are looking at a specific customer

wooden radish
#

yeah

mystic loom
#

I think List Charges on that specific Customer, and filter the response yourself by refunded=false/true

#

oh wait

#

From the Search PaymentIntent API, can you expand the latest_charge. Then you probably see its refunded property