#john307-account
1 messages · Page 1 of 1 (latest)
Thanks @opal kestrel !
You can find all the parameters here: https://stripe.com/docs/api/accounts/update#update_account-external_account
So it seems external_account should be an object, but you are currently passing an array.
Got this error
"Error: This application does not have the required permissions for the parameter 'external_account' on account 'acct_xxx'."
Here is the code
accountResult = await stripe.accounts.update(
'acct_xxx',
{
"external_account":
{
object : "bank_account",
country : "CA",
currency : "cad",
account_number : "11000-000",
bank_name : "CANADIAN IMPERIAL BANK OF COMMERCEss",
}
}
);
what's the account ID acct_xxx?
you can share the ID, it's not sensitive and it lets me see some logs on what you're doing
in any case, if you're getting this error it almost certainly means you're trying to update the bank account of your own account/a Standard account, or an Express account. In which case this is not how you update their bank details — either the owner of the account updates it on their Stripe dashboard for those first two cases, or you redirect the Express user to the Express dashboard so they can do it there, respectively.
that API is only for Custom accounts