#GastonLifschitz - subscription from refund

1 messages · Page 1 of 1 (latest)

chrome cave
#

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

somber spruce
#

When I click on refund, an event of charge.refunded is triggered, but there's no sub_id

chrome cave
somber spruce
#

Oh, you suggest using payment_intent and populate that through expansion so I can retreive the whole data

#

Thank you so much!