JavaScript
Properties
When to Fire
- When customer clicks cancel button
- When cancellation request is submitted
- When Stripe subscription is set to cancel at period end
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Track when a cancellation is requested (may still be active until period end).
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
});
| Property | Type | Required | Description |
|---|---|---|---|
| subscriptionId | string | Yes | Subscription identifier |
| accountId | string | Yes | Account identifier |
| planId | string | No | Cancelled plan |
| cancelReason | string | No | Cancellation reason code |
| cancelFeedback | string | No | User-provided feedback |
| mrr | number | No | MRR being cancelled in cents |
| cancelAtPeriodEnd | boolean | No | If true, cancels at end of billing period |
Was this page helpful?