#tarunmv30_api

1 messages ยท Page 1 of 1 (latest)

mossy wolfBOT
#

๐Ÿ‘‹ 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.

split scroll
#

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))])

short dirge
#

Hello

split scroll
#

Hi!

short dirge
#

It seems you have the balance object right there, no?

split scroll
#

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

short dirge
#

How much they have earned lifetime?

split scroll
#

3665.20

mossy wolfBOT
mellow hazel
#

๐Ÿ‘‹ 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?

split scroll
#

yes

mellow hazel
#

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