#residex_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/1418343785670250637
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there! An important thing to consider is that parity between the Stripe dashboard and Stripe's APIs does not exist and should not be expected.
Not sure yet if we expose this in the API or not - could you provide the id of the account you're looking at?
acct_1RtDfuRfHafiIkJc. and yeah, thats what I figured, but I kind of need that parameter for what I am trying to do, is there any way you can think of that I could find it programatically?
Not sure, but lets find out together ๐
For more context: Stripe is charging us bank verification fees of $1.50 per financial connections verification and my management wants to pass it along to our clients. The issue is that Stripe doesn't have great tracking on these fees (as far as I can tell, maybe you do?), it seems as though they charge us a lump sum at the end of the month for all of them, so I am trying to write a script that manually counts all of these verifications by looking at all PaymentIntent's, SetupIntents, and external account creation events, finding all unique bank account IDs and counting them up, essentially
Okay, so we don't expose a creation date on the external account in the API
A connected account's external accounts get stored in an array (data) on the Account object, which you get in account.updated events example or you can always retrieve the account every month and compare it against your state for that account
that was another solution I did try, using the Events API and looking for account.external_account.created events. unfortunately that API is limited in that you can only look up events in the last 30 days, which works for some months and not others but maybe it would be acceptable, I am not sure yet
I might go that way and just live with the edge cases lol
Yeah, but the event in this case is just giving you the account object, which you can retrieve at any time
yeah but the event has a date which is the important bit
The only thing you lose by using the Accounts api is the previous_attributes section that you get on account.updated
Yes, that's true
You could set metadata on the Account object with a date if you detect a new external account being added in an account.updated event: https://docs.stripe.com/api/accounts/update?api-version=2025-07-30.basil#update_account-metadata