#prabu17

1 messages · Page 1 of 1 (latest)

last forgeBOT
lyric sun
#

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

wild oasis
#

@lyric sun Does the list of connected accounts in the Stripe dashboard also encompass accounts that have been deauthorized?

lyric sun
#

no, it doesn't. If it's been deauthorized, you won't be able to find it in your Dashboard

wild oasis
#

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?

lyric sun
#

how did you revoke access?

#

what's the response from the request to revoke access?

wild oasis
#

I used this method, and reponse is same stripe_user_id
Stripe::OAuth.deauthorize({
client_id: 'ca_HmPhBnh4mJ6myHFh5dGlBv3Cjw1vwGM2',
stripe_user_id: 'acct_tnA5q6FzghlMJY',
})

lyric sun
#

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

wild oasis
#

acct_1Mxq8EI0ndVVZmoh & acct_1NhY3RAnVDwHbS56
I shared these two accounts which is revoked already but listed in stripe dashboard right?

lyric sun
#

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

lyric sun
wild oasis
#

@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?

lyric sun
#

give me a while to see what i can find and get back to you

last forgeBOT
glossy falcon
#

Hi! I'm taking over this thread. Give me a few minutes to catchup.

wild oasis
#

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.

glossy falcon
#

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.

wild oasis
#

Is there a way to retrieve a list of deauthorized Stripe connected accounts using the API ?

glossy falcon
#

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.

wild oasis
#

ok got it. Thank you