Cancel, pause, or resume a subscription
Subscriptions
Update a Subscription
Perform a lifecycle action on a subscription.
cancelcancels at end of current periodcancel_immediatelycancels immediatelypausepauses the subscriptionresumeresumes a paused subscription
PATCH
Cancel, pause, or resume a subscription
Cancel, pause, or resume a subscription.
Authorizations
Use your secret API key as a Bearer token.
Keys are prefixed: sk_live_ (production) or sk_test_ (sandbox).
Path Parameters
The subscription identifier (prefixed sub_)
Body
application/json
cancel— Cancel at end of current billing periodcancel_immediately— Cancel immediatelypause— Pause the subscriptionresume— Resume a paused subscription
Available options:
cancel, cancel_immediately, pause, resume Response
Subscription updated
Unique identifier (prefixed sub_)
Example:
"sub_1a2b3c4d5e"
Organization identifier
Customer identifier
Subscription plan identifier
Payment method identifier
trialing— Subscription is in trial periodactive— Subscription is active and billing normallypast_due— Payment failed, retryingpaused— Subscription is pausedcanceled— Subscription was canceledexpired— Subscription has expired
Available options:
trialing, active, past_due, paused, canceled, expired Whether the subscription cancels at the end of the current period
Available options:
live, sandbox