#sandeepdil
1 messages · Page 1 of 1 (latest)
Hi there
hi
Yes you can update a Custom Connected Account with that API to add a new external account. See: https://stripe.com/docs/api/accounts/update#update_account-external_account
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 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
}
}
)
Do you get an error?
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?
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.