#alanshortz-payment-balance

1 messages · Page 1 of 1 (latest)

fossil scaffold
#

Are you using manual payouts in this world?

prime surge
#

yes indeed

fossil scaffold
#

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

prime surge
#

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

fossil scaffold
#

mostly aggregate this in real time

prime surge
#

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?

fossil scaffold
#

yeah basically everything things happen in your account cache things

prime surge
#

perfect!! This is exactly what we needed

#

and yeah I guess we can build it out on our end to stream the balance from stripe to be able to accumulate so it matches our records

#

I appreciate the help!