The moment it happens
Get alerted when a Stripe refund is issued
Every refund issued in Stripe is posted to Slack with the amount, customer, reason and who the original charge was for, as soon as Stripe sends the event.
- Runs
- The moment it happens
- Apps
- Stripe
- AI
- Not needed
- Access
- webhook signing secret; chat:write
Send this to your assistant
Create a ClickRuntime automation: whenever a refund is issued in Stripe, post the amount, the customer's email, the refund reason and a link to the payment in #billing on Slack.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
Refunds are easy to issue and easy to forget. Support refunds a customer on a Friday, finance sees a lower number on Monday, and nobody can say why without digging through the Stripe dashboard.
This automation listens for Stripe's charge.refunded event and posts each refund to a Slack channel straight away, with the amount, the customer, the reason and a link to the payment.
The channel turns into a running record that support, finance and founders can all see, and an unexpected refund gets noticed the same day.
What you get out of it
Seen the same day
Every refund lands in Slack the moment Stripe processes it.
Context included
Amount, customer, reason and the original payment are in one message.
Partial refunds handled
The message says how much of the payment has been refunded so far.
Signed events only
Each event is checked against your Stripe webhook secret.
Nothing else to maintain
No polling and no state; Stripe pushes each refund as it happens.
How it works
What happens, step by step
You add a ClickRuntime webhook URL in Stripe for the charge.refunded event.
When a refund goes through, Stripe sends the event and ClickRuntime checks its signature.
It reads the newest refund on the charge, with its amount and reason.
A message with the customer, amount, reason and a link to the payment goes to #billing.
Before it runs live
- Connect Stripe
- Paste your automation's link into the other app's webhook settings
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Act only on the items that match your own rules, and skip the rest
- Add an AI step, for example to summarize, sort or draft a reply
- Add another app, for example also send it to Slack
- Combine it with other Stripe steps into one automation
Under the hood
The code that runs this automation
from clickruntime import on_event, credentials, notify, verify
@on_event
def handle(event):
if not verify.stripe(event.body, event.header("Stripe-Signature"), credentials.secret("STRIPE_WEBHOOK_SECRET")):
return {"ignored": "bad signature"}
if event.json["type"] != "charge.refunded":
return {"ignored": event.json["type"]}
charge = event.json["data"]["object"]
refund = charge["refunds"]["data"][0] if charge.get("refunds", {}).get("data") else None
amount = (refund["amount"] if refund else charge["amount_refunded"]) / 100
reason = (refund or {}).get("reason") or "no reason given"
who = (charge.get("billing_details") or {}).get("email") or charge.get("receipt_email") or charge.get("customer") or "unknown"
full = "fully refunded" if charge["refunded"] else f"{charge['amount_refunded'] / 100:,.2f} refunded so far"
notify.slack(f":leftwards_arrow_with_hook: Refund of {amount:,.2f} {charge['currency'].upper()} to {who} ({reason})\n"
f"Original payment: {charge['amount'] / 100:,.2f} {charge['currency'].upper()}, "
f"{charge.get('description') or 'no description'} · {full}\n"
f"https://dashboard.stripe.com/payments/{charge['payment_intent']}", channel="#billing")
return {"charge": charge["id"]}FAQ
Common questions
Does it catch partial refunds?
Who issued the refund?
Will refunds from disputes show up here?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Get alerted when a payment fails
Each failed charge or invoice payment shows up in Slack with the customer, amount and reason.
See how it worksHear when a customer cancels
When a subscription is cancelled, you get the customer and plan straight away.
See how it worksGet a message for every new sale
Each successful payment reaches you with the customer, amount and what they bought.
See how it worksKeep exploring
Set up “Get alerted when a Stripe refund is issued” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.