#aamir_api
1 messages ¡ Page 1 of 1 (latest)
đ 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.
hi there!
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
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.
can you try doing the same request, but using the Stripe-Account header to see if that changes anything? https://stripe.com/docs/connect/authentication
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?
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?
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
even I tried with platform and connect as well but unable to get
can you try again and share the request ID?
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"
}
}
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
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
that error is pretty clear and explains the issue:
"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.",
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"
}
}
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
ok but with direct keys of the connect account I got this:
yes that will never work, so that error can be ignored.
so how can it work then
did you read the documentation page linked in the error message?
this one you mean particularly
yes
we don't really know much about this here on Discord. I recommend asking Stripe support instead: https://support.stripe.com/contact