#cato_webhooks
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1449016970992156823
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
I'm trying to find out how I can get notified on account deletions, and the AI is giving conflicting answers on whether this is possible or not.
are you a Connect platform?
But is the .deauthorized the same thing as deleted?
"account.application.deauthorized: Occurs when a connected account disconnects from your platform (for accounts with Dashboard access)"
first, do you have Standard or Express/Custom accounts?
this is important
deleting a Connect Account https://docs.stripe.com/api/accounts/delete?api-version=2025-11-17.preview can only happen if you're creating Express or Custom accounts
in that case, you will receive account.updated event
Good question, I'm a new developer on the team and am setting up the event consumption via event bridge currently. How do I know what type we're using?
what's your platform account ID?
acct_19BLU8Djx6zFnDgm
ok so you have Custom Accounts
gotcha
in that case as I said you listen to account.updated events
and you will see the deleted property set to true
but I'm asking why would you need a webhook endpoint for this?
That's the thing though, in our test environment we've had quite a few deleted accounts the last 24 hours, but we've received no events with the flag set to true
the only way to delete a Custom Account is via an API call from your server
because we're migrating from one system to another
and need to first make sure we're in sync with the data
so the /delete request is happening in the other system
I am thinking we might just call the new system's /delete endpoint when the old system has performed the deletion
although I was hoping I could consume the deleted event in the new system
But as I said, I cannot see that the deleted flag is ever true on the account.updated events
https://docs.stripe.com/api/accounts/object
this doesn't show the deleted flag in the object either, but I do see it in the SDK
you should listen to
account.application.deauthorized anyways
this would be fired for the deleted Custom account
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Ok. So it's safe to say that .deauthorized is the same as deleted? are there any scenarios where the same event does not mean it's deleted?
for the account to be really deleted it would need to disconnect from your applicatioin, so yes