#intelagent_api
1 messages · Page 1 of 1 (latest)
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- intelagent_api, 4 days ago, 21 messages
👋 Welcome to your new thread!
⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1252771523199242311
📝 Have more to share? Add details, code, screenshots, videos, etc. below.
Hi there!
Hello!
I think there's an additional flag you need to pass for connect-type requests
Let me test this real quick
There is definitely an additional flag when I want to make a request on behalf of a connected account. But I'm under the impression this request would just be a normal api call
Thank you
Yeah, I'm not sure if this is possible. Give me a few more minutes
The CLI allows you to list all connected accounts (with stripe account list) but not sure if retrieve works in the connect context
If you pass stripe accounts retrieve, you'll get information about the account that's authenticated with the CLI
Sure thanks. Just so you understand what I'm looking to do, I'm trying to make an api call and understand if payouts are enabled.
In order to show the owner of the connected account its status
Got it. And is there a particular reason why you're using the CLI vs. a script in a preferred programming language
I was using the CLI just to test. I was having issues with the golang api too...
I was doing: params := &stripe.AccountParams{} result, err := account.GetByID(d.GetStripeAccountId(), params) if err != nil { return nil, fmt.Errorf("get account: %s", err) }
That doesn't work. And when I tried adding in the connect header with: params.SetStripeAccount(d.GetStripeAccountId()) that also doesn't work. Maybe I just need to use the .Get() with the connect header.
hello! give me a while to get back to you!
I tried the above idea I had thought of and I get the account back but no external accounts are shown. I'd like to show my user what their connected bank account is
what did you get back instead, can you share the output? Remember to redact sensitive info (if any)
and also the connected account id which has the prefix acct_
APIResource = {stripe.APIResource}
BusinessProfile = {*stripe.AccountBusinessProfile | 0x0} nil
BusinessType = {stripe.AccountBusinessType} ""
Capabilities = {*stripe.AccountCapabilities | 0x1400055a280}
ChargesEnabled = {bool} true
Company = {*stripe.AccountCompany | 0x0} nil
Controller = {*stripe.AccountController | 0x0} nil
Country = {string} "US"
Created = {int64} 0
DefaultCurrency = {stripe.Currency} "usd"
Deleted = {bool} false
DetailsSubmitted = {bool} true
Email = {string} ""
ExternalAccounts = {*stripe.AccountExternalAccountList | 0x0} nil
FutureRequirements = {*stripe.AccountFutureRequirements | 0x0} nil
ID = {string} "acct_1OICUIDpDEYqNrSP"
Individual = {*stripe.Person | 0x0} nil
Metadata = {map[string]string} nil
Object = {string} "account"
PayoutsEnabled = {bool} true
Requirements = {*stripe.AccountRequirements | 0x0} nil
Settings = {*stripe.AccountSettings | 0x140000264b0}
TOSAcceptance = {*stripe.AccountTOSAcceptance | 0x0} nil
Type = {stripe.AccountType} "standard"```
That's what I got back, it has no external accounts. I tried expanding it as well but no luck.
I am open to use any api to get this data. Basically just want to know if payouts are enabled, and to what bank account.
This is a Standard connected account and it has access to it's own Stripe Dashboard. Is there a reason why you want to show them what their connected bank account is?
Correct. The reason is for ease of use I'd like them to see it on this screen without going to Stripe dashboard.
Do I need to use an Express account if I want to list the connected bank account? That doesn't seem right
you'll need to use custom accounts
express accounts also have their own Dashboard so you wouldn't use it for this use case
So there is no way to get a connected account’s bank account using standard account