How it works
Stripe events often happen after checkout. A payment can fail, an invoice can be paid, or a customer can cancel a subscription in Stripe. Use webhooks so Stripe can tell Zite when those changes happen. In Zite, a webhook starts a workflow that can update your database, change access, send email, alert support, or refresh a dashboard.
Set up Stripe webhooks
Create the webhook in Zite
You can create the webhook from chat or from the Webhooks tab.In chat, ask Zite to create a webhook workflow for Stripe subscription events.You can also open 
Zite creates a webhook-triggered workflow and shows a webhook URL when it is waiting for an event.
Workflows, switch to Webhooks, describe the webhook you want, and click Set it up.
Copy the Zite webhook URL
Copy the webhook URL from Zite. You can also find it later in
Workflows -> Webhooks.Add an event destination in Stripe
In Stripe, open 
Workbench -> Webhooks and create a new event destination.
Select subscription events
Select these five events:
checkout.session.completedcustomer.subscription.updatedcustomer.subscription.deletedinvoice.paidinvoice.payment_failed

Configure the destination
Paste the Zite webhook URL into the endpoint URL field. Add a destination name for internal reference, and add a description if helpful. Choose 
Stripe’s Dashboard steps are documented in Receive Stripe events in your webhook endpoint.
Your account unless you operate a Stripe Connect platform and need connected-account events.
Subscription events to select
For subscription lifecycle updates, select these Stripe events.| Stripe event | Use it in Zite to |
|---|---|
checkout.session.completed | Create the first customer or subscription record after checkout. |
customer.subscription.updated | Update plan, quantity, trial, cancellation, current period, or status. |
customer.subscription.deleted | Mark the subscription as canceled and update access. |
invoice.paid | Mark the subscription as paid or active and keep access enabled. |
invoice.payment_failed | Mark the subscription as past due, notify the customer, and alert support. |
checkout.session.completed and add refund, dispute, or payment events only if your app needs to react after checkout.
Learn more in Stripe’s guide to using webhooks with subscriptions.
