DELETE
/
workspaces
/
{workspace_id}
/
billing-accounts
/
{billing_account_id}
/
subscriptions
/
{subscription_id}
Cancel Subscription
curl --request DELETE \
  --url https://api.altostrat.io/workspaces/{workspace_id}/billing-accounts/{billing_account_id}/subscriptions/{subscription_id} \
  --header 'Authorization: Bearer <token>'
{
  "message": "Subscription cancelled successfully"
}

Authorizations

Authorization
string
header
required

Auth0 JWT token for user authentication.

Path Parameters

workspace_id
string
required

The unique identifier for the workspace.

Example:

"ws_abc123"

billing_account_id
string
required

The unique identifier for the billing account (Stripe customer ID).

Example:

"cus_abc123"

subscription_id
string
required

The unique identifier for the subscription (Stripe subscription ID).

Example:

"sub_abc123"

Response

200
application/json

Subscription scheduled for cancellation.

The response is of type object.