#omidroostaeifarsi
1 messages · Page 1 of 1 (latest)
Hi 👋 sounds like you're working on a Separate Charges and Transfers flow?
All payments are deposited in the main account after a few days and this can be seen in the panel.
Have you looked at the source_transaction parameter that can be used when creating the Transfer objects?
https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-availability
It allows you to create a Transfer that will be processed when the funds are settled, rather than having to track when funds settle and create the Transfer later.
Yes, I know about the payment processing flow
Using that parameter does get a bit harder if you're accepting asynchronous payment methods like ACH Direct Debits.
Our process is that all the money enters the account platform and after that we transfer the money to connect accounts.
In this screenshot that I sent, an amount of money will be deposited into the main account tomorrow
1- I want to know what time of day this money is deposited in the main account
2- And what payments have been calculated in this transaction
You will want to look at the associated Balance Transaction objects, which have estimates of when they will settle:
https://stripe.com/docs/api/balance_transactions/object#balance_transaction_object-available_on
I need those via webhooks
i checked these transactions, the payments are deposited at 2 work day times, I want to deposit the amounts of each connect account to their account when the payments of day 12 are deposited into the platform account.
For example, if the amount of $18,104 becomes available on August 15, I will transfer the share of each connect account
I'm sorry, I'm having a hard time parsing what exactly it is you're trying to accomplish.
oh sorry
No, I'm sorry, I feel like something isn't quite clicking for me and I'm not sure what.
So taking a step back, is your goal to build a process that automatically transfers funds to your Connected Accounts once the Charge that is making those funds available has finished settling on your Platform Account?
for example, tomorrow $1000 (the sum of the payments of the previous two days) will be deposited into the main account, I want to be informed about this through a web hook and then transfer the amounts related to each account connection to their account. And I need to know what range of payments this 1000 dollars includes, according to which I can check the orders of our own system and only transfer the money of those orders.
That's going to be tedious.
There are very few webhook Events that correspond with upcoming activity, and as far as I'm aware none that relate to your balance.
balance.available is the only Event that comes to mind that is triggered when your balance changes, but those Events won't contain references to the Balance Transactions that caused your balance to change.
Almost as you said, should this operation be done by the Stripe platform itself, or should our system do it through an API?
yeah i use this webhook but as you said only perform total available amount
If by "this operation" you're referring to creating a Transfer to move funds to your Connected Accounts, that is something you explicitly need to do if you're using a Separate Charges and Transfers flow. However, you can create the Transfer before funds are available by using the source_transaction parameter I mentioned earlier. Doing so will cause the Transfer to be performed once the funds are available on your Platform account.
we use standard charges
I'm not sure I understand what that means. For your flow, you process payments directly on your Platform account and then create Transfers to move the funds from those payments to your Connected Accounts, right? If so, that is a Separate Charges and Transfers flow:
https://stripe.com/docs/connect/separate-charges-and-transfers#collecting-fees
In this method, this operation must be done on each payment, but we want it to be transferred at once, is this correct?
Correct, the approach I'm referring to is handled on a per-payment basis. If you want to do lump sum Transfers then you will need to build your own logic for that.
this method has been another fee's
my own system logic to process the sum transfer is done
but when no money available i can't transferred
Oh, you're running into problems because the balance on your Platform Account is automatically being paid out before you can make Transfers from your Platform Account to your Connected Accounts?
In this way, the payments are deposited into the platform account and after our internal operations on the order, they are deposited into the connect accounts, but the problem here is that we do not know exactly what day the money that is available now is for, and our calculations are based on the same.
Previously, the payout of platform accounts set to manually
There isn't a good way to find that out until the funds are leaving your Platform account's balance to be paid out to your bank account.
Oh, if you're on manual payouts then there isn't a good way to see what is impacting your balance and when.
Do you have an example payment I can look at from your flow? I have an idea on how to track this (though you'll need to start tracking the associated objects earlier in the process) but would like to take a closer look at how you're handling things to make sure it will work.
I want to know what payments will be included in the money that will be deposited into the platform account tomorrow, so that I can process the same payments and transfer them to the account accounts.
That's not possible
To explain the problem another way, all the payments that are made will be available in the platform account after at least two working days, I will notice the availability of this money through a web hook. Now I want to know what these payments are for, so that I can transfer the amount of each payment related to the Connect account and deposit the rest of the money into the bank account.
Hello! I'm taking over and catching up...
hi @pure jewel
Your best bet is probably to listen for the balance.available Event which will tell you when your balance increases. Then, when you get that Event, you can list recent Balance Transactions to see what changed the balance recently: https://stripe.com/docs/api/balance_transactions/list
Then you can determine what to do next based on what you find there.
Is a list of transactions associated with the event that calls the webhook
No.
There's no Event that fires every time your balance changes, and there's no Event that fires which tells you why your balance changed.
balance.available is the closest; it fires when your available balance increases, but it doesn't fire for negative amounts, and it doesn't tell you why the change happened.
I have used this and it only informs the amount that the balance has increased
Correct.
So when this event is fired, i can find out from the list of transactions which transactions increased the balance, right?
through this
Yes, each change to your balance has a correseponding Balance Transaction associated with it. But those Balance Transactions are not associated with any particular Event.
ok, so there is no direct way to figure this out
You can look at the Balance Transactions to figure it out.