# <Subscriptions />

Embed the Subscriptions component to let customers view their subscriptions, change plan or quantities, upgrade from a trial and cancel.

 [image: Subscriptions component for Superdesk: an active Small subscription renewing Nov 30, 2026 with Cancel subscription and Change plan, its Onboarding add-on with Adjust plan, and a Large trial with 9 days left, one user at $20.00, and Upgrade from trial]

The subscriptions component, with an add-on and a trial.

```tsx
<Subscriptions
  companyName="Superdesk"
  onSubscriptionUpgradeClick={(subscriptionId) => console.log(subscriptionId)}
/>
```

It needs a [portal session token](https://docs.bunny.com/developer/bunny-components/installation#tokens). Like every component, it also accepts `appearance` ([Styling](https://docs.bunny.com/developer/bunny-components/styling)) and `style` and `className` for positioning.

### What customers can do

Each subscription shows its charges for the current period. The actions follow your settings in Bunny:

| Action | Shown when |
| Change plan (Upgrade from trial on a trial, Upgrade on an expired trial, Adjust plan on an add-on) | Another plan of the same product has Self-service buy turned on. See Plans. |
| Cancel subscription | The plan has Self-service cancel turned on, and the subscription is active, pending or in trial. |
| Change quantities | A charge on an active or pending subscription has Customers can change the quantity themselves turned on. See Self-service quantity. Flat, usage and one-time charges can’t be changed. |
| Show inactive | The account has canceled or expired subscriptions. |

Change plan opens the plan picker in place of the list. The customer picks a plan and billing period, can add add-ons, and pays for the change.

 [image: Plan picker after Change plan, with Small at $10 per user per month marked Current plan, and Free plan, Medium at $20 and Large at $40 offered with Change to, add-on toggles and a feature comparison table]

The plan picker that opens from Change plan.

### companyName

Required. Your company name, shown when the customer has no subscriptions: “You have no subscriptions with Superdesk yet”. Pass `noSubscriptionsComponent` to show your own content instead.

### showInactiveSubscriptions and showInactiveSubscriptionsToggle

`showInactiveSubscriptions` shows canceled and expired subscriptions from the start. `showInactiveSubscriptionsToggle={false}` hides the Show inactive checkbox.

### onSubscriptionUpgradeClick

Called with the subscription’s ID when the customer clicks Change plan, Upgrade from trial or Adjust plan, before the plan picker opens.

### onPaymentMethodSaved and onPaymentMethodRemoved

Called with the payment method’s ID when the customer saves or removes a payment method while changing plan.

## <Upgrade />

`<Upgrade />` is the plan picker on its own, for one subscription. Use it to open plan changes from your own button instead of from `<Subscriptions />`.

```tsx
<Upgrade
  upgradingSubscriptionId={subscriptionId}
  defaultBillingPeriod="ANNUAL"
  onChangePlanCancel={() => setShowUpgrade(false)}
/>
```

- `upgradingSubscriptionId`: The subscription to change.
- `defaultBillingPeriod`: The billing period selected when the picker opens: `MONTHLY`, `QUARTERLY`, `SEMI_ANNUAL`, `ANNUAL` or `ONCE`.
- `onChangePlanCancel`: Called when the customer clicks back.

---

Source: https://docs.bunny.com/developer/bunny-components/subscriptions. Index of every page: https://docs.bunny.com/llms.txt
