#hemanth_p

1 messages · Page 1 of 1 (latest)

clever larkBOT
brittle pulsar
#

Hi! given a particular charge, you can check if it's been refunded by if https://stripe.com/docs/api/charges/object#charge_object-refunded is true, and you can make a call to https://stripe.com/docs/api/refunds/list#list_refunds-charge with the charge ID to get more information on it.

twin raft
#

these are in charge and refund APIs
but I need in invoice APIs GET /v1/invoices?subscription=&expand=data.charge

brittle pulsar
#

I know yes, but while you're looking at the response of that API call you can make other API calls.

#

as you say, you are doing expand=data.charge so inside the response you have Charge objects, so it's relevant to look at the Charge object since that is what you have, so that's why I link to it 🙂

#

note you can also do expand=data.charge.refunds and then that list of Refunds I mentioned is also included in the response, without an extra API call

twin raft
#

ok, will try

#

thanks it worked