#mrelliot69-balances
1 messages · Page 1 of 1 (latest)
i'm using express and i'm trying to understand what balance value should i check before making for example a refund or a reversetransfer
should i check the available property of the balance object ?
it depends if the original payment's funds are already available or are still pending.
generally, you wouldn't have any issues if the original payment's funds are still pending. The funds for the refund/reverse transfer would be taken from the pending balance
if the original payment funds are already available, then you should check your available balance to ensure that there is sufficient available balance
so basically i should check both properties? pending and available if eitheir one is lower or equal to that amount i can do a reversal or refund with no problems right
not quite. First, check if the payment's balance transaction available_on is >= current datetime. If available_on < current datetime, then verify if there is sufficient available balance in https://stripe.com/docs/api/balance/balance_object#balance_object-available-source_types-card
1sec im checking the link that you sent
when you say payment you are refering to the py_object of the connected account?
regarding the avaialble balance i just need to check the property available.amount right?
yes
srry yes what?
when you say payment you are refering to the py_object of the connected account?
sorry I missed that question, no you can retrieve the balance by creating a Stripe instance for the Connect Account in question and query this API https://stripe.com/docs/api/balance/balance_retrieve
regarding the avaialble balance i just need to check the property available.amount right?
yes
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
so before i make a refund, reverseTransfer, or a debbit from a connected account i should allways check the property available.amount from the balance object
is this correct?
?
are you there @tough tusk
so before i make a refund, reverseTransfer, or a debbit from a connected account i should allways check the property available.amount from the balance object
you mean yours? or theirs?
*connected account (express)
if you need to look at the balance yes sure, but I don't fully understand the use case
so it's really up to you
what i was asking is if when i make a reversetransfer or for example a debbit from a connected account i should check first the balance available from the connected account to avoid negative balances on the connected account
yes you could
i know that i can, what i'm trying to understand is if i need to do it / or if this is a correct aproach
I can refer you to this guide https://stripe.com/docs/connect/account-balances#accounting-for-negative-balances
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!