GET
https://api.whop.com/api
/
v2
/
checkout_sessions
/
{id}
curl --request GET \
  --url https://api.whop.com/api/v2/checkout_sessions/{id}
{
  "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 ***************************

Path Parameters

id
string
required

The ID of the session, which will look like ch_*************

Response

200 - application/json

Retrieve a Checkout Session

CheckoutSession model