I am very new the stripe & stripe API, right now am integrating the stripe into the django python server. I am able to create the customers & accounts. While updating the account with the bank token, I got an error "This application is not authorized to edit this account".
I am able to see the connected accounts on the connected accounts page in stripe dashboard.
Here is my code where I got the issue when account.save()
try:
account = stripe.Account.retrieve(user_account_id)
account.external_accounts = bank_account_token
account.save()
except Exception as e:
retrun e.message
return account