Skip to content
Notis

End app previews when subscriptions are cancelled

When a subscription ends, have Notis stop the associated Codemagic preview and report what happened.

Trigger

Subscription Deleted Trigger

Triggered when a subscription is deleted in Stripe

Action

Stop Preview

Tool to stop an app preview. Use when you need to stop a running app preview by its identifier.

Why this helps

A cancelled subscription can be easy to miss, leaving a preview running and creating manual cleanup.

  • Reduce manual preview cleanup after cancellations.
  • Keep preview access aligned with subscription status.
  • Receive a run report in your chosen channel.

Setup

Build it in a few focused steps.

  • 1Connect Stripe and Codemagic once in the Notis portal.
  • 2Create an automation in Automations, then New Automation, and name it.
  • 3In one instruction, ask Notis to stop the relevant Codemagic preview when the Stripe subscription is deleted; provide the preview identifier or a way to identify it if needed.
  • 4Pick the Stripe Subscription Deleted trigger and choose where run reports should go.
  • 5Test with one real example and confirm the intended preview is stopped.

Questions about this workflow

Can Notis identify which preview belongs to a subscription?

Only if the event or context provides a reliable identifier. If not, include a rule or identifier in your instruction; otherwise Notis cannot safely choose a preview.

Does this cancel the Stripe subscription?

No. The Stripe deletion event starts the automation, and the Codemagic action stops an app preview.

When this happens · Trigger

Do this · Action

Supported Triggers and Actions

Notis builds workflows that link Stripe to Codemagic. A trigger fires from one place; an action lands in another.

Stripe triggers

Codemagic actions

Recurring trigger

Notis starts this workflow on a schedule, such as daily, weekly, or during business hours.

TriggerScheduled

Add Application from Private Repository

Tool to create an application from a private repository using SSH key authentication. Use when you need to add a new private repository to Codemagic with SSH credentials.

ActionInstant

Webhook trigger

Notis starts this workflow when an external tool or custom backend sends an HTTP request.

TriggerInstant

Add New Application

Tool to add a Git repository to the applications list in Codemagic. Use when you need to add a new application to Codemagic from a repository URL.

ActionInstant

Charge Failed Trigger

Triggered when a direct charge fails in Stripe's legacy Charges API

TriggerInstant

Get Meta Information

Tool to get metadata about Codemagic including public IP addresses in use (in CIDR notation). Use when you need to retrieve IP blocks for whitelisting build machines or simulator network requests.

ActionInstant

Checkout Session Completed Trigger

Triggered when a checkout session is completed in Stripe

TriggerInstant

Get Variable Group Information

Tool to retrieve information about a specific variable group including its name and configuration settings. Use when you need to get details for a variable group by its ID.

ActionInstant

Invoice Payment Succeeded Trigger

Triggered when an invoice payment is successful in Stripe

TriggerInstant

Update Variable Group

Tool to change a variable group's name and security settings. Use when you need to update an existing variable group by its ID. Returns success confirmation on 204 No Content response.

ActionInstant

Payment Intent Failed Trigger

Triggered when a payment intent fails in Stripe

TriggerInstant

Delete All Application Caches

Tool to delete all caches for a specific application. Use when clearing all cached data for an app. The deletion process is asynchronous and will complete after the API response is returned.

ActionInstant

Product Created Trigger

Triggered when a product is created in Stripe

TriggerInstant

Delete Specific Cache

Tool to delete a specific cache from an application. Use when a cached build artifact needs to be removed. The deletion is performed asynchronously and returns immediately with a 202 Accepted status.

ActionInstant

Subscription Added Trigger

Triggered when a subscription is added in Stripe

TriggerInstant

Get Account Info for Over-the-Air Updates

Tool to retrieve account information for over-the-air updates. Use when you need to check the account status (enabled/disabled/pending) and associated team identifier.

ActionInstant

Connect any two apps with Notis in the middle.

Stripe and Codemagic, or any other combination from 1,000+ integrations.

When this happens · Trigger

Do this · Action

Save your first hour today.

7-day trial of any paid plan, with 20$ of usage included.
No card. Works with personal or business Codemagic.