GET
/
v5
/
me
/
memberships
/
{id}

Authorizations

Authorization
string
header
required

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_*************. This can also be the license key

Response

200 - application/json
created_at
number
required

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

id
string
required

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

manage_url
string
required

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

page_id
string
required

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

plan_id
string
required

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

product_id
string
required

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

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

affiliate_username
string

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

cancel_at_period_end
boolean

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

checkout_id
string

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

company_buyer_id
string

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

expires_at
number

The time of when the Membership is set to go expired

license_key
string

The license key for the membership

marketplace
boolean

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

metadata
object

The metadata for the membership

renewal_period_end
number

The UTC timestamp of when the Membership will end

renewal_period_start
number

The UTC timestamp of when the Membership will begin

user_id
string

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