#hannes_best-practices
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1332443144549302298
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
To get the stripe balance by the way we sum balance.available[0].amount and balance.pending[0].amount
We emit a balance.available event when charges are available to be paid out: https://docs.stripe.com/api/events/types#event_types-balance.available
Hi @random dawn , thanks for the response. We did find that, however, in that webhook we don't get any info on which charges can be paid out... We'd like to track this on a charge basis
Unfortunately we don't offer that on a per charge basis. We do have a transfer_availability parameter when creating Transfer that tells us to wait for the funds to land before sending them to your connected account, but unfortunately we don't have an event for that.
https://docs.stripe.com/connect/separate-charges-and-transfers?platform=web&ui=stripe-hosted#transfer-availability
The balance transaction associated with the payment intent does have an available_on that which tells you when the funds will become available on your account.
https://docs.stripe.com/api/balance_transactions/object#balance_transaction_object-available_on
And you can get to the balance transaction by retrieving the payment intent and expanding latest_charge.balance_transaction
https://docs.stripe.com/api/expanding_objects