#mrelliot69
1 messages ยท Page 1 of 1 (latest)
How i can retrive the details of a bank account? like type, creationdate, owner, country,...? I know that i can retrive this info for a connected account but in this case i can to retrive this info of a bank account of my platform so i can display other info related to the account insted of displaying only the id
Sure, what's the ID of the object you're working with?
So you want the bank details of the account the Payout was sent to?
yes, exacly
You'd look at the destination field, which is expandable: 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.
Expandable means that you can get the full object rather than just the ID: https://stripe.com/docs/api/expanding_objects
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
i already tried to expand and didnt work
What do you mean by 'didn't work'?
i did the expand of the destination and the object didnt expand
Can you share the code you used?
yeah one second
$bankdetails = \Stripe\Payout::retrieve($v["destination"],[
'expand' => ['destination']
]);
?
And the response? That code works fine for me
the destination didnt expnd
Hmm, weird. And you're making this API call using the keys of the platform (acct_1GXTQaCRI4H2eNZZ)?
๐ Taking over this thread, catching up now
Still looking into it. From your last request log, it looks like destination field expansion is not submitted in the request: https://dashboard.stripe.com/test/logs/iar_oFAesPxzOVBPeF
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
im making the call like i sent here
this
do you need me to provide more details?
Although the code shows that the expansion on destination is set, our side doesn't show expand is set in the request we received
Checking why it is so
okok i will wait, could be related to apiversion?
Can you try this?
$bankdetails = \Stripe\Payout::retrieve([
'id' => $v["destination"],
'expand' => ['destination']
]);
Great! Glad to hear that it works!