#Miroslav
1 messages · Page 1 of 1 (latest)
hi! you can use latest_invoice on the Subscription object to get a reference to the most recent payment, retrieve the Invoice from the API , and use https://stripe.com/docs/api/refunds/create#create_refund-payment_intent on the Invoice's PaymentIntent.
Thanks, let me try that!
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
nope, that worked perfectly, thanks again