#cnguyen
1 messages · Page 1 of 1 (latest)
What's the error?
The bank account ba_1JRyKS2RsAXEusJZZsfzcZpM has been deleted and can no longer be used.
Can you share the ID (req_xxx) of the failing API request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Is that unexpected?
yes
It was deleted here: https://dashboard.stripe.com/logs/req_NL64EQzsg45Ws0
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
There was an update to the account that updated the external account
it's when I do stripe.accounts.retrieveExternalAccount ?
because it works on the stripe dashboaard
What works on the Dashboard?
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
you may be able to get those details via: 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.
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']
I can use with https://stripe.com/docs/api/payouts/list N?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
When I list all the apyout
Yeah, should work
great
like this => const payoutsData = await stripe.payouts.list(
params,
{ stripeAccount: stripeUserId, expand: ['destination'] }
)
No, expand would be passed to the first arg (params)
like this ?
params.expand = ['destination']
const payoutsData = await stripe.payouts.list(
params,
{ stripeAccount: stripeUserId }
)
Hi! I'm taking over this thread.
Looks correct, but it might be ['data.destination']
I don't have the info with the expand
I have this => {"id":"ba_1JRyKS2RsAXEusJZZsfzcZpM","object":"bank_account","currency":"gbp","deleted":true}
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.
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)
Then it looks like for deleted bank accounts the information is only visible in the Stripe dashboard and not in the API.