#taron_api

1 messages ¡ Page 1 of 1 (latest)

fresh coyoteBOT
#

👋 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/1230501718433730601

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

mighty trellisBOT
mystic talon
#

Hello

tough tapir
#

Hi @mystic talon

mystic talon
#

There is no API that returns this directly

#

You would either use the Reports API

#

Or you would need to list out your balance transactions

tough tapir
#

with the get list it is took a bit long time

mystic talon
#

That will be the easiest way to get this calculation

mystic talon
tough tapir
#

I can get weekly/monthly and yearly reports?

#

I need to get weekly/monthly/yearly Revenue

mystic talon
tough tapir
#

ok I see, interval_start and interval_end

#

and what about revenue

#

I will get it in response or I need to calculate it?

#

it will return report as a JSON?

mystic talon
#

Pause and read through those docs please

#

Then you can ask further clarifying questions

#

It will answer a lot of what you are asking

tough tapir
#

I noticed that it will be in url
"url": "https://files.stripe.com/v1/files/file_xs8vrJzC/contents",

mystic talon
#

Correct, that will contain a CSV

tough tapir
#

ok thank you for your support but I need JSON

mystic talon
#

Yeah then you want to List Balance Transactions. I'd recommend caching the data on your end so you only have to retrieve a small portion each time you want this info