#taron_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/1230501718433730601
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
Hi @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
https://docs.stripe.com/reports/api is our docs on the Reports API
with the get list it is took a bit long time
That will be the easiest way to get this calculation
Yep you would need to do a lot of pagination and it likely will take a while
I can get weekly/monthly and yearly reports?
I need to get weekly/monthly/yearly Revenue
Yes you can indicate a start and end time with the Reports API: https://docs.stripe.com/reports/api#report-runs
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?
Pause and read through those docs please
Then you can ask further clarifying questions
It will answer a lot of what you are asking
I noticed that it will be in url
"url": "https://files.stripe.com/v1/files/file_xs8vrJzC/contents",
Correct, that will contain a CSV
ok thank you for your support but I need JSON
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