#mrelliot69

1 messages ยท Page 1 of 1 (latest)

half echo
#

Hello! What's the Q?

neat peak
#

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

half echo
#

Sure, what's the ID of the object you're working with?

neat peak
#

payout

#

po_1LXKchCRI4H2eNZZJzuo1iF6

half echo
#

So you want the bank details of the account the Payout was sent to?

neat peak
#

yes, exacly

half echo
neat peak
#

i already tried to expand and didnt work

half echo
#

What do you mean by 'didn't work'?

neat peak
#

i did the expand of the destination and the object didnt expand

half echo
#

Can you share the code you used?

neat peak
#

yeah one second

#
    $bankdetails = \Stripe\Payout::retrieve($v["destination"],[
                        'expand' => ['destination']
                    ]);
#

?

half echo
#

And the response? That code works fine for me

neat peak
#

the destination didnt expnd

half echo
#

Hmm, weird. And you're making this API call using the keys of the platform (acct_1GXTQaCRI4H2eNZZ)?

neat peak
#

yes im using the platform keys

#

any ideia why didnt work?

bitter garden
#

๐Ÿ‘‹ Taking over this thread, catching up now

neat peak
#

ok ty

#

any updates?

bitter garden
neat peak
#

im making the call like i sent here

neat peak
#

do you need me to provide more details?

bitter garden
#

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

neat peak
#

okok i will wait, could be related to apiversion?

bitter garden
#

Can you try this?

$bankdetails = \Stripe\Payout::retrieve([
    'id' => $v["destination"],
    'expand' => ['destination']
]);
neat peak
#

yap one sec

#

it worked , ty

bitter garden
#

Great! Glad to hear that it works!