Cancel Subscription
Stripe Subscriptions
Cancel Subscription
Cancel the user’s active Stripe subscription
POST
Cancel Subscription
Cancel the authenticated user’s active subscription. Can cancel immediately or at the end of the current billing period.
Authentication
This endpoint requires end user authentication via HTTP Bearer Token with project scope.
Query Parameters
boolean
default:"true"
Use test mode credentials. Set to
false for production.Request Body
boolean
default:"false"
If
true, cancels the subscription immediately and revokes access. If false, cancels at the end of the current billing period (user retains access until then).Response
string
Stripe subscription ID
string
New subscription status:
canceled or active (will cancel at period end)datetime
When the subscription will be canceled (if scheduled)
datetime
When the cancellation was processed
string
Human-readable confirmation message
Example Request
Cancel at Period End (Recommended)
Cancel Immediately
Example Response
Cancel at Period End
Immediate Cancellation
Cancellation Options
Integration Example
Handling Scheduled Cancellations
When a subscription is scheduled to cancel, update your UI accordingly:Reactivating Canceled Subscriptions
Error Responses
Related Pages
Get My Subscription
Check subscription status
Update Subscription
Change plans instead
Customer Portal
Let user manage cancellation
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Use test mode
Body
application/json
Request to cancel a subscription.
If true, cancels immediately. Otherwise cancels at period end.

