# Add a cancellation page to the customer portal

Allow your customers to cancel their subscriptions in the customer portal.

In the customer portal, you can let your customers cancel their subscriptions. This option is enabled by default. You can also enable other options to [collect a cancellation reason](https://docs.stripe.com/customer-management/cancellation-page.md#collect-cancellation-reason) and [deflect cancellations](https://docs.stripe.com/customer-management/cancellation-page.md#cancellation-deflection). Configure these options in the [customer portal settings](https://dashboard.stripe.com/settings/billing/portal) page of the Stripe Dashboard. You can also create a [customized deep link workflow](https://docs.stripe.com/customer-management/portal-deep-links.md) for cancellations.

Cancellation at period end is handled differently in the customer portal depending on billing mode. [Learn how billing mode affects cancellations](https://docs.stripe.com/billing/subscriptions/billing-mode/compare.md#cancellations-in-the-customer-portal).

## Collect a cancellation reason 

Enable a cancellation survey to ask customers why they’re canceling their subscriptions in the customer portal. Customers can cancel without selecting a reason or providing additional feedback.

1. In the Dashboard, go to [Settings > Billing > Customer portal](https://dashboard.stripe.com/settings/billing/portal).
2. If you have multiple portal configurations, select the configuration your customers use.
3. Expand **Cancellations**.
4. Turn on **Let customers cancel their subscriptions** if it isn’t already enabled.
5. Under **Cancellation survey**, turn on **Ask customers why they’re canceling**.
6. If the survey editor doesn’t open automatically, click **Edit survey**.
7. Select at least two reasons to display to customers. Choose from these standard reasons or [add custom reasons](https://docs.stripe.com/customer-management/cancellation-page.md#add-custom-cancellation-reasons):
   - It’s too expensive
   - I need more features
   - I found an alternative
   - I no longer need it
   - Customer service was lacking
   - It was too complex to use
   - Quality was lacking
   - Other reason
8. Click **Save** in the survey editor, then click **Save changes** on the portal configuration page.

### Add custom cancellation reasons 

Define additional cancellation reasons for customers to select.

1. Under **Cancellation survey**, click **Edit survey**.
2. Click **Add custom reason**.
3. Enter a unique cancellation reason using up to 100 characters.
4. Leave the reason selected to include it in the survey.
5. Repeat to add more reasons. You can select up to 25 custom reasons per portal configuration, in addition to the standard reasons.
6. Click **Save** in the survey editor, then click **Save changes** on the portal configuration page.

### Review cancellation survey responses

Review the reasons customers submit in the following places:

- **Dashboard:** Go to [Billing > Subscriptions](https://dashboard.stripe.com/subscriptions) and open a subscription’s details page to review its cancellation feedback.
- **Stripe Sigma:** Use [Stripe Sigma](https://docs.stripe.com/data/how-sigma-works.md) to query cancellation reasons across subscriptions. See [Query Billing data](https://docs.stripe.com/data/query-billing-data.md) for guidance.
- **Webhooks:** Listen for `customer.subscription.updated` [events](https://docs.stripe.com/billing/subscriptions/webhooks.md) to process cancellation feedback in your integration.

## Show lost benefits before cancellation 

You can customize the messages that explain which benefits customers lose when they cancel a subscription. By default, the customer portal displays your product’s marketing features. You can write a cancellation-specific version of each feature in the Dashboard.

### Customize lost benefits 

Add an optional loss-message customization alongside each product marketing feature:

1. In the Dashboard, select the account that contains the product, then switch to the appropriate sandbox or live mode.
2. Open the [Product catalog](https://dashboard.stripe.com/products).
3. Open your product’s overflow menu (⋯).
4. Click **Edit product**.
5. Find **Marketing features list** in the drawer.
6. If the drawer hides the list, expand **More options**.
7. Add a marketing feature name if the feature doesn’t have one.
8. Click **Add lost benefit variation** for the marketing feature and write your message, using up to 80 characters.
9. Click **Update product**.

Write each message in the language you want customers to see. Stripe doesn’t translate these messages automatically. Changes saved in live mode can affect eligible cancellation flows immediately.

### Edit or remove a variation 

To change the cancellation copy, edit the saved lost-benefit variation. To restore the marketing feature text, clear the variation. Click **Update product** after either change. Clearing a variation doesn’t remove the feature from the cancellation list.

### Message scope and eligibility

Variations belong to a product and apply to all its prices. Configure each product in the account and environment where you use it. Sandbox changes don’t update your live products.

The portal displays each feature’s custom variation when present and otherwise uses its marketing feature name. If none of the subscription’s products has marketing features or lost-benefit variations, the portal doesn’t show a lost-benefit list. If Stripe can’t retrieve the messages, customers can still cancel.

For subscriptions with multiple items, Stripe considers only items whose products have marketing features or lost-benefit variations. Stripe uses the lost benefits from the product on the item with the highest annualized value.

Annualized value is the price’s charge for the item quantity, converted to a yearly amount before discounts. For this comparison, metered items have a value of zero. If values are equal, Stripe uses the earlier item in the subscription’s item list.

Messages don’t appear for subscriptions with an attached billing cadence for invoice consolidation. This restriction doesn’t exclude all subscriptions that use flexible billing mode. Pricing plan subscriptions don’t support these messages.

### Move legacy messages

Legacy Managed Operations text isn’t imported automatically. To use it in the redesigned portal, manually enter the text as lost-benefit variations on the corresponding product marketing features. Shorten each variation to 80 characters or fewer. Save the variations in the correct account and sandbox or live mode, then check the customer’s cancellation view before you change the legacy flow.

## Deflect cancellations in the customer portal 

When a customer cancels their subscription in the customer portal, you can attempt to deflect the cancellation by offering a retention coupon.

To set up a retention coupon to deflect cancellations:

1. Go to the **Settings** >  **customer portal** [page](https://dashboard.stripe.com/settings/billing/portal).
2. Expand the Cancellations section.
3. Select a coupon in the drop-down under **Retention Coupon**.

If you don’t have a coupon already, you can build one inline. [Learn more about coupons](https://docs.stripe.com/billing/subscriptions/coupons.md).
