#eduardosasso-account-api
1 messages ยท Page 1 of 1 (latest)
Hello ๐
business_profile is typically associated with a connected account
what type of stripe account do you have?
So even if I pass a connected account like https://api.stripe.com/v1/accounts/acct_11111 I still don't get business_profile back
@austere mountain business_type field is only relevant for custom connected accounts
https://stripe.com/docs/api/accounts/object
but I'm looking for business_profile not business_type
ah gotcha apologies
let me double check
I'm looking to receive the same response highlighted in the standard block described in here - https://stripe.com/docs/api/accounts/object
can you share the account ID as well as a request ID for the API call?
sure sec
curl https://api.stripe.com/v1/accounts/acct_1Jr3ARGAXCuWBt3w
-u sk_test_51Jr3ARGAXCuWBt3widFWSYdczRBzpJGtU53c5yF5jtwphSZySf8zjAitxvWEz94mdurgDvHhLntwEVdjyepvWM8E00PIkyduUh:
Or, to retrieve details of your account:
$ curl https://api.stripe.com/v1/account
-u sk_test_51Jr3ARGAXCuWBt3widFWSYdczRBzpJGtU53c5yF5jtwphSZySf8zjAitxvWEz94mdurgDvHhLntwEVdjyepvWM8E00PIkyduUh:
@austere mountain you should edit out those test keys (use sk_test_123 instead) and since you've already leaked them you should roll your keys: https://stripe.com/docs/keys#rolling-keys
tks will do
I'm just waiting to see if there's an answer for my issue first
any luck @south dock ?
๐
Can you share a request ID for the request where you got an unexpected response back?
req_123
Will be in that format
I see. I was able to find it
req_06Kuif7ILQSqra
So the issue is you are making the request to get that account's details from that account. In that situation, we show a limited response of account details. To get the full response of the standard account like the one you linked earlier, you would have to make a request from the platform account (with the platform account's API key) to get the connected account's details
I see. So l can't get business_profile of a connected account using my platform api key + the account id is that right?
thanks for looking into this @leaden kraken
You can get that business_profile info by using the platform key + the connected account's ID in the request
The issue with your previous request was that you were using the connected account's api key in the request
clarification: you are using your own account's API key (the platform) as expected but the account id you give is your own account id, not a connected account
I understand, the curl above was using my own but I have this one acct_16YMkSJsg3M9lTql to test
the problem I see is that if the connected account is done in test mode the API wont return business_profile among other fields
but if I do stripe connect in production mode it works fine
I wonder if its a bug in test mode or it was designed that way
yes in Test mode you can not access standard account's details like business_profile and other PII-related fields
this should be stated in the docs since I simply copy pasted from there expecting to get the same results I was seeing in the documentation.
anyway, that was helpful. thank you!
sure, sorry for the back and forth
np