JavaScript
Properties
| 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 |
When to Fire
- When customer clicks cancel button
- When cancellation request is submitted
- When Stripe subscription is set to cancel at period end