Cancels a specific Membership, using its unique ID. It will set the Membership to cancel at period end.
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 ***************************
The ID of the Membership, which will look like mem_*************
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]
Cancel a Membership
Membership model