#slimane-refund
1 messages · Page 1 of 1 (latest)
hello! the PaymentIntent doesn't have a refunded status : https://stripe.com/docs/api/payment_intents/object#payment_intent_object-status
If you want to know if the PaymentIntent was partially refunded, what i suggest you do is to retrieve the Charge object instead which has : https://stripe.com/docs/api/charges/object#charge_object-amount_refunded
Okay got it. , thanks for the insight, I’ll try to retrieve the charge instead!
@lost stratus actually the data should probably be available in https://stripe.com/docs/api/payment_intents/object#payment_intent_object-charges-data also
so you can just retrieve the PaymentIntent, and look at charges.data[0]
and it'll contain amount_refunded
slimane-refund
Oh! Man that would be perfect. Thanks for the second answer, that would be awesome