> For the complete documentation index, see [llms.txt](https://developer.paddle.com/llms.txt).
>
> To search these docs, send a `GET` request to `https://paddle-docs-retrieval.kapa-paddle.workers.dev/?q=<question>` with a URL-encoded question. No authentication needed. It returns a JSON array of `{content, source_url}`, most relevant first.

# Build multiple cancellation flows and choose which one customers see

Paddle now supports more than one cancellation flow. Build new flows as drafts without changing what customers see, set a default for the customer portal, and pass a flow ID to Paddle.js to show a specific flow on your site.

---

## What's new?

You can now create more than one cancellation flow, and choose which one customers see when they cancel from your app or website. You don't need to set up [Paddle Retain](https://developer.paddle.com/concepts/retain.md) to use [Cancellation Flows](https://developer.paddle.com/concepts/retain/cancellation-flows-surveys.md).

## How it works

[Cancellation Flows](https://developer.paddle.com/concepts/retain/cancellation-flows-surveys.md) guide customers through a short survey when they try to cancel their subscription, then make them a dynamic offer to stay, like pausing their subscription or switching plans.

Previously, you had one cancellation flow, and changing it meant editing the flow that customers saw. Now, in **Paddle > Retain > Cancellation Flows**, you can:

- **Create multiple flows**  
  Create several flows, like a separate flow for each plan you offer, and give each one a name.
- **Save flows as draft**  
  Build and preview new flows as drafts, then publish them when they're ready.
- **Set default flows**  
  Choose your default flow. The customer portal always shows your default flow.
- **Duplicate and edit flows**  
  Duplicate a published flow to change it. The published flow stays unchanged until you publish the copy.
- **Deactivate, archive, or turn off flows**  
  Deactivate or archive flows you no longer need, or turn off all flows at once.

New Paddle accounts also come with a [starter flow](https://developer.paddle.com/build/retain/configure-cancellation-flows-surveys.md#starter-flow), set as the default, so customers who cancel in the customer portal see a survey before you've set another flow up.

To show a specific flow from your app, pass its ID as `cancellationFlowId` when you call [`Paddle.Retain.initCancellationFlow()`](https://developer.paddle.com/paddle-js/methods/paddle-retain-initcancellationflow.md). If the flow isn't active, customers see your default flow instead, so cancellations keep working.

```html
<!-- Cancellation button -->
<button onclick="cancelSubscription()">Cancel my subscription</button>

<script type="text/javascript">
  function cancelSubscription() {
    Paddle.Retain.initCancellationFlow({
      subscriptionId: "sub_01h8bqcrwp0vjd1p3bv20y7323",
      cancellationFlowId: "cfl_01jx4d7h2p9rk5wm3sbt8yq6nc",
    });
  }
</script>
```

## Next steps

This change is available now in the Paddle dashboard and in Paddle.js. Your existing cancellation flow becomes your default flow, so what customers see doesn't change.

It's a non-breaking change, meaning it doesn't impact existing integrations. If you don't pass `cancellationFlowId`, customers see your default flow, as they do today.

To get started, [create a cancellation flow](https://developer.paddle.com/build/retain/configure-cancellation-flows-surveys.md#go-to-cancellation-flows), then [show it on your site](https://developer.paddle.com/build/retain/configure-cancellation-flows-surveys.md#choose-cancellation-flows-for-your-site).
## Summary of changes

| Name | Type | Change | Entity | Description |
| --- | --- | --- | --- | --- |
| `cancellationFlowId` | Paddle.js param | added | Paddle.js | Pass to `Paddle.Retain.initCancellationFlow()` to show a specific cancellation flow. |
