---
title: "Cancel a guest's registration to a class"
method: PUT
path: "/v1/classes/{class_id}/registrations/{registration_id}/cancel"
---

# Cancel a guest's registration to a class

`PUT /v1/classes/{class_id}/registrations/{registration_id}/cancel`

## Request

- Base URL: `https://api.zenoti.com`
- URL: `https://api.zenoti.com/v1/classes/{class_id}/registrations/{registration_id}/cancel`
- Auth: none required
- TypeScript: <https://skmtc.dev/zenoti/apis/zenoti-authentication/docs/v1/classes/:class_id/registrations/:registration_id/cancel/put.ts> (a function with typed inputs; its response is checked against the schema)

**Purpose**: The purpose of this API is to cancel the registration of a user to a class.

You must provide a unique identifier for the `class_id` as well as for the `registration_id`. The API then cancels the registration of a user to the class.

## Path parameters

- `class_id` integer, required
- `registration_id` integer, required

## Request body

- object
  - `waive_fee` boolean: As per your business policy, you can waive the cancelation fee. True: The cancellation fee is waived. False. The cancellation fee is not waived.

## Response `200`

200

## Other responses

- `400`: 400

---

[API](https://skmtc.dev/zenoti/apis/zenoti-authentication.md) - [All operations](https://skmtc.dev/zenoti/apis/zenoti-authentication/llms.txt) - [OpenAPI document](https://skmtc.dev/zenoti/apis/zenoti-authentication/revisions/e628f892391a?raw)
