#mrelliot69-balances

1 messages · Page 1 of 1 (latest)

slate cloud
#

hi there! how can i help?

leaden juniper
#

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 ?

slate cloud
#

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

leaden juniper
#

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

slate cloud
leaden juniper
#

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?

tough tusk
#

yes

leaden juniper
#

srry yes what?

tough tusk
#

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

leaden juniper
#

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

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?

leaden juniper
#

*connected account (express)

tough tusk
#

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

leaden juniper
#

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

tough tusk
#

yes you could

leaden juniper
#

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

tough tusk
jovial thicket
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!