#GastonLifschitz - subscription from refund
1 messages · Page 1 of 1 (latest)
Hello, can you tell me more about what context you are making this refund call in. Do you have info on hand then other than the charge ID?
One way you may be able to see this is through expansion. If you expand charge.payment_intent,invoice, the invoice should have the ID of the subscription that it came from as its subscription parameter
https://stripe.com/docs/api/expanding_objects
When I click on refund, an event of charge.refunded is triggered, but there's no sub_id
In that case you will want to retrieve the charge and use expansion as I mentioned https://stripe.com/docs/api/charges/retrieve