DELETE
/
v5
/
company
/
memberships
/
{id}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

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

Response

200 - application/json
id
string
required

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

product_id
string
required

The ID of the product, which will look like prod_*************

plan_id
string
required

The ID of the plan, which will look like plan_*************

page_id
string
required

The ID of the page, which will look like page_*************

created_at
number
required

The time at which the Membership was created. Measured in seconds since the Unix epoch.

quantity
number
required

The quantity purchased

status
enum<string>
required

The status of the membership

Available options:
trialing,
active,
past_due,
completed,
canceled,
expired,
unresolved
valid
boolean
required

Whether or not the membership is valid

manage_url
string
required

The URL for the customer to manage their membership on whop.com.

user_id
string

The ID of the user, which will look like user_*************

expires_at
number

The time of when the Membership is set to go expired

renewal_period_start
number

The UTC timestamp of when the Membership will begin

renewal_period_end
number

The UTC timestamp of when the Membership will end

cancel_at_period_end
boolean

Whether or not this membership is scheduled to cancel at the end of the renewal period.

license_key
string

The license key for the membership

metadata
object

The metadata for the membership

checkout_id
string

The ID of the checkout used to first purchase / generate the membership.

affiliate_username
string

The username of the affiliate that referred the customer to this membership, if any.

company_buyer_id
string

The ID of the company that purchased/owns the membership. (For example, they installed an app). Looks like biz_*************

marketplace
boolean

Whether or not the membership was purchased through the whop marketplace.