API Reference

Creates a new Checkout Session. A Checkout Session allows specific data to be attached to a Membership upon purchase and customization of the checkout experience.

Log in to see full request history
timestatususer agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

The ID of the plan that the checkout session is associated with, which will look like plan_*************

string

The code to apply as the affiliate for the transaction. Codes are a User object's username field.

string

The URL the user will be navigated to after successfully completing a checkout with this session

metadata
object

The metadata that will be attached to the Membership upon successful purchase.

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