#atal-balance-transfer

1 messages · Page 1 of 1 (latest)

last ventureBOT
fiery sluice
#

Can you share detailed information on this too so that I can help you

#

atal-balance-transfer

exotic solar
#

Yes.

#

Here is the Id of the connected account acct_1MjpJ1DFdhYu9yQc with a total balance of 13,067.37kr DKK

#

When I try
payouts->create([ 'amount' => 444, 'currency' => 'dkk', 'description' => 'asdf', ], ['stripe_account' => 'acct_1MjpJ1DFdhYu9yQc']);

#

I get "Insufficient funds"

fiery sluice
#

that account has no balance

#

the funds you're talking about are pending

exotic solar
#

Can I check if a succeeded transfer is available for payout or not?

fiery sluice
#

A Transfer of funds is instant by default unless you use source_transaction. In that case the funds are available based on the original Charge's fund

What you need to do is look at the BalanceTransaction's available_on property to know when the funds will be available

#

why aren't you just using Automatic Payouts and letting us do the Payout for you as the money becomes available daily?

exotic solar
#

We have venue bookings, and need to make sure that bookings are passed, and only then payout the host.

fiery sluice
#

gotcha then you have to track funds availability in that case

exotic solar
#

How can I get the BalanceTransaction from a transfer?

#

or a paymentIntent

fiery sluice
#

It's a bit complex. Every object that moves money has its own BalanceTransaction. So you can look at the original Charge's BT, the Transfer's BT and the Charge on the connected account's BT, each will have their own logic

#

You Transfer for $100 to a connected account will create a Charge on the connected account py_123. That's called the destination_payment: 'py_123' in the API, it can be expanded, and it has its own BalanceTransaction that you can look at

exotic solar
#

Don't the charges begin with a ch_

fiery sluice
#

you can, you just went too quick and didn't properly pass the Stripe-Account header like you did for the Payout creation

#

it lives on the connected account