#aamir_api

1 messages ¡ Page 1 of 1 (latest)

copper hearthBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1395313985787662416

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

weak folio
#

hi there!

tall valley
#

hi

#

while fetching payouts using secret keys of standard account, payouts info come but when I try to get bank information using bank_id provided in payouts, I am getting permission error

weak folio
#

you are trying to retrieve the bank account of a Standard connected account. but I don't think that's something we support. let me run some tests to double check.

tall valley
#

let me share code

#

\Stripe\Stripe::setApiKey($this->secret_key);
//Retrieve a bank account external
$response = \Stripe\Account::retrieveExternalAccount(
$stripe_account_id,
$bank_id
);

#

I am already using that

#

but it was like that, using GET

#

is this correct way to call the API?

weak folio
#

hum, I managed to make that API call work on my account. looking into this...

#

wait, you are trying to retrive information about acct_1RgPFgG722tFB9la, but that account isn't connected to your platform.

#

did you mix up the account IDs or the API keys?

tall valley
#

actually I am not using platform keys I am using direct keys of that account and also account ID of the same account

#

even I tried with platform and connect as well but unable to get

weak folio
#

even I tried with platform and connect as well but unable to get
can you try again and share the request ID?

tall valley
#

when I used platform keys and connect account:

{
"error": {
"message": "You cannot perform this request as you do not have Platform Controls for the Stripe Dashboard on the account. Learn more at https://docs.stripe.com/connect/platform-controls-for-stripe-dashboard-accounts.",
"request_log_url": "https://dashboard.stripe.com/acct_1RgPFgG722tFB9la/logs/req_W3LSnjbxOpN8p6?t=1752740542",
"type": "invalid_request_error"
}
}

weak folio
#

I am using direct keys of that account and also account ID of the same account
well, then that explain why it didn't work

tall valley
#

ok but with direct keys of the connect account I got this:

{
"error": {
"code": "more_permissions_required",
"message": "The provided key 'sk_live_*********************************************************************************************rWTC0S' does not have the required permissions for this endpoint on account 'acct_1RgPFgG722tFB9la'. Having more permissions would allow this request to continue.",
"request_log_url": "https://dashboard.stripe.com/logs/req_MTauAaVJKqEVDD?t=1752740595",
"type": "invalid_request_error"
}
}

weak folio
#

ok but with direct keys of the connect account I got this:
yes that will never work, so that error can be ignored.

tall valley
#

so how can it work then

weak folio
#

did you read the documentation page linked in the error message?

tall valley
#

this one you mean particularly

weak folio
#

yes

tall valley
#

I see only these options:

#

is this permission issue?

weak folio