Cancels the specified subscription. By default, the subscription will remain active until the end of the current billing period.Documentation Index
Fetch the complete documentation index at: https://api.docs.onlydrams.app/llms.txt
Use this file to discover all available pages before exploring further.
Path Parameters
The ID of the subscription (CommunityMembership) to cancel
Body Parameters
If
true, cancels the subscription immediately. If false (default), the subscription will be canceled at the end of the current billing period.Returns
Returns a success message.Error Responses
| Status | Description |
|---|---|
| 404 | Subscription not found or doesn’t belong to user |
| 422 | Subscription is already canceled |
| 422 | Community Stripe account not connected |
| 422 | Failed to cancel subscription (Stripe error) |
Notes
- Cancel at Period End: User retains access until
current_period_end - Cancel Immediately: Access is revoked immediately
- Reactivation: Subscriptions canceled at period end can potentially be reactivated before the period ends

