Cancel a subscription
POST/subscriptions/:code/cancel
Performs the cancel state transition: deactivates the credit card and marks the subscription inactive. Distinct from soft-deletion, which only hides the resource from listings.
Request
Responses
- 204
- 400
- 401
- 403
- 404
- 429
- 500
Subscription canceled successfully
Bad request - invalid subscription code
Unauthorized - no authenticated user
Forbidden - no access to this subscription
Subscription not found
Too many requests - rate limited by the API firewall; wait out the Retry-After delay before retrying
Response Headers
Retry-After
Delay in seconds a client must wait before retrying the request
Internal server error