#spera_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/1237755068032487434
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Do you mean you're not seeing pending payouts with List Payouts API?
https://docs.stripe.com/api/payouts/list
Can you share an example request?
/v1/balance/pending/eur is a dashboard only route. You can't make an API request there from other sources.
yes, /v1/payouts?status=pending returns:
{
"object": "list",
"data": [],
"has_more": false,
"url": "/v1/payouts"
}
where the dashboard endpoint returns the expected payouts for the next 3 payouts
And you're making the above request in live mode correct? Using the correct API key?
Hmm the API only shows the payouts sent to the bank.. there are no pending payouts at the moment.
If you retreive the balance of the account using Balances API
https://docs.stripe.com/api/balance/balance_retrieve
Are you seeing the pending amount in the response?
yes, the pending amount there plus the available balance sums up to the sum of the expected payouts
Great!
The upcoming payout feature is dashboard only. But Balances API can help with upcoming payout amount.
but this does not give me the information as the dashboard request does, the dashboard request list every single future transaction with an estimated arrival date as well as the expected amount for that transaction
the balance api just provides one sum and no date at all
Yeah I was about to say, if you're trying to go granular with those arrival dates then you'd also want to look at BalanceTransactions API
https://docs.stripe.com/api/balance_transactions/object
BalanceTransactions object has available_on parameter which you'd be able to use to estimate when the funds from a specific payment will become available & can be paid out
https://docs.stripe.com/api/balance_transactions/object#balance_transaction_object-available_on
I'm happy to file a feature request for a "Upcoming payouts" API with dashboard level details OR you can file one too via our support form (that way you can also follow up directly with the right team)
https://support.stripe.com/?contact=true
I was afraid of having to resort to every singular balance transaction and I was actually hoping the dashboard functionality would be available in the api ๐ฆ
yes, can you please file a feature request for me? ๐
Will do
alright hanzo, thank you for your help!