Cancel subscription

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Overview

Cancel an active subscription. You can cancel immediately or at the end of the current billing period.

Example: A customer requests to cancel their subscription. Cancel it at the end of the period so they retain access until their paid time expires.


Conditional Requirements

ConditionRequired Fields
Alwaysmode (period_end or now)
Optionalreason (cancellation reason, max 255 chars)
Gift recipient subscriptionsCannot be canceled
Agency-managed subscriptionsCannot be canceled
Pending payment subscriptionsCannot be canceled

Webhooks

Both modes trigger the subscription.canceled webhook event.

Immediate cancellation (mode: now) additionally triggers the subscription.expired webhook event.

Path Params
int32
required
Query Params
int32
required
Body Params
string
enum
required
Defaults to period_end
Allowed:
string
Headers
string
required
Defaults to Bearer eyJ***
Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json