> For the complete documentation index, see [llms.txt](https://zakariaes-organization.gitbook.io/saascore-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zakariaes-organization.gitbook.io/saascore-docs/payments/payment-flow-scenarios/upgrading-downgrading-canceling-subscriptions.md).

# Upgrading/Downgrading/Canceling Subscriptions

This process pertains to recurring subscriptions. Subscribed clients have access to a prebuilt billing portal where they can manage their subscription (upgrade, downgrade, or cancel).

**Triggered Events**: `customer.subscription.updated` or `customer.subscription.deleted`\
**Process**:

* Update the ClientPlan data to reflect the new subscription details.
* Call `handleAfterSubscriptionTasks()` to handle post-subscription actions.

For further queries or assistance, refer to the code comments or contact our support team.
