---
title: "Cancel the membership of a guest"
method: PUT
path: "/v1/guests/{guest_id}/memberships/{user_membership_id}/cancel"
---

# Cancel the membership of a guest

`PUT /v1/guests/{guest_id}/memberships/{user_membership_id}/cancel`

## Request

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

This API helps you to cancel the membership of a guest.

You must specify appropriate details for the `guest_id` and `membership_id` parameters in the API request.

Optionally, you can specify the necessary details for the `cancellation_date` and `termination_date` parameters in the API request body.

## Path parameters

- `guest_id` string, required
- `membership_id` string, required

## Request body

- object
  - `cancellation_date` string, date: Denotes the date when the membership was cancelled.
  - `termination_date` string, date: Denotes the date when the membership was terminated.

## Response `200`

200

- object
  - `error` unknown

## 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)
