#bachir_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/1364594576244867113
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there ๐ information about the balance of a Financial Account can be found by retrieving the Financial Account and inspecting the contents of the balance hash:
https://docs.stripe.com/api/treasury/financial_accounts/object#financial_account_object-balance
But please let me know if you're looking for something different.
Hi toby,
Would it be a reliable way to track the daily balance of an account : for example, having a cron that calls this endpoint every day at 00:00 UTC and saves the value for the given account ?
Hm, my fear with that approach is whether you would run into rate limit issues, which is going to depend on how many accounts you're handling and how quickly you try to fetch all of those balances. Let me see if there is an Event type that could be listened for with a webhook endpoint instead.
Sorry, I'm not seeing an Event type that looks like it'd be better for this, so I do think polling daily is going to be the best approach for what you're trying to do.
You'll want to be mindful of our rate limits and ensure your code is ready to gracefully handle rate limiting errors if you suspect you'll get anywhere close to those limits:
https://docs.stripe.com/rate-limits
Thanks! We'll take care of not hitting the rate limit.