#cnguyen

1 messages · Page 1 of 1 (latest)

short heraldBOT
brave path
#

What's the error?

split latch
#

The bank account ba_1JRyKS2RsAXEusJZZsfzcZpM has been deleted and can no longer be used.

brave path
split latch
#

yes

brave path
#

There was an update to the account that updated the external account

split latch
#

it's when I do stripe.accounts.retrieveExternalAccount ?

#

because it works on the stripe dashboaard

brave path
#

What works on the Dashboard?

split latch
#

When I want to do stripe.accounts.retrieveExternalAccount, I have The bank account ba_1JRyKS2RsAXEusJZZsfzcZpM has been deleted and can no longer be used

#

I just want to have this information only => STARLING BANK LTD - ****9519

#

it's the bank accoutn name and the last4

#

I saw it on the payout on the stripe dashboard

short heraldBOT
brave path
#

If you expand that field, it might have a snapshot of ba_1JRyKS2RsAXEusJZZsfzcZpM from the time of the Payout

#

So retrieve the po_xxx and pass expand: ['destination']

split latch
#

When I list all the apyout

brave path
#

Yeah, should work

split latch
#

great

#

like this => const payoutsData = await stripe.payouts.list(
params,
{ stripeAccount: stripeUserId, expand: ['destination'] }
)

brave path
#

No, expand would be passed to the first arg (params)

split latch
#

like this ?
params.expand = ['destination']

    const payoutsData = await stripe.payouts.list(
        params,
        { stripeAccount: stripeUserId  }
    )
coarse shoal
#

Hi! I'm taking over this thread.

#

Looks correct, but it might be ['data.destination']

split latch
#

I don't have the info with the expand

#

I have this => {"id":"ba_1JRyKS2RsAXEusJZZsfzcZpM","object":"bank_account","currency":"gbp","deleted":true}

coarse shoal
#

If you don't see an error it means your code is correct. It's just that the info you are looking for is not available in the API.

split latch
#

Yes, Where can I found it ?

#

I see it on the stripe dashboard, even if the bank account is deleted

#

And when I try o have details on the po_1LXakm2RsAXEusJZ4GlmHyfc, I have a not found issue too. With :
const payoutData = await stripe.payouts.retrieve
(
item,
{ stripeAccount: stripeUserId }
)

#

SO, what is the way to have it when the bank account is deleted too ? I have all of them and have no problem on the. stripe dashboard

#

So, How can I have this list (even when the bank is closed). And how to have the details too (even when the bank is closed) (for example acct_1JRyDV2RsAXEusJZ/payouts/po_1LV3JM2RsAXEusJZwdSXTQ26).

#

for now, I use :

  • For the payouts, I use => stripe.payouts.list with params.expand = ['data.destination']
  • For details, I use :
    - stripe.payouts.retrieve
    - await stripe.balanceTransactions.list(
    { payout: payoutData.id, type: 'payment', expand: ['data.source.source_transfer'] },
    { stripeAccount: stripeUserId }
    - await stripe.balanceTransactions.list(
    { payout: payoutData.id, type: 'payment_refund', expand: ['data.source.charge.transfer'] },
    { stripeAccount: stripeUserId }
#

It works for all except for the deleted bank account(here it's metro bank)

coarse shoal
#

Then it looks like for deleted bank accounts the information is only visible in the Stripe dashboard and not in the API.

split latch
#

Are you 100% sure ?

#

can you double check plz

#

(I will b back in few minutes, let you check ttkkksss)