cURL
curl --request POST \ --url https://api.athenahq.ai/api/v1/subscriptions/cancel \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "website_id": "123e4567-e89b-12d3-a456-426614174000", "product_id": "pro_monthly" } '
200
Example
{ "success": true }
Cancels a subscription for a specific website. The subscription will remain active until the end of the current billing period.
API key for authentication. You can create one here.
Request body for canceling a subscription
The ID of the website to cancel the subscription for
"123e4567-e89b-12d3-a456-426614174000"
The ID of the product/subscription to cancel
"pro_monthly"
Subscription cancelled successfully
Whether the cancellation was successful
Was this page helpful?