#dario_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/1349038700323143791
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello, apologies for the delay. Looking into this and will get back to you
Thanks
Hello
Jumping in to help out
Are you following any docs/guides for this?
If so can you share the URL so that I'm on the same page?
Hi, I was looking at this API endpoint: https://docs.stripe.com/api/accounts/object
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I was hoping to use it to get account information
Right right, but the call you're making is from your client-side code correct?
That API endpoint is supposed to be called via server-side SDK since it uses the secret API Key
Yes, the frontend. I was able to get tax registrations endpoint and tax settings via the frontend, but this one in particular is failing
So to confirm, there is no way to use the account endpoint from the frontend?
Afaik, no you can't call that from just frontend code. Still looking to see if there are workarounds.
The ideal approach would be to have a backend that your app can talk to and it calls the Stripe API for you - https://docs.stripe.com/stripe-apps/build-backend#using-stripe-apis
Quick question - what sort of app are you building?
Is it a frontend only app? https://docs.stripe.com/stripe-apps/how-stripe-apps-work#frontend-only-applications
Yes, a frontend only app
Gotcha. In that case, you should be able to use the client to make this request ๐ค
Like afaik, the authenticated API client doesn't have limitations on the API endpoints that can be invoked - https://docs.stripe.com/stripe-apps/reference/extensions-sdk-api#createHttpClient
have you configured the correct permissions for Accounts API?
https://docs.stripe.com/stripe-apps/reference/permissions#object
Yes, the stripe-app.json has the connected_account_read permission
Hi! I'm jumping in for my colleague here. Where are things at? Have you been able to get moving forward again?
Hi, sadly no, still getting an error getting the account information. But if this endpoint is only usable on the backend, we'll need to skip it for now
Sadly no, it seems as if the Stripe API just rejects the request without even making it on the API
Not seeing it in the network log either
Digging.
Still digging, sorry - have a baker's dozen convos going at the same time. ๐
All good, thanks for trying out
What happens if you remove stripeAccount: this.stripeAccountId, from the new Stripe() call?
taking over for timebox and catching up on the thread now... the discord is a little busy atm so it might be a little bit