#TheMechanic

1 messages ยท Page 1 of 1 (latest)

thorny waspBOT
alpine loom
#

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.

dull beacon
#

yes, i got this : pyr_1MHm0XXXXXXXX

alpine loom
#

Awesome! Were you able to use that ID to retrieve the Refund object, so you could check it to find the related Payment Intent?

dull beacon
#

I did a GET on the refund, but weird, the payment_intent property is null, I tried on many refunds :/

alpine loom
#

Hm, can you share the ID of one of those refunds so I can pull it up on my side?

dull beacon
#

this one for example : [erased]

amber nova
#

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

dull beacon
#

i can find it using the charge object ?

amber nova
#

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

dull beacon
#

ok i'm going to check it out

#

thanks !

dull beacon
#

Ok, succeeded using expand : data.source.source_transfer_reversal.source_refund in balance_transactions request (for a given payout)