OpenAPI 3.1.02026-08-203914235.9 MB
6a23760847c8
Memberships
Cancel Membership
Cancels a membership. Pass cancel_at_period_end: true to stop auto-renewal and keep access until the current billing period ends. Omit it (or pass false) to revoke access immediately. Buyers cannot cancel buy-now-pay-later (splitit, sezzle) or non-trial split-pay memberships.
post/memberships/{id}/cancel
Headers
Idempotency-Keystring
Example:d9105228-4a08-46b1-8b91-42fed586d383
A unique key that makes this request safe to retry. See Idempotent requests.
Request body
Example request
{
"cancel_at_period_end": true,
"reason": "chargeback risk"
}Response
membership canceled
Example response
{
"account": {
"id": "biz_xxxxxxxxxxxxxx",
"logo_url": "https://whop-assets-example.s3.amazonaws.com/uploads/image/2026-01-01/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"route": "shine-time-auto-detailing",
"title": "Shine Time Auto Detailing"
},
"created_at": "2026-01-01T12:00:00.000Z",
"current_period_end": "2026-01-01T12:00:00.000Z",
"id": "mem_xxxxxxxxxxxxxx",
"license_key": "WHOP-XXXX-XXXX-XXXX",
"member": {
"access_level": "customer",
"last_accessed_at": "2026-01-01T12:00:00.000Z",
"position": 1767268800000
},
"metadata": {},
"plan_id": "plan_xxxxxxxxxxxxxx",
"product_id": "prod_xxxxxxxxxxxxxx",
"status": "active",
"user_id": "user_xxxxxxxxxxxxxx"
}