#JohnM-balance

1 messages · Page 1 of 1 (latest)

fervent egret
fervent egret
#

Hey, apologies for the delay. Looking at this now

fervent egret
#

Can you clarify what you mean on "the balance available for transfer or payout is reflected of the reserve balance"?

stable sand
#

Yea. I have a transfer failing because of insufficient funds. Based on my normal calculation... available minus pending balance , I should have enough for the transfer. However I have a connected reserve balance because of some refunds. It seems like the connected reserve is being used

#

what my question is in the balance object, based on the documentation... the connected reserve should be broken out by payment type... ... that breakout is missing.

fervent egret
#

From which doc? And what are you seeing instead?

stable sand
#

notice connected_reserve

#

All of the other balances break out by source type

high hollow
#

👋 I'm hopping in since @fervent egret has to leave soon - give me a minute to catch up

stable sand
#

yea. No problem

high hollow
#

Let's back up for a second - you mentioned that you had a transfer failing because of insufficient funds. Do you mind if we start there and you send over the request ID?

stable sand
#

"stripeCode": "balance_insufficient",
"stripeMessage": "Insufficient funds in Stripe account. In test mode, you can add funds to your available balance (bypassing your pending balance) by creating a charge with 4000 0000 0000 0077 as the card number. If you provide source_transaction and the source transaction's available_on date has passed, you still need funds in your available balance. You can use the /v1/balance endpoint to view your Stripe balance (for more details, see stripe.com/docs/api#balance).; code: balance_insufficient; request-id: req_tn2lKED0w3ztxy"

#

balance object

#

<com.stripe.model.Balance@1379145119 id=> JSON: {
"available": [
{
"amount": 322854,
"currency": "usd",
"source_types": {
"bank_account": 650027,
"card": -327173,
"fpx": null
}
}
],
"connect_reserved": [
{
"amount": 226490,
"currency": "usd",
"source_types": null
}
],
"instant_available": null,
"issuing": null,
"livemode": false,
"object": "balance",
"pending": [
{
"amount": 48520,
"currency": "usd",
"source_types": {
"bank_account": 0,
"card": 48520,
"fpx": null
}
}
]
}

high hollow
#

Looking!

stable sand
#

no hurry... this is in a test environment...

high hollow
#

For the request you sent over, the source_transaction you're using has already passed its available_on. Because of this, you need to have the correct amount of funds in the available balance - not the pending balance

#

actually wait, i may be looking at the wrong thing

stable sand
#

That may well be. I was wanting to try to figure out from the balance object what my balance available for transfer factoring in the reserve balances when I noticed the reserve balance was not broken out by the source types like the other balances

#

we do transaction in both ACH and credit cards ... hence the need to check both source types

high hollow
#

Quick question for you - is the Balance object you sent over the Balance at the time of the transfer, or what you just grabbed?

stable sand
#

what I just grabbed

#

here is the lastest version

#

<com.stripe.model.Balance@317630554 id=> JSON: {
"available": [
{
"amount": 322374,
"currency": "usd",
"source_types": {
"bank_account": 649547,
"card": -327173,
"fpx": null
}
}
],
"connect_reserved": [
{
"amount": 226490,
"currency": "usd",
"source_types": null
}
],
"instant_available": null,
"issuing": null,
"livemode": false,
"object": "balance",
"pending": [
{
"amount": 48520,
"currency": "usd",
"source_types": {
"bank_account": 0,
"card": 48520,
"fpx": null
}
}
]
}

#

notice under connect_reserved

#

source types is null......

#

unlike available and pending which have balances broken out by source type

vestal robin
#

that's expected, the reserve is global on your account

stable sand
#

Ok. So, does that effect the balance when trying to determine availability of funds when trying to execute a transfer ?

vestal robin
#

yes it does but I don't know how that applies sorry. You should talk to our support team directly for help

stable sand
#

ok. Fair enough. I ppreciate the help

vestal robin
#

sure, sorry we couldn't help more

stable sand
#

NP. I manually topped off the account and requeded the webhook and it succeed . I just need to learn more about how all of these balances fit in together.

#

There is something maybe you can help me understand... pertaining to refunds...

#

for refund py_1JwsNlHFDCZvO5mLXMmiWabF

#

I am trying to see what is the amount of the refund

#

the charge was for $600. The fee was for 4.80. But it says the net was for -4.80. What is the net amount of the refund ? Is it 600 ... meaning refunded entire amount of charge, or 595.20 (refund minus fee)

vestal robin
#

We don't refund our fee, so when you refund $600 to the customer, you end up losing the Stripe fee

stable sand
#

So, we as the merchant that is

#

Yea, I asked that yesterday... but didn't understand the answer ..... so the total amount of the charge would be refunded to the customer... but the fee incurred would be deducted from our stripe account

vestal robin
#

correct

stable sand
#

thanks for clarifying that.

vestal robin
#

sure!