#lanman9000_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/1478448400243495044
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
{
"error": {
"message": "The provided key 'sk_test_*********************************************************************************************p0Fmpc' does not have access to account 'acct_1T6vHVCTjg6YaK7w' (or that account does not exist). Application access may have been revoked.",
"type": "api_error",
"code": "account_invalid",
"doc_url": "https://stripe.com/docs/error-codes/account-invalid"
}
}
Hi there - what's the request id (req_123) from that request or the platform account id you're using?
acct_1T6vHVCTjg6YaK7w is already deleted so that might be the problem ๐
there is no request id .. i don't see anything in the developer logs .. but the account did delete eventually somehow.
so I tried another account ID .. and it looks like it was successful .. but its not deleted in the GUI
$ curl.exe "https://api.stripe.com/v1/accounts/acct_1T6v46FhyUvopjjF" -X DELETE -H "Authorization: Bearer sk_test_1234"
{
"id": "acct_1T6v46FhyUvopjjF",
"object": "account",
"deleted": true
}
now its gone from the GUI .. jeez .. how long does the GUI take to refresh? because I kept refreshing the page for like 2 mintues and the account was still there
but i just refreshed again and now its gone from the GUI
What GUI are we talking about? Are you using the Stripe API explorer in Workbench?
just looking at 'connected accounts' via the GUI
https://dashboard.stripe.com/acct_1SUV41FgudhaKLfM/test/connect/accounts
ah, the dashboard.
I'm not suprised if you delete an Account via the API and it takes a little time to show up as deleted in the dashboard
i just tried to delete the first test connected account .. and am getting this error .. none of the other connected accounts generated this error:
$ curl.exe "https://api.stripe.com/v1/accounts/acct_1T6mQ8FgudJbclyu" -X DELETE -H "Authorization: Bearer sk_test_1234"
{
"error": {
"message": "This Merchant is linked to a v2 Account with additional Configurations, and must be closed by the v2/core/accounts/:id/close endpoint.",
"request_log_url": "https://dashboard.stripe.com/acct_1SUV41FgudhaKLfM/test/workbench/logs?object=req_0OWFtDhjkS20uq",
"type": "invalid_request_error"
}
}
The other accounts are v1 Accounts.
This is a v2 account, and the error message explains that you can't delete it via the v1 endpoint
jesus man .. ive tried 5 different calls to the v2 endpoint and its just error after error
curl "https://api.stripe.com/v2/core/accounts/acct_1T6mQ8FgudJbclyu/close" -X POST -H "Authorization: Bearer sk_test_1234" -H "Stripe-Version: 2025-10-29.preview"
{
"error": {
"code": "configs_must_match_to_close",
"message": "You must correctly specify the applied configurations on the account in order to close it.",
"user_message": "You must correctly specify the applied configurations on the account in order to close it.",
"param": "applied_configurations",
"request_log_url": "https://dashboard.stripe.com/logs/req_v2tdaVTlWdbY7Rken",
"applied_configurations": [
"customer"
]
}
}
i just want to delete the damn connected account. the dashboard doesn't let you delete them for what ever reason .. you HAVE to do it via API .. but the API is just throwing problem after problem.
So you're going to want to read the account, look at its applied_configurations and pass them to the delete request:
why can't these be deleted from the dashboard (connected accounts in general)
That is probably a dashboard bug - I'm spinning up a v2 account to try to see if I can reproduce it now
i was able to finally delete it via API using:
curl "https://api.stripe.com/v2/core/accounts/acct_1T6mQ8FgudJbclyu/close"
-X POST
-H "Authorization: Bearer sk_test_1234"
-H "Stripe-Version: 2025-10-29.preview"
-H "Content-Type: application/json"
--data '{"applied_configurations":["customer"]}'
but you can't delete them via the gui .. when you go into a connected again and click the elipsis .. delete account is grayed out .. and when you hover over it .. it says ..
"You can only delete accounts with access to the full dashboard where Stripe owns loss liability from your platform."
Yep, you can't delete all kinds of connected accounts from the dashboard. This is the same as v1 - for example, you can't express v1 Express accounts in the dashboard
but why can you delete them via API but not via a simple click 'delete' in the dashboard
i can CREATE them via the dashboard .. but I can't delete them? that makes no sense