#sandeepdil
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ what is the error being returned?
req id : req_ocSSevUdzsKLon
getting error
{
"error": {
"code": "balance_insufficient",
"doc_url": "https://stripe.com/docs/error-codes/balance-insufficient",
"message": "You have insufficient funds in your Stripe account for this transfer. Your card balance is too low. You can use the /v1/balance endpoint to view your Stripe balance (for more details, see stripe.com/docs/api#balance).",
"request_log_url": "https://dashboard.stripe.com/logs/req_ocSSevUdzsKLon?t=1698087238",
"type": "invalid_request_error"
}
}
while balance is available in stripe
What output do you see when you retrieve the Balance for the Stripe account you're making the Transfer from?
https://stripe.com/docs/api/balance/balance_retrieve
it is showing balance
What is the amount for the usd currency in the available hash in those results?
{
object: 'balance',
available: [ { amount: 1587, currency: 'usd', source_types: [Object] } ],
connect_reserved: [ { amount: 0, currency: 'usd' } ],
livemode: true,
pending: [ { amount: 0, currency: 'usd', source_types: [Object] } ]
}
Hm, odd, that seems sufficient. Do you still encounter that error when trying to make the request now? I'm asking as I see the request you referenced is from about a day ago, and am wondering if that error is still being returned.
But the request was made on Oct 23 at approximately 3 PM in the timezone you referenced above.
on the time of request, we were having sufficient balance also
Hm, looks like it's specifically mad about you not having a card balance.
If you set source_type to bank_account does it succeed?
https://stripe.com/docs/api/transfers/create#create_transfer-source_type
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
if source type is card... which card will be charged ?
It's referring to a specific payment method type:
https://stripe.com/docs/payments/fpx
Shouldn't be relevant if you aren't processing those type of payments.
if source type is card... which card will be charged ?
None, source_type for Transfers is used to designate which of your available balances to pull from, it isn't associated with processing a payment at the same time.
ok so like if we wanna make a payout from our stripe wallet . what changes we have to made in our current request ?
Just making sure we're aligned, since you mentioned payout in your most recent message but your request was creating a Transfer, are you trying to create a Payout (moving funds from your Stripe account to your bank account) or a Transfer (moving funds from your Platform Account's Stripe Stripe balance to the balance of one of your Connected Account's)?
yes i'm trying to make payment from my stripe balance to connected external bank account
{"result":{"object":"balance","available":[{"amount":1587,"currency":"usd","source_types":{"bank_account":1587}}],"connect_reserved":[{"amount":0,"currency":"usd"}],"livemode":true,"pending":[{"amount":0,"currency":"usd","source_types":{"bank_account":0}}]}}
if i will use "source_type" bank_account in "stripe.transfers.create" api... will it deduct money from my available stripe balance or not
Gotcha, then yeah, you'll want to set source_type to bank_account in the Transfer request. Are you planning to accept card payemnts in addition to ACH payments? If so, your Transfer process will need to be able to check what source_type has the available balance and create Transfers using that source_type.
Is this a brand new integration that you've built? I'm asking because I think you're only running into this behavior because it looks like you're using our legacy ACH flow.
yes its new integration. we were integrate stripe 2-3 months ago and still in testing phase
also we are accepting ACH payment using bank as well as card
I think you built your ACH flow using this approach:
https://stripe.com/docs/ach-deprecated
That approach is considered legacy at this point as we've replaced it with our newer version of ACH payments:
https://stripe.com/docs/payments/ach-debit/accept-a-payment
If you're open to restructuring your integration to use our new approach, I would recommend doing so.
if we will continue to use legacy approach. will it create any problem ?
You may have to work around odd legacy behavior that we've improved upon in newer versions, like worrying about and dealing with source_type. It also likely means it'll take more effort to add new payment method types in the future if that is something you're considering.
But in general, no, the flow still works.
i ask thing question because we are ready to launch this version of our system. In next version we will use your new flow but until that if we can go with legacy. it will be good.
as you suggest we just have to provide source_type which has balance in our stripe balance .. right ?
Yup, you'll need to check your balance and ensure you're pulling from a source_type with adequate funds, or make multiple Transfers pulling from a combination of source_types if required.