#Esteban (Eyeneed)
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ that process takes a bit of effort for Express accounts since we recommend using Destination Charges with those, which means the Payment Intents are stored on your Platform Account but the Payouts are on your Connected Account.
First you'll want to find the Balance Transactions associated with the Payout on the Connected Account.
You can use this endpoint for that, and pass the ID of the Payout into your request to only return Balance Transactions associated with that Payout:
https://stripe.com/docs/api/balance_transactions/list
For Balance Transactions that were created by a Transfer to your Connected Account from your Platform, the source field on those should have a value with a py_ prefix.
You can retrieve those objects as Charges using this endpoint (or you can skip this step by expanding the source parameter in the previous step)
https://stripe.com/docs/api/charges/retrieve
Which should give you access to the source_transfer parameter on the Charge objects, which will point to the Transfer in your Platform Account that sent funds to the Connected Account.
https://stripe.com/docs/api/charges/object#charge_object-source_transfer
Then you can retrieve the Transfer from your Platform Account:
https://stripe.com/docs/api/transfers/retrieve
And check the source_transaction parameter on the Transfer object, to find the related object that funded the Transfer.
https://stripe.com/docs/api/transfers/object#transfer_object-source_transaction
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
thank for your reponse, I resume :
- get balance from payout
- get charge from source of balance
- get source_transfer from charge
- get transfer
- get source_transaction from transfer
right ?
Yup, looks right, but lemme know if that doesn't work for you.
I will try and get back to you if it does not work, thanks