#nkusibojoski - balance transfer
1 messages · Page 1 of 1 (latest)
Hello 👋
nkusibojoski - balance †ransfer
once you created the charge (10$), you should receive an event mentioning the success of the charge
https://stripe.com/docs/api/events/types#event_types-charge.succeeded
You create directly the transfer to your connected account (8$)
If you have sufficient balance, the transfer will be done directly
If you don't have, the transfer will be delayed couples of days until you'll have
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
nkusibojoski - balance transfer
But this is not the scenario that I want 😦
So how can I know that the charge of 10$ are available to my balance, so then I can create transfer?
you 'd use the Balance Retrieve API to check your balance periodically and see what you have
there's also a balance.available webhook event
is there an API to check status of payment_intent or charge ?
When balance.available is triggered ?
as far as I know though that event is not always reliable and has some ehdge cases. If it were me I wouldn't do what you're doing, I'd do what soma said
like you simply transfer the funds to the connected account, they are paid out when they're available. Why do you want to complicate it by manually waiting for the balance to be available, it's the same thing, just slower
but if you do want this, I'd recommend setting up a cron job to check your Stripe balance once a day and seeing what transfers you can make. Note also you must set your platform account to use manual payouts so you accumulate a balance