Subscriptions
Cancel subscription
Cancel immediately or at period end and return the updated subscription.
POST
Cancel subscription
This reference describes API version
2026-07-24. Send Commet-Version: 2026-07-24 with your request.Authorizations
Headers
Unique key used to safely retry this write for 24 hours without applying it twice.
Required string length:
1 - 200API version used by this reference. Send this header to select this contract explicitly.
Path Parameters
Response
Success
Available options:
draft, pending_payment, trialing, active, past_due, paused, canceled Available options:
weekly, monthly, quarterly, semiannual, yearly, one_time Required range:
-9007199254740991 <= x <= 9007199254740991Whether Commet can charge this subscription on its own at its next charge (the trial end or the renewal). A trial that started without a payment method reports false until the customer adds one for this subscription; a payment method saved for another subscription does not count. A subscription on a free plan reports false.
Available options:
metered, credits, balance - Option 1
- Option 2
- Option 3
- Option 4
Allowed value:
"subscription"