#unknowncat
1 messages · Page 1 of 1 (latest)
Got it, and you want the bank account where the payouts on your Connected Accounts have gone to, correct?
correct
Got it. Then you want to list payouts on your Connected Accounts using https://stripe.com/docs/api/payouts/list and passing the Stripe Account header (https://stripe.com/docs/connect/authentication) and look at the destination property as you noted: https://stripe.com/docs/api/payouts/object#payout_object-destination
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Learn how to add the right information to your API calls so you can make calls for your connected accounts.
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, and how to I turn the detination id into something the accountant can read on a report? like bank name etc?
i checked docs for bank account endpoint but it requires customer id input
Ah you retrieve the external account: https://stripe.com/docs/api/external_account_bank_accounts/retrieve
The external account object has that info: https://stripe.com/docs/api/external_account_bank_accounts/object
huh, how to get account id though? I''m not seeing it on the payouts response
Can you give me an example payout that you are looking at?
sure 1 sec
po_1MMlFTBPFXLFBDkwVjWRTIgH
even on docs tho it's not showing acct_ in payouts response
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Not sure I understand. You already know the Account ID because you listed payouts for that Account
just listing all payouts actually
for the platform
let me step back a bit,
goal is to make a report of payouts to the connected accounts
Okay pause
sure
When you say "payouts to the Connected Accounts" do you mean transfers from your Platform to your Connected Accounts? Or do you mean payouts from the Connected Account to their external bank account?
the later
that's the gist, so trying to hit payouts endpoint, loop all results, and get bank account name and amount for each payout to connected accounts
What type of Connected Accounts here?
sorry not sure
I had assumed you were working with Express/Custom accounts
freelance gig, just popped in to make their reports generator
But I don't think you can get info like bank name from Standard Accounts if I remember correctly.
it does show in the dashboard
they have two connected accounts, one is - acct_1KQcXhPgtQIugWA8
if you want to check
Yep okay that is an Express Account
thanks!
So the issue is you are currently listing payouts on your platform
Not the Connected Account
gotcha!
When you do the list request you need to pass the Stripe Account header of the Connected Account. See: https://stripe.com/docs/connect/authentication
So you basically loop through listing payouts on each Connected Account
If you need to get the Account IDs, then you list your Connected Accounts using: https://stripe.com/docs/api/accounts/list