Skip to main content
POST
/
api
/
v1
/
subscriptions
/
cancel
Cancel Subscription
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"
}
'
{
  "success": true
}

Authorizations

x-api-key
string
header
required

API key for authentication. You can create one here.

Body

application/json

Request body for canceling a subscription

website_id
string<uuid>
required

The ID of the website to cancel the subscription for

Example:

"123e4567-e89b-12d3-a456-426614174000"

product_id
string
required

The ID of the product/subscription to cancel

Example:

"pro_monthly"

Response

Subscription cancelled successfully

success
boolean
required

Whether the cancellation was successful