POST
/
v2
/
checkout_sessions
curl --request POST \
  --url https://api.whop.com/api/v2/checkout_sessions \
  --header 'Content-Type: application/json' \
  --data '{
  "plan_id": "<string>",
  "affiliate_code": "<string>",
  "redirect_url": "<string>",
  "metadata": {}
}'
{
  "id": "<string>",
  "redirect_url": "<string>",
  "affiliate_code": "<string>",
  "metadata": {},
  "plan_id": "<string>",
  "purchase_url": "<string>"
}

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 ***************************

Body

application/json

Create a Checkout Session

Response

201 - application/json

Create a Checkout Session

CheckoutSession model