#themechanic_api

1 messages ยท Page 1 of 1 (latest)

elfin spindleBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

south kindle
#

Hi, let me help you with this.

#

Depending on what data you want to display, you can use API to get individual objects, e.g. PaymentIntents, and calculate it yourself.

elfin spindleBOT
south trail
#

Hi !

#

I need mainly starting balance and ending balance (for a given month)

south kindle
#

In short, Stripe doesn't make report data available via API, so you will need to construct it yourself.

south trail
#

oh, so i would have to call it for each of my accounts connect, at the 1st at 00:00 ?

#

does Stripe think about make this data available ?

south kindle
south kindle
south trail
#

ok, or i could download the csv file and parse it

south kindle
#

Yeah, that's another option

south trail
#

are the monthly balance reports generated automatically or have i to create it ?

rose lodge
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

#

you can, schedule the reports to run automatically or you can run them whenever you want, using report_runs

south trail
#

hi !

rose lodge
#

you can also schedule reports on the dashboard

south trail
#

ok ! when i create a report a report run, how many times it takes to achieve ? am i obliged to use webhooks or can i just wait in my script ?

rose lodge
#

it's recommended to use webhooks because it's async

#

and if you await in your code this means that you're blocking your server and potentially even timeouting

south trail
#

ok i'll dig it

rose lodge
#

let me know if you need any more help