Subscriptions/cancelSubscription
Cancel a subscription
PlannedPlanned. This contract is published ahead of the build. It is not callable yet — treat it as the shape to design against, not a live endpoint.
End a subscription, immediately or at the period's end.
POST
/v1/subscriptions/{id}/cancelCancel at period end by default, or immediately with atPeriodEnd=false.
Path parameters
idstringRequiredRequest body
application/json
atPeriodEndbooleanResponse
application/json
idstringExample "sub_9c2a4f10"
customerIdstringExample "cus_123"
priceIdstringExample "price_pro_monthly"
statusenumtrialingactivepast_duecanceledExample "active"
currentPeriodEndstring · ISO 8601Example "2026-04-09T09:14:22Z"
cancelAtPeriodEndbooleanExample false
createdAtstring · ISO 8601Example "2026-04-09T09:14:22Z"
cancelSubscription