Checkout Sessions
Create a Checkout Session
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.
POST
/v2/checkout_sessions
Authorization
curl --request POST \
--url https://api.whop.com/v2/checkout_sessions \
--data '{
"create_checkout_session": {}
}'
Headers
Authorization
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
affiliate_code
string
The code to apply as the affiliate for the transaction. Codes are a User object's username
field.
id
string
The ID of the session, which will look like ch_*************
metadata
object
The metadata that will be attached to the Membership upon successful purchase.
plan_id
string
The ID of the plan that the checkout session is associated with, which will look like plan_*************
purchase_url
string
The URL that the customer can use to purchase with this checkout session.
redirect_url
string
The URL the user will be navigated to after successfully completing a checkout with this session
curl --request POST \
--url https://api.whop.com/v2/checkout_sessions \
--data '{
"create_checkout_session": {}
}'