#literatel_apps-webhook

1 messages ¡ Page 1 of 1 (latest)

formal ridgeBOT
young dustBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

formal ridgeBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1249761347105718273

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

forest stratus
#

@plain egret You can't create a WebhookEndpoint on their connected account. What you need to do is create a Connect WebhookEndpoint on your own account and that will receive Events from all your connected accounts. See https://docs.stripe.com/connect/webhooks

#

literatel_apps-webhook

plain egret
#

This is for standard accounts, we tried connect and that didn't give us access to the customers existing subscriptions

#

We provide a platform to SaaS vendors that have an existing stripe account, we just need to know if/when a customer of those vendors cancels.

forest stratus
#

It works the same way with Stripe Apps

plain egret
#

So stripe app, doesn't have access to the webhooks for the account it is installed in? I know the event I want to listen for, jsut not clear how to register the relevant webhook.

forest stratus
#

You are the developer of the App. You have your own server with your code. You need to create the WebhookEndpoint on your Stripe account with the type Connect. Doing that will allow you to listen to all Events from all your connected accounts. It's the exact same flow as Stripe Connect!

plain egret
#

OK, thank you

#

and a connected account is any account that has installed the app?

forest stratus
#

sure thing! Sorry it's confusing, I am asking internally for a doc dedicated to Stripe Apps and Events but it's going to take a while

#

and yes!

plain egret
#

perfect, before we went connect route, and ended up duplciating accounts wiht no data in them via connect onboarding

forest stratus
#

gotcha

plain egret
#

I've added a "connect" webhook to my account that published the stripe app, but I'm not seeing events triggered for accounts that have it installed.

#

I've got the workbench open in the installed account, using the stripe CLI to trigger customer.subscription.deleted

forest stratus
#

I don't know much about Workbench, it's a brand new tool that is only available to a handful of people.

Try creating a real Subscription instead

plain egret
#

Just tried that, its like my installed account doesnt know it should be posting to the connect enabled webhook

#

evt_1PQBJtC1cjgvLQaL1qVkVyIt was triggered in the account with the app installed, but nothing shows in the attempted deliveries tab on the publishing account

forest stratus
#

looking

plain egret
#

Got to leave work now, so no rush I cna pick this up this evening if you reply, ahppy to be async in nature from here

forest stratus
plain egret
#

Ok thank you

formal ridgeBOT
forest stratus
#

@plain egret We think you need to change the permissions of your App so that it has event_read and subscription_read