#jie_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/1436290378411016335
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
hey there! registered in what sense? as a customer, or as a connected account?
yes we're here
it's not possible to retrieve a list of connected accounts with a specific email address directly (email is not a supported parameter on the List Accounts API)
but you could list all connected accounts and iterate/parse through the list to find the email address in question
If my purpose has already been registered, then block the registration operation of the sub-account
How can I use the api to verify whether the email address I'm about to register has already been registered?
create sub-account type =standard
you can't do that directly with the API
you would need to check the other accounts that have been registered to see if the same email was used for any (so list all accounts, then check the email property)
using the API is likely not the most efficient way to do this - are you creating a database of connected account holders on your end?
yes
then it would likely be easier to check this on your end rather than using the API
I have a main account
I use the api to create sub-accounts of my main account
I need to verify whether the email address entered in my sub-account has been registered before when creating it
If you have registered before, I will block the creation of sub-accounts
On my side
The sub-account might not have been registered in my system, but it has already been registered on stripe's official website
I will not be able to verify the uniqueness of the email account
Ok, well it's not possible to pass an email address to the Stripe API, and receive a list of connected accounts with that email in the response
If you want to use the API to check this, you would need to pull a list of all accounts from the API, and check the email property for each to see if it matches the email you want to check
all accounts ? Is it a sub-account under my main account?
yes listing all accounts means listing all connected accounts under your platform
However, the verified email address might have already been registered with stripe before it became my sub-account. How should this situation be handled
you mean registered with Stripe at all? that wouldn't be relevant for your implementation (if the user has another account with Stripe, separate to your platform, you should still create a new account for them under your plaform)
create sub-account type =standard
Can sub-accounts be created for the same email address?
yes