# `Stripe.Resources.BillingPortal.Session.Flow.SubscriptionCancel`
[🔗](https://github.com/jeffhuen/tiger_stripe/blob/main/lib/stripe/resources/billing_portal/session.ex#L143)

Nested struct within the parent resource.

# `t`

```elixir
@type t() :: %Stripe.Resources.BillingPortal.Session.Flow.SubscriptionCancel{
  retention:
    Stripe.Resources.BillingPortal.Session.Flow.SubscriptionCancel.Retention.t()
    | nil,
  subscription: String.t() | nil
}
```

* `retention` - Specify a retention strategy to be used in the cancellation flow. Nullable.
* `subscription` - The ID of the subscription to be canceled. Max length: 5000.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
