---
title: "Cancel a subscription"
method: DELETE
path: "/zephr/subscriptions/{externalId}"
tags: ["Subscription"]
---

# Cancel a subscription

`DELETE /zephr/subscriptions/{externalId}`

## Request

- Base URL: `https://demo-site`
- URL: `https://demo-site/zephr/subscriptions/{externalId}`
- Auth: one of:
  - API key in cookie `blaize_session`
  - API key in query parameter `jwt`
  - API key in header `x-blaize-jwt`
  - API key in header `x-zephr-jwt`
  - HTTP bearer
  - API key in cookie `blaize_jwt`

It cancels the logged in user's subscription with the provided external identifier (`extenalId`). A logged in session is required for this operation.

## Path parameters

- `externalId` string, required

## Response `200`

OK - Subscription has been cancelled successfully

## Other responses

- `403`: Forbidden - Invalid subscription provided
- `409`: Conflict - This subscription had already been cancelled

---

[API](https://skmtc.dev/zuora/apis/zuora-2.md) - [All operations](https://skmtc.dev/zuora/apis/zuora-2/llms.txt) - [OpenAPI document](https://skmtc.dev/zuora/apis/zuora-2/revisions/678190d04c40?raw)
