#Wojtek
1 messages ยท Page 1 of 1 (latest)
You need to make requests via your backend to that endpoint: https://github.com/stripe/stripe-apps/issues/580#issuecomment-1129455046
Describe the bug Not able to retrieve Account object when calling const account = await stripe.accounts.retrieve(userContext.account.id);. App is throwing the following error Invariant Violation: s...
Can I call this API even when the account is not connected to our own account?
Nope, it'll error
Sorry if that's a dumb question. These accounts will be some users that in theory might want to try our app. I thought our backend won't be able to get information about that account unless they are already connected
What is the suggested flow then? Connect and then check if the account has everything turned on?
Well, if they've installed your Stripe App then at that point there'll be a 'connection' between their Stripe account and the publishing account
Oh, and then I can call this endpoint to get their data without errors?
Just make sure your app has sufficient object permissions to access the data: https://stripe.com/docs/stripe-apps/reference/permissions#object
Perfect! That's even better ๐
Which token should be used on the backend to call this API then?
Sorry one last question ๐
The secret key of the account that owns the app
Ahh, makes sense