#fredrik-b_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/1351916658050207817
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
I need it because if there is an error at creating stripe account and somehow the stripe account id is not stored, i need to get it somehow
Hi, you'd have to use list API: https://docs.stripe.com/api/accounts/list and attain the details. You'd want to store these details on your end to make this search easier for you.
You can also use our auto pagination, https://docs.stripe.com/api/pagination/auto function to iterate over the accounts.
You should fix that, should be able to just find it by email, thats a lot of pagination, having million users
becomes too my req? is this something normal people do?
Yes obviously we save it with a webhook, but should that webhook not work, then its all screwed
They typically store this information in their database.
And in cases where they were not able to, they would use the above API to list the accounts from the specific date the account was created for instance: https://docs.stripe.com/api/accounts/list#list_accounts-created
should the user try to register and it doesnt work because of some error with the webhook, then dont come back to the site for months, then that function wont work either
I don't follow, are you able to reword this please?
Yes
You said "API to list the accounts from the specific date the account was created for instance" but let's say the user wont use MY site for months after he realize the stripe account did not update correctly (i was not able to save the acc id for some reason, could be so many small issue reasons I can't control, like the computer dies, electric going off, whatever it is, internet dies)... So the user gets angry and wont return to my site for months, then my function to find it as you instructed by created date would not work because its been several months... or you maybe meant I have to somehow create a date in my database when he tries to create stripe, to use should it not work?
You could do a periodic List Call and use the pagination function. Your feedback is fair to be able to filter accounts by the email address so I will share that with the product owning team
This is not a guarantee that it will changed any time soon but do know that the team reviews these feedback seriously
yeah, i still need a solution today haha, but good that you realize the dire situation
The solution today is to use the list accounts, and use auto pagination
Ok, I will look into that, thank you