#prabu17
1 messages · Page 1 of 1 (latest)
hello! i'm afraid there's no API endpoint for that. What you can do instead is to listen for the account.application.deauthorized event in your connect webhooks, log that to your own DB, then you would be able to query for that
@lyric sun Does the list of connected accounts in the Stripe dashboard also encompass accounts that have been deauthorized?
no, it doesn't. If it's been deauthorized, you won't be able to find it in your Dashboard
but, I able to see acct_1Mxq8EI0ndVVZmoh & acct_1NhY3RAnVDwHbS56 these two accounts are revoked access in test mode. still its showing in stripe dashboard.
also How can I verify whether accounts have been deauthorized?
I used this method, and reponse is same stripe_user_id
Stripe::OAuth.deauthorize({
client_id: 'ca_HmPhBnh4mJ6myHFh5dGlBv3Cjw1vwGM2',
stripe_user_id: 'acct_tnA5q6FzghlMJY',
})
hmmm, gimme a while to take a closer look
i tried to search for the connected account acct_tnA5q6FzghlMJY in your platform's Dashboard, i don't see it there
acct_1Mxq8EI0ndVVZmoh & acct_1NhY3RAnVDwHbS56
I shared these two accounts which is revoked already but listed in stripe dashboard right?
can you share where in the Dashboard you're seeing it? Cause i checked on the platform account and i'm not seeing acct_tnA5q6FzghlMJY
let me take a quick look for acct_1Mxq8EI0ndVVZmoh & acct_1NhY3RAnVDwHbS56
can you share the request id [0] where you deauthorized the account? it'd look like req_xxx
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
@lyric sun The accounts were revoked a few days ago, and now I'm unable to view the associated request ID. that whys I am asking How can I verify whether accounts have been deauthorized?
give me a while to see what i can find and get back to you
Hi! I'm taking over this thread. Give me a few minutes to catchup.
sure Thanks for your support take your time.
btw acct_1NW7BCCfWCqO6LvD revoked yesterday. I unable to see this account in my dashboard. but still do not know how to verify this account is deauthorized.
One way would be to try to retrieve the account acct_1NW7BCCfWCqO6LvD with this endpoint https://stripe.com/docs/api/accounts/retrieve
If it succeedes, it means the account is not deauthorized. An if it fails, the account was deauthorized.
I confirm acct_1NW7BCCfWCqO6LvD doesn't have a platform account associated, so it was deauthorized.
However acct_1Mxq8EI0ndVVZmoh and acct_1NhY3RAnVDwHbS56 have one, so they haven't been deauthorized.
Is there a way to retrieve a list of deauthorized Stripe connected accounts using the API ?
No we don't have this. That's something that you'll have to track on your own.
Like alex suggested, you could listen to account.application.deauthorized events for this.
ok got it. Thank you