API Reference

Cancels a specific Membership, using its unique ID. It will set the Membership to cancel at period end.

Log in to see full request history
Path Params
string
required

The ID of the Membership, which will look like mem_*************

Query Params
expand
array of strings

Whether or not to expand the User, Plan, Product, or Promo Code on the returned Membership(s). Pass an array with each object(s) you want to expand, e.g. [product, plan, user, promo_code]

expand
Headers
string

Your API key, which can be found on the Whop Business Dashboard. You must prepend your key with the word 'Bearer', which will look like Bearer ***************************

Response

Language
Click Try It! to start a request and see the response here! Or choose an example:
application/json