#TheMechanic
1 messages ยท Page 1 of 1 (latest)
Hi again ๐ when you find those, does the source parameter on the Balance Transaction contain the ID of the associated refund?
https://stripe.com/docs/api/balance_transactions/object#balance_transaction_object-source
The Refund object then has pointers to its associated charge or payment_intent.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yes, i got this : pyr_1MHm0XXXXXXXX
Awesome! Were you able to use that ID to retrieve the Refund object, so you could check it to find the related Payment Intent?
I did a GET on the refund, but weird, the payment_intent property is null, I tried on many refunds :/
Hm, can you share the ID of one of those refunds so I can pull it up on my side?
this one for example : [erased]
Still looking in to this but basically that is the connected account's object for their side of a destination charge
The payment intent exists on the platform account here, so basically you need to work your way back from there
i can find it using the charge object ?
Yes, the charge object has a source_transfer property, that is the ID of the transfer object on the plaftorm
That transfer on the platform has a source_charge property that is the ID of the related charge
And that charge has a payment_intent property that will be filled out here
Ok, succeeded using expand : data.source.source_transfer_reversal.source_refund in balance_transactions request (for a given payout)