Hey Dmitriy,
When you create a destination charge, the transfer is created automatically for you and associated with the original charge. In that case, the transfer is linked to the charge's availability which means the funds are not available immediately. We will release the funds in the connected account once the funds for the original charge are available which would be two days later.
When you split charges and transfers though, you have to manually create the transfer yourself. Even though you associate the charge with one or multiple transfers via `transfer_group`, this transfer is taken out of your own available Stripe balance. This allows you to charge John Doe $10 on behalf of a third-party but send them the funds upfront from your own balance.
In your case though the funds are not available and you don't have any other funds available in your balance. The charge's funds are in the pending balance and will stay there for two days.
You have two solutions here:
- You wait two days for the charge's funds to be available and at that point you split them in one or multiple transfers to connected accounts via `transfer_group`.
- You use `source_transaction` [1] when creating the transfer and pass the charge's id (ch_XXXX) in it. This allows you to create a transfer from your pending balance that will follow that charge's availability similar to how it works for destination charges.
Based on your needs, the second option seems best and you can always create another transfer later for the remaining amount and link everything together with the same `transfer_group`.
Hope this helps!
Remi