---
title: "Membership Deactivated"
method: POST
path: "membership.deactivated"
tags: ["Memberships"]
---

# Membership Deactivated

`POST membership.deactivated` (webhook)

Sent when a membership is deactivated

Required permissions:
 - `member:basic:read`
 - `member:email:read`
 - `webhook_receive:memberships`

## Headers

- `webhook-id` string, required — A unique identifier for this webhook request
- `webhook-signature` string, required — The signature of the webhook request with the webhook version prepended
- `webhook-timestamp` string, required — The timestamp in seconds since the Unix epoch that the webhook was sent at on the server

## Payload

- object
  - `api_version` 'v1', required — The API version for this webhook
  - `api_version_date` string, nullable, required — The dated API version (Api-Version-Date) the payload is serialized to
  - `company_id` string, nullable — The account ID that this webhook event is associated with
  - `data` Membership, required
    - `account` MembershipAccount, required
      - `id` string, required — Account ID, prefixed `biz_`.
      - `logo_url` string, nullable, required — Account logo image URL.
      - `route` string, required — Account public route identifier — the `whop.com/{route}` storefront path.
      - `title` string, required — Account display name.
    - `cancel_at_period_end` boolean, required — Whether the membership is set to cancel when the current billing period ends. Only meaningful for recurring plans.
    - `created_at` string, required — When the membership was created, as an ISO 8601 timestamp.
    - `current_period_end` string, nullable, required — When the current billing period renews, or when a non-renewing membership expires, as an ISO 8601 timestamp. `null` for one-time purchases with no expiration.
    - `id` string, required — Membership ID, prefixed `mem_`.
    - `license_key` string, nullable, required — The software license key for this membership. Only present when the product includes a software licensing experience.
    - `member` MembershipMember, required
      - `access_level` 'no_access' | 'admin' | 'customer', required — What the member can reach on the account: `customer` for paying members, `admin` for team members, `no_access` once every grant has lapsed.
      - `last_accessed_at` string, nullable, required — When the member last opened the account's content, as an ISO 8601 timestamp. `null` if they never have.
      - `position` number, nullable, required — The member's sort position in the buyer's own account list. `null` until they arrange it.
    - `metadata` object, required — Custom key-value pairs stored on the membership, commonly used for software licensing.
    - `plan_id` string, required — The plan the buyer purchased, prefixed `plan_`.
    - `product_id` string, required — The product this membership grants access to, prefixed `prod_`.
    - `status` 'trialing' | 'active' | 'past_due' | 'completed' | 'canceled' | 'expired' | 'unresolved', required — Billing state of the membership. `active`/`trialing` memberships grant access; `past_due` is the grace period after a failed payment; `completed` one-time purchases keep access; `canceled`/`expired` do not.
    - `user_id` string, nullable, required — The buyer, prefixed `user_`. `null` when the buyer is another business or the membership is unclaimed.
  - `id` string, required — A unique ID for every single webhook request
  - `timestamp` string, date-time, required — The timestamp in ISO 8601 format that the webhook was sent at on the server
  - `type` 'membership.deactivated', required — The webhook event type

## Acknowledgement `200`

Return a 200 status to indicate that the data was received successfully

---

[API](https://skmtc.net/whop/apis/whop-api.md) · [All operations](https://skmtc.net/whop/apis/whop-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/whop/whop-api/versions/db0883548bc5/schema)
