#soma-payout-balance
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ that's going to depend on how you're creating the Payout. If you're setting method to instant then it will pull from your balance.instant_available, otherwise it pulls. from balance.available.
https://stripe.com/docs/payouts/instant-payouts#creating-an-instant-payout
Sure
how can I know programmatically if the method is "instant"?
the balance object, described here https://stripe.com/docs/api/balance/balance_object says nothing about the method. It is safe to think the way to go is asking if the balance.available has funds or if the balance.instant_available has funds?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
The balance transactions won't define the method, because it's not relevant for them. It's the method that you define when creating the payout that determines what source the payout attempts to pull from.
This field here:
https://stripe.com/docs/api/payouts/create#create_payout-method
But yes, querying your available balance is the correct way to determine if you have the funds to process a Payout.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
thank you sir!
Any time, happy to help!