#Watiniox
1 messages · Page 1 of 1 (latest)
Hello, can you tell me more about the situation? Are you an account that is connected to many platforms? Or are you an account that creates Platform Accounts below you?
I have a marketplace creator, the owner connects his platform keys, and the sellers connect their accounts to the platform to sell
Gotcha. So you have the keys to each of these platform accounts?
Yes exactlyt
In that case you can make a GET Account call without supplying any ID. That will return an Account object that represents the account that owns the keys
And that object will have a country property with the country that the account is in
Oh! Great!! let me check
"error": {
"message": "Unrecognized request URL (GET: /v1/accounts/). If you are trying to list objects, remove the trailing slash. If you are trying to retrieve an object, make sure you passed a valid (non-empty) identifier in your code. Please see https://stripe.com/docs or we can help at https://support.stripe.com/.",
"type": "invalid_request_error"
}
}```
curl --location 'https://api.stripe.com/v1/accounts/'
--header 'Authorization: Basic KEYS'
Interesting. Let me check how to do this for your own account and I will get back to you. I know I can do it with the client libraries, not sure how to with curl
Oh use /v1/account instead of /v1/accounts
Awesome glad to hear!