'This application does not have the required permissions for this endpoint on account
I am using stripe implementation with Node JS by following this API. I am able to create connect and account but I can't add external bank account for the connected stripe account. I am using Test account credentials. Connected account acct_1KCRy1PszwCMk9PS is enabled. I can't add external account to the connected account from stripe console also. The error says,
This application does not have the required permissions for this endpoint on account 'acct_1KCRy1PszwCMk9PS'.
Code:
let accountNumber = '000999999991' //https://stripe.com/docs/connect/testing
let name = 'testanme'
let object = "bank_account"
let country = "US"
let currency = "USD"
let stripeAccountNumber = 'acct_1KCRy1PszwCMk9PS'
await stripe.accounts.createExternalAccount(
stripeAccountNumber,
{
external_account: {
object:object,
country:country,
currency: currency,
account_holder_name:name,
account_number:accountNumber
},
}
).then(
function(result) {
console.log(result)
},
function(err){
console.log(err.message)
}
);
Could you please help me to find out what is the problem? Thanking you.
Solution 1:[1]
This account is likely Standard account, where the external accounts used for payouts are managed by Stripe and are not controlled by your platform.
If you want to have full control over an account experience, you might want to consider Customer accounts, where this is reversed and you are responsible for collecting external account details.
Solution 2:[2]
Either you use Standard API secret key or else you can create Restricted keys with below permissions

helper url https://dashboard.stripe.com/test/apikeys
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Nolan H |
| Solution 2 | Nishant |
