Cancel a subscription
Cancels a subscription. By default, the subscription continues until the end of the current billing period. Set cancel_at to "immediately" for immediate cancellation.
Authentication
AuthorizationBearer
Use a secret key (sk_test_* or sk_live_*) for full read/write access, or a public key (pk_test_* or pk_live_*) for read-only access.
Path parameters
id
The unique identifier of the subscription.
Request
This endpoint expects an object.
cancel_at
When the cancellation takes effect.
Allowed values:
reason
Cancellation reason (for records and analytics).
Response
Subscription cancelled successfully
data
Errors
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error