#tamparara
1 messages · Page 1 of 1 (latest)
What's your backend code/endpoint that the fetch API calls?
That code I've posted is on the client-side, so, no backend here.
The endpoint is this one from the error:
CURL works fine but asks me for password
Can you share the actual URL
Anyway, you shouldn't really be using that endpoint. Not sure where you found that. If you're trying to download the report file, use File Links: https://stripe.com/docs/api/file_links
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
The real endpoint is: https://files.stripe.com/v1/files/file_1NAq4ZAGV54565zrDNk34K7R/contents
so instead of that url I should use links.url?
Yeah, that's not a public API really so you shouldn't use that directly. Instead you should be using the File Links API I shared to create a public URL you can use to download the report/files
tahnk you