Create Checkout Link
Generate a new checkout session link.
Authorizations
Authenticate requests using your standard bearer API key (e.g. YOUR_API_KEY).
Body
Product database/Whop ID to sell
50"prod_123"
The friendly display title of this checkout link
100"Winter Bundle Checkout"
Optional collection database ID to sell
50"col_123"
Prefilled customer name for checkout inputs
100"John Doe"
Prefilled customer email for checkout inputs
255"customer@gmail.com"
Prefilled customer billing address line 1
255"123 Main St"
Prefilled customer billing city
100"San Francisco"
Prefilled customer billing state
100"CA"
Prefilled customer billing zip/postal code
20"94111"
Prefilled customer billing country (2-letter ISO)
10"US"
Override quantity for checkout session
1
The absolute URL to redirect to upon successful payment completion
2048"https://mysite.com/success"
The absolute URL to redirect to if a customer cancels the payment
2048"https://mysite.com/cancel"
Whether to display discount input form fields on checkout screen
true
Response
Checkout link created successfully.
The checkout link ID
"chk_123"
Quantity to purchase
1
Whether to show discounts on the checkout page
true
Timestamp when the link was created
"2025-01-01T12:00:00Z"
Timestamp when the link was last updated
"2025-01-01T12:00:00Z"
The title of the checkout link
"Winter Bundle Checkout"
The linked Product ID
"prod_123"
The linked Collection ID
"col_123"
Pre-filled customer name
"John Doe"
Pre-filled customer email
"customer@example.com"
Pre-filled address line 1
"123 Main St"
Pre-filled city
"New York"
Pre-filled state
"NY"
Pre-filled postal code
"10001"
Pre-filled country
"US"
URL to redirect to after successful payment
"https://example.com/success"
URL to redirect to if payment is cancelled
"https://example.com/cancel"