Stripe and Slack: Failed Subscription Payment Alert Template
When a Stripe subscription payment fails, this template posts an alert to Slack with the customer, amount, and invoice so your billing team can follow up before the subscription lapses.
What It Builds
A Webhook trigger receives Stripe's failed-payment event the moment it happens. A Connector node on the stripe connector pulls the related customer and invoice details, and a Connector node on the slack connector posts a formatted alert into your billing channel. The result is a same-minute heads-up that names who failed, how much, and which invoice to chase, so dunning starts before the account churns.
The Prompt
Paste this into Spojit's Miraxa, the intelligent layer across your automation, and it builds the workflow, connecting the tools for you:
Build a workflow that triggers on a Stripe webhook when a subscription invoice payment fails, looks up the customer and the failed invoice in Stripe, and posts a message to the #billing channel in Slack with the customer name and email, the amount due, and the invoice number so the team can follow up.
Connectors Used
- Webhook trigger - receives the Stripe failed-payment event, verified by a Stripe signing connection.
- stripe - looks up the customer and the failed invoice for the alert.
- slack - posts the formatted alert to your billing channel.
Customize It
Change #billing to your own channel, add the subscription plan or next retry date to the message, or set a {{ invoice.amount_due }} threshold so only larger failures alert. You can also add a Human approval step before pausing an account.
Tips
- Use the slack connector node in Direct mode for a fast, predictable post with no AI cost.
- Give your Slack connection permission to post in the target channel before your first run.
- Stripe retries failed payments on its own schedule, so dedupe or re-check status to avoid repeat pings.