#tarunmv30_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/1286060794949271635
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
this is from the api/balance call
acct_1PXzSYPhGdKHtuQw
The user balance object is Balance(object: "balance", available: [Capture.BalanceDetail(amount: 0, currency: "usd", source_types: Capture.SourceTypes(card: 0))], instant_available: [Capture.BalanceDetail(amount: 45000, currency: "usd", source_types: Capture.SourceTypes(card: 45000))], livemode: false, pending: [Capture.BalanceDetail(amount: 135000, currency: "usd", source_types: Capture.SourceTypes(card: 135000))])
Hello
Hi!
It seems you have the balance object right there, no?
You retrieve an account's balance using https://docs.stripe.com/api/balance/balance_retrieve + the Stripe Account header (see: https://stripe.com/docs/connect/authentication)
Its for some reason not accurate tho
If i want to show the user how much they have earned, whats in transit to bank how would you reccomend getting these numbers so its the most accurate
How much they have earned lifetime?
For in transit you can List Payouts and see if any are in_transit: https://docs.stripe.com/api/payouts/object#payout_object-status
3665.20
๐ Stepping in for my teammate. Just to confirm, you're looking for a way to retrieve 3665.20 ("lifetime total volume" from the screenshot above) programmatically?
yes
Got it. There is no single endpoint or balance property that will return this value. You'd have to calculate this on your own by retrieving all previous payments and adding them up