#pyotr-vasiliev_api

1 messages · Page 1 of 1 (latest)

tawny lanternBOT
#

👋 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/1290597965219762186

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

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

glossy inlet
#

like I said in the last thread.

#

if you are the developer of the platform and your question is how to delete an account , then share code and request IDs of what you've tried and what exact errors/problems you ran into.

frank elbow
#

ok im gonna make screens

graceful oasis
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!

frank elbow
#

This is how our code looks like in lambda we first are testing to retrieve data because if this doesn’t work the delete wont work

#

Then we take the account id form express

#

When i give my normal main stripe account it works but as you can see here if I give my express account id it doenst work

glossy inlet
#

what is the account ID acct_xxx?

frank elbow
#

you mean the id i used to make the call?

glossy inlet
#

yes, the ID in the screenshots

frank elbow
#

acct_1Q264wGd41Jkhp4n

glossy inlet
#

I checked some logs, you're using the wrong secret key. You're using the API key of some other account you have , not the secret key of the "domits" platform account.

#

make sure you're logged into the correct platform account(in the top left of the Dashboard) and then copy the API key from https://dashboard.stripe.com/apikeys and use that in your code

frank elbow
#

so you mean to enter the domits exprss platform?

glossy inlet
#

I'm unsure what you mean by "express platform". But like the way it works is you have this Express account acct_1Q264wGd41Jkhp4n , that is managed/created by/owned by a Stripe platform account, which is your "Domits" platform account acct_1OAG6OGiInrsWMEc , and it's the API keys of that account that can be used to access/update/delete that Express account.

frank elbow
#

so okay everyone has to acces their own secret key of their platform to peform a delete

glossy inlet
#

I really don't know what you mean by that sorry.

frank elbow
#

one of my collegues can only enter this way when he tries to login into stripe

glossy inlet
#

then your colleague probably only has Express accounts and no access to a real/full platform, I would guess

frank elbow
#

yeah but their is no secret key to be found here so how would he delete these account then?

glossy inlet
#

he wouldn't. He'd contact the platform and they would make the API call to do it. Same as any end-user of your platform.

frank elbow
#

aha so we cant do this

glossy inlet
#

depends what "we" and "this" are in that sentence 🙂
An Express account is managed/created by/owned by a Stripe platform account. That platform would provide support for Express users and if they want to delete their account, that platform can use their API keys to call the appropriate API.

#

I assume in this conversation I am speaking to someone who is a developer building the integration of that platform account, so you can delete accounts by calling the API(if you use the right key, which right now you're not, since you seem to have access to many different accounts and are getting confused between them).