#lanman9000_api

1 messages ยท Page 1 of 1 (latest)

night copperBOT
#

๐Ÿ‘‹ 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.

shadow egret
#

{
"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"
}
}

marsh cargo
#

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 ๐Ÿ˜„

shadow egret
#

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

marsh cargo
#

What GUI are we talking about? Are you using the Stripe API explorer in Workbench?

shadow egret
marsh cargo
#

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

shadow egret
#

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"
}
}

marsh cargo
#

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

shadow egret
#

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.

marsh cargo
shadow egret
#

why can't these be deleted from the dashboard (connected accounts in general)

marsh cargo
#

That is probably a dashboard bug - I'm spinning up a v2 account to try to see if I can reproduce it now

shadow egret
#

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."

marsh cargo
#

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

shadow egret
#

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

night copperBOT