#salmanaliawann_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1224851654151766180
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
HI there! Do you have a request ID for your request to retrieve a balance?
Alternatively, please share your Stripe account ID
I don't possess the stripe account and client has not provided additional information than the keys.
I see. Please don't share the keys here
how can I fetch stripe account ID by API?
That's not possible, unfortunately.
Alright, how can we move forward with the issue then?
So a platform may have a USD balance of zero if the platform account's settlement currency is not USD.
Do you know which country the platform account is based in?
USA, the client made a purchase as a user already that was later transferred to platform's bank account because automatic payouts were enabled. Later he created a top-up that he can see in his dashboard but we haven't fetched successful balance yet. It is always returned zero.
$stripe->balance->retrieve([])->available
Even the pending and connect_reserved balances are zero as well.
There might be a delay before top up funds show up in the balance: https://docs.stripe.com/connect/top-ups#settlement-timing
Top-up created before 27/03 should have shown up by now.
I can't really help without an ID, either the account ID or a request ID. If the client hasn't shared these with you, I recommend asking them to join this Discord channel and ask for help or asking them to reach out to our Support team about this: https://support.stripe.com/contact/
Apart from this, is there a way that I can send the request to stripe to transfer the funds to connected account's bank account when the funds are available in the platform's connected account? Instead of returning insufficient funds to user. I read about the transaction_source field or something similar but the issue is that we have multiple transcations that make up to amount of one payout transfers.
Just to be clear, in this case the platform is creating one-off Transfers instead of using destination charges?
Yes
$stripe->transfers->create([
'amount' => $stripeWithdrawalAmount,
'currency' => 'usd',
'destination' => $user["stripe_connect_account_id"]
]);
Yep, I think you're thinking of source_transaction: https://docs.stripe.com/connect/separate-charges-and-transfers#transfer-availability
but we have multiple payments that make up to one transfer amount
Let's say 10 different tickets were sold for a single event, now we have 10 transactions/payments incoming but we have to make one single payout transaction at the end of the day. How will it work?
Terminology will be critical here, I think you're referring to a single transfer and not a single payout
Is there a specific reason why your client is using separate charges & transfers instead of destination charges?
No the reason is not specific. Is there a better approach to this?
We just need to overcome the issue of insufficient funds error and automatic transfer to connected user's account upon funds availability
Got it. In this case you'll want to create 10 transfers, one per source transaction/charge. This way the funds will be transferred to the connected account before hitting the platform's available balance
I got your point but in order to make a single transfer, how can we make sure regarding the availability of the sufficient funds?
Hi @native sluice I'm taking over this thread
https://docs.stripe.com/api/balance/balance_retrieve you can use this API to retrieve your account balance, and create transfer if you have sufficient 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.