Skip to content

The moment it happens

Get a Slack message when a Recurly subscription is cancelled

You hear about cancellations as they happen, so key accounts get a call before they leave.

Runs
The moment it happens
Apps
Recurly
AI
Not needed
Access
private API key

Send this to your assistant

Create a ClickRuntime automation: whenever a Recurly subscription is cancelled, post the account name, plan and cancellation date to #account-management in Slack.

Paste it into your assistant. It tells you what it will send or change before it runs live.

First time? Adding ClickRuntime to your assistant takes about two minutes.

Why use it

Why teams use this automation

On a SaaS or membership product billed through Recurly, most cancellations are small, but a few are accounts that matter: an annual enterprise plan, a customer who came through a major partner, or someone who has been paying for years. If one of those cancels on a Friday, nobody on the account team knows until the renewal forecast is reviewed.

When an account cancels a subscription in Recurly, ClickRuntime receives the notification and posts it in Slack straight away. The message shows the account name, the plan and the cancellation details so the owner of the relationship can react. It runs on the event itself, so the post appears within moments.

It is most useful for customer success teams who manage a handful of valuable accounts and need to know the same day if one is leaving.

What you get out of it

  • Key accounts get a same-day call

    A call on the day of cancellation can find out the reason, correct a misunderstanding or offer a plan change. A week later the customer has often already moved to a competitor.

  • Renewal forecasts stay accurate

    When a cancellation is seen immediately, the forecast reflects it. Leaders are not surprised at quarter end by revenue that quietly disappeared a month earlier. Planning decisions then rest on real numbers.

  • Plan context is in the message

    Knowing whether the account was on a starter or an enterprise plan changes the response. The alert carries the plan, so you can prioritize at a glance. An enterprise customer leaving needs a different response than a trial user.

  • Account owners are never blindsided

    Customer success managers often learn about churn from finance. A direct alert reverses that, and the person who knows the customer best is told first. That changes the conversation from damage control to a real attempt at keeping the account.

  • Learning from losses starts early

    Each lost account is a chance to understand what failed. Capturing the moment in a shared channel starts a conversation while details are fresh, instead of leaving it to a quarterly post-mortem. Teams that review every loss tend to find the same fixable causes repeatedly.

How it works

What happens, step by step

  1. When a Recurly subscription is cancelled, Recurly tells ClickRuntime straight away.

  2. ClickRuntime reads the account, the plan, the cancellation date and when access ends.

  3. A message goes to your #account-management Slack channel with the customer, the plan, the date it was cancelled and when access ends.

Before it runs live

  • Connect Recurly
  • Paste your automation's link into the other app's webhook settings

What you get

RunsThe moment it happens
Get a Slack message when a Recurly subscription is cancelledjust nowSucceeded
Slack · #account-managementAcme Corp cancelled *Team monthly* on 2026-10-18; access ends 2026-11-03

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • 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 Recurly steps into one automation

Under the hood

The code that runs this automation

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
cancellation_alert_recurly.pyexample
from clickruntime import on_event, credentials, http, notify

API = "https://v3.recurly.com"

def recurly(path):
    resp = http.get(f"{API}{path}", auth=(credentials.secret("RECURLY_API_KEY"), ""),
                    headers={"Accept": "application/vnd.recurly.v2021-02-25+json"})
    resp.raise_for_status()
    return resp.json()

@on_event
def handle(event):
    body = event.json
    if (body.get("object_type"), body.get("event_type")) != ("subscription", "canceled"):
        return {"posted": False}
    sub = recurly(f"/subscriptions/uuid-{body['uuid']}")
    account = sub["account"]
    name = account.get("company") or f"{account.get('first_name', '')} {account.get('last_name', '')}".strip()
    notify.slack(f"{name} cancelled *{sub['plan']['name']}* on {sub['canceled_at'][:10]}; "
                 f"access ends {(sub.get('current_period_ends_at') or '')[:10]}", channel="#account-management")
    return {"subscription": sub["id"]}

FAQ

Common questions

Does the alert cover only key accounts or every cancellation?
By default every cancellation is posted, but the message can be limited to accounts above a certain plan value or those marked with a particular account code in Recurly. Most teams narrow it to what they can personally follow up on.
Is a cancellation the same as an expiration in Recurly?
No. A cancellation is when a subscription is set to end, often at the end of the current term, while expiration is when it actually ends. The alert fires on cancellation, which gives you the remaining term to try to keep the account.
Can I get notified for downgrades too?
Downgrades are plan changes in Recurly, a different event from cancellation. They can be tracked with a separate alert if you want to know when an account moves to a cheaper plan, which often signals risk before churn.
What permissions does it need?
private API key. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run for each event the app sends.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

Set up “Get a Slack message when a Recurly subscription is cancelled” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.