#sahil_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/1344660004967288893
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Could you please share more details about your ask ?
For example, you can fetch the list of all Connected Accounts payout via this API:
https://docs.stripe.com/api/payouts/list
$payouts = $this->stripe->balance->retrieve([], [
'stripe_account' => $user->stripe_connected_account_id
]);
if (!empty($payouts->pending)) {
foreach ($payouts->pending as $pending) {
$nextPayout += $pending->amount;
}
}
if (!empty($payouts->available)) {
foreach ($payouts->available as $available) {
$totalAvailable += $available->amount;
}
}
// Get Next Payout Date
$upcomingPayouts = $this->stripe->payouts->all([
'limit' => 1,
'status' => 'pending'
], [
'stripe_account' => $user->stripe_connected_account_id
]);
Yes that looks good. What's the issue you are facing ?
You can't list upcoming payout, there is no public API for that.
This info isn't available in the public API
I was checking if this can be viewable using the Connect Embedded Components:
https://docs.stripe.com/connect/supported-embedded-components/payouts
But it doesn't display the next date of the upcoming payout