#alanshortz-payment-balance
1 messages · Page 1 of 1 (latest)
yes indeed
gotcha, so there isn't an easy way sadly
you mostly have to keep track of all of this yourself really
Every money movement is represented by a BalanceTransaction txn_123 and that object has available_on as a property which tells you when funds will be made available (or the day of, UTC based)
So you would track all of this and whenever you look at your balance you can compute that
so our task is to take a day worth of transactions that we store in our database and reconcile it to the payout to the business so that the frequency and amount is predictable - we're giving each day's worth of transactions a 4 day buffer so we have 4 days for all the transactions to be accumulated to our customer's account - so instead of a balance transaction - is there a way for us to be able to query the transactions processed in some time period and then when all the funds from that time period are ready we can dispatch a release to the customers
mostly aggregate this in real time
the time period to when all the transactions for the purchases on a given day may vary, but I think we don't have to worry about that as much in terms of frequency because we can keep the 4 day buffer
so you mean stream the balance in real time to figure out if our records and the customer's balance are the same? after which we can release the funds
one really quick question, related, but a little different, do you know the endpoint to query current disputes?
yeah basically everything things happen in your account cache things
https://stripe.com/docs/api/disputes/list is how you list disputes