- 1
Copy your Atlis webhook URL
Go to Settings → Integrations → Stripe and copy the webhook URL.
Texthttps://www.theatlis.com/api/webhooks/stripe?workspaceId=YOUR_WORKSPACE_ID - 2
Add an endpoint in Stripe
In Stripe go to Developers → Webhooks → Add endpoint and paste the URL.
- 3
Select these events
invoice.payment_failed,invoice.paid,invoice.payment_succeeded,customer.subscription.created,customer.subscription.updated,customer.subscription.deleted,customer.subscription.trial_will_end,checkout.session.expiredandcharge.refunded. If you sell credits, top-ups or one-time packs, also selectcheckout.session.completed,checkout.session.async_payment_succeededandbilling.alert.triggered. - 4
Paste the signing secret into Atlis
Copy the endpoint's Signing secret (it starts with
whsec_), paste it into Stripe Webhook Secret and click Save Stripe settings. The status changes to Connected. Atlis stores the secret encrypted and never shows it again; to change it, paste the new one and save.
What Stripe sends to Atlis
| Stripe event | Becomes |
|---|---|
| invoice.payment_failed | payment_failed with {{amount}} (what's due) and {{payment_link}} (Stripe's page to pay that invoice), which the Payment Failed email's button opens. |
| invoice.paid / invoice.payment_succeeded | subscription_reactivated when the customer had cancelled and this is the first invoice of a new subscription (they came back; paying an old overdue invoice doesn't count); payment_recovered after a failed payment; otherwise subscription_activated for the user's first real subscription payment (not a $0 invoice, not later renewals, not a renewal of a subscription that was already running before you connected Stripe, and not a one-time invoice). Stripe sends both events for one payment; Atlis records it once. All mark the user activated. For subscriptions with usage-based prices, it also updates what their usage cost, so your MRR includes it. |
| checkout.session.completed / checkout.session.async_payment_succeeded | credits_purchased for a paid Checkout in payment mode (a credit pack, top-up or other one-time purchase), with {{amount}}, plus {{pack}} and {{credits}} from the session's pack (or product, or plan) and credits metadata. Subscription checkouts are ignored here; their invoice does the work. Optional: select these only if you sell one-time packs. |
| billing.alert.triggered | credits_low when a usage alert you created in Stripe Billing fires, with {{alert}} (its title), {{used}} and {{threshold}}. Optional: select it only if you use Stripe usage alerts. |
| customer.subscription.updated | switched_to_annual when they move from monthly to yearly billing; plan_upgraded or plan_downgraded when the plan's monthly amount goes up or down (a yearly plan counts a twelfth, so yearly 290 to monthly 49 is an upgrade); seats_added (with {{seats}} and {{seats_added}}) when the quantity goes up; otherwise plan_updated. |
| customer.subscription.created | trial_started when the subscription starts with a trial, and the user's trial end date is set, so Trial Expiring works too. Atlis also notes the subscription and its product, so it knows when a customer pays for more than one. |
| customer.subscription.deleted | subscription_cancelled when it was the customer's last subscription: the user becomes Churned, and Stripe's cancellation feedback is saved as their churn reason. If they still pay for another subscription, it's product_cancelled instead (see below). |
| customer.subscription.trial_will_end | Updates the user's trial end date. |
| charge.refunded | Adds the refunded amount to Refunds on Revenue (Scale). Nothing about the user changes and no workflow runs. |
| checkout.session.expired | checkout_abandoned with the amount, plan (from the session's plan metadata) and Stripe's recovery link when you've turned recovery on. Skipped if they paid after opening that checkout. Nothing about the user changes; use the Stripe checkout expired recipe to email them. |
- Atlis matches Stripe customers to your users by email, so identify users with the same email they use in Stripe.
- Once connected, Atlis ignores the same billing events sent from the snippet, so nothing is counted twice. If your app also sends
seats_added,switched_to_annualorcredits_low, the one that arrives second within a day is skipped; forcredits_purchasedit's within 2 minutes, so real top-ups minutes apart still count. - Customers with more than one subscription: cancelling one while another is still active sends
product_cancelledwith the product name. They stay a paying user, their plan becomes the remaining subscription's plan, and Subscription Cancelled emails don't go out. To email them, add a Custom Event workflow namedproduct_cancelled. Atlis learns about each subscription fromcustomer.subscription.createdor a later update, so select that event. - You can connect Stripe or Paddle, not both.
- Atlis keeps only what it needs from each Stripe event: the customer ID, the email it matches users by, plan, amount, currency, status and seats. Card details, billing addresses and invoice line items are never stored, and the raw event isn't kept.
Credits and usage-based pricing
For AI apps and other products that charge by usage or sell credits. Usage in MRR: when a subscription has metered (usage-based) or tiered prices, Atlis counts the fixed prices from the subscription and adds what the usage cost on its latest paid invoice, spread over a month. Each new invoice replaces the usage part, so MRR follows real usage, and a bigger or smaller bill shows up in Revenue as expansion or contraction. Nothing to set up beyond invoice.paid. Credit packs: a paid one-time Checkout sends credits_purchased, so you can thank buyers or suggest a plan. Running low: create a usage alert in Stripe Billing and select billing.alert.triggered for credits_low, or send credits_low from your app with {{credits_left}} when someone's balance drops. Follow-ups stop once they top up or upgrade, and the workflow's row counts how many topped up within 14 days.
More in Integrations
Try it in your own workspace
Start with a 14-day trial with Growth features. No credit card needed.