Skip to main content
Fires when a cancellation is requested (may still be active until period end). Use this event to trigger win-back campaigns and measure cancellation reasons.

JavaScript

window._upstack('track', 'subscription_cancelled', {
  subscriptionId: 'sub_def456',
  accountId: 'acct_abc123',
  planId: 'plan_pro_monthly',
  cancelReason: 'too_expensive',
  cancelFeedback: 'Budget constraints this quarter',
  mrr: 9900,
  cancelAtPeriodEnd: true
});

Properties

PropertyTypeRequiredDescription
subscriptionIdstringYesSubscription identifier
accountIdstringYesAccount identifier
planIdstringNoCancelled plan
cancelReasonstringNoCancellation reason code
cancelFeedbackstringNoUser-provided feedback
mrrnumberNoMRR being cancelled in cents
cancelAtPeriodEndbooleanNoIf true, cancels at end of billing period

When to Fire

  • When customer clicks cancel button
  • When cancellation request is submitted
  • When Stripe subscription is set to cancel at period end