#redam_api

1 messages ¡ Page 1 of 1 (latest)

past thicketBOT
#

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

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

cold sandal
#

The file content can only be access with API key, e.g. using curl as example

#

How would you like to download the report?

mortal moss
#

i have a nestjs backend (api), i want to retrieve the content in my code

#

do i have to use http or is there any sdk method available?

#

btw i using stripe sdk in my nestjs app to create these reports

cold sandal
#

stripe-node library doesn't provide a function to download the content. You likely need to third party library such as axios to download the report

mortal moss
#

if i were to use axios, how to pass my stripe key in the request? should i provide it in the headers?

#

i have another question: is it possible to run reports on specific products?

cold sandal
#

if i were to use axios, how to pass my stripe key in the request? should i provide it in the headers?
Yes. I'd recommend giving it a try in test mode

mortal moss
#

I'm just wondering if there's a way to get some statistics on who purchased what during specific time ranges without having to save the actual data from stripe in my database.

I am trying to use the run reports but it didn't achieve what i want.

I'm not sure if stripe does provide the api to do what i want, so i thought i'd check with you .. i'll provide a screenshot of what i'm trying to achieve

cold sandal
#

Stripe doesn't have an API to get the statistics with given products. I'd recommend storing the information in your database and analyse from there accordingly

mortal moss
#

ok thanks