#drew-connect-reconciliation
1 messages · Page 1 of 1 (latest)
👋
When stripe performs automatic payouts from a platform account to a destination account after creating payment intent
The vocabulary here is a bit off so i'm making sure we mean the same thing.
A Payout represents money moving from a Stripe account's balance to their own external bank account outside of Stripe.
A Transfer represents money moving from one Stripe account's balance to another Stripe account's balance inside of Stripe.
When you create a PaymentIntent, there's no real link to a Payout immediately. You mentioned "destination account" so I'm going to assume you mean you're using Destination Charges where the PaymentIntent is created on the platform and then you send funds to a connected account.
Ah i meant transfer to a connected account.
This diagram often helps show that there are many different objects in our API associated with a Destination Charge.
drew-connect-reconciliation
Ahhhh this is good info! Outside of instant payouts on a connected account. I can essentially rebuild a list of what charges contributed to a given payout.
Yeah so this is both really simple once you "get it" and really complex until then lol
If an account is on automatic Payouts, Stripe bundles all funds that are made available daily by default and creates a Payout. What you can do is use the List BalanceTransactions API (https://stripe.com/docs/api/balance_transactions/list) and pass payout: 'po_123' to know what's bundled into it.
But that only gives you the BalanceTransaction object. Then you have to look at the source property to see what exact money movement abstraction caused this (like a Charge, a Refund, a Dispute, etc.)
If you do this you're going to get the py_001 through from that picture. What you want is to go back "up the tree" to the PaymentIntent on the platform
The way to do this is to use our Expand feature https://stripe.com/docs/expand to navigate that tree back up to the Platform's Transfer and then Charge and such
Does that make sense? Did you have any follow up questions before I close this thread?