#sandeepdil

1 messages · Page 1 of 1 (latest)

zinc tapirBOT
drowsy vortex
#

Hi there

untold sleet
#

hi

drowsy vortex
untold sleet
#

i used the same api... but new account doesn't seems to be added

#

sharing my code :

#

await stripe.accounts.update(
userDetail.rows[0].stripe_acct_id,
{
external_account:{
object: 'bank_account',
country: paymentProfileDetail.rows[0].address_country,
currency: 'usd',
account_holder_name: bankDetail.rows[0].full_name,
account_holder_type: 'individual',
routing_number: bankDetail.rows[0].routing_no,
account_number: bankDetail.rows[0].acc_number
}
}
)

drowsy vortex
#

Do you get an error?

untold sleet
#

no... got success

#

but only bank not getting added

drowsy vortex
#

Can you share the request ID from that update?

#

Ah wait

#

When you do that you are aware that the old external account will get deleted, yes?

#

Are you trying to just add another external account?

#

Without deleting the previous one?

untold sleet
#

yes

#

im trying to add additional bank account without deleting old

drowsy vortex
#

Ah okay then the above link clarifies that:

By default, providing an external account sets it as the new default external account for its currency, and deletes the old default if one exists. To add additional external accounts without replacing the existing default for the currency, use the bank account or card creation APIs.