Cancel a subscription
DELETE/products/{product_id}/subscriptions/{subscription_id}.json
Use this endpoint to cancel the subscription. If the subscription is currently in a trialing state, this will also cancel the trial.
This is useful when you want to programmatically offer a cancellation feature from within your SaaS or custom dashboards. If you're integrating Freemius with your SaaS, please see our guide here.
⚠️ This action is irreversible and will immediately cancel the subscription or trial.
Cancelling an already cancelled subscription will not have any effect and the endpoint will return the same subscription details as before.
Request
Responses
- 200
- 401
- 402
- 404
Subscription retrieved.
Unauthorized access error. The request requires authentication but was not provided or the provided authentication does not satisfy the required permissions.
The request is missing the specified argument.
The requested resource was not found.