Create a checkout configuration
Changed onCreates a reusable checkout configuration for an existing or inline variant. Send customers to its purchase_url to check out.
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Headers
Pins the request to a dated API version.
A unique key that makes this request safe to retry. See Idempotent requests.
Request body
Account ID, prefixed biz_.
Affiliate code to apply to the checkout.
Currency used for setup-mode payment method availability.
Custom key-value metadata copied to payments and memberships.
Controls whether checkout charges the buyer immediately or saves payment details for later. Defaults to payment.
Payment method overrides for this checkout. null uses the variant or platform defaults.
URL customers are sent to after checkout.
3D Secure behavior for supported on-session card payments. mandate_challenge requires a 3DS challenge before payment processing; mandate_if_required mandates a challenge only when the payment processor requires it; frictionless_if_required uses the regular frictionless 3DS flow. Payments of $1,000 or more use mandate_if_required unless mandate_challenge is selected. Risk and authentication recovery requirements can override the preference. Applies in setup mode; null uses frictionless 3DS. Payment mode uses the variant policy.
Variant attributes used to create or find a variant for this checkout configuration. Mutually exclusive with variant_id.
Existing variant ID, prefixed plan_. Mutually exclusive with variant.
Example request
{
"account_id": "biz_xxxxxxxxxxxxxx",
"variant_id": "plan_xxxxxxxxxxxxx"
}Response
checkout configuration created for an existing plan
Account ID, prefixed biz_.
Affiliate code applied at checkout, or null when none is set.
When the checkout configuration was created, as an ISO 8601 timestamp.
Currency used for setup-mode payment method availability; defaults to usd when omitted.
The configuration governing a checkout mounted from this configuration, resolved through every layer (its own overrides, the variant's, and the account's) — the shape a session's payment_method_configuration carries. Apply it over the payment method types catalogue for the offerable set. null means platform defaults; payment_method_configuration stays this configuration's own editable override.
Checkout configuration ID, prefixed ch_.
Custom key-value metadata copied to payments and memberships. null without the checkout_configuration:basic:read scope.
Controls whether checkout charges the buyer immediately or saves payment details for later.
Payment method overrides for this checkout. null when it uses the variant or platform defaults.
Checkout URL you can send to customers.
URL customers are sent to after checkout, or null when no redirect is configured.
3D Secure behavior for supported on-session card payments. mandate_challenge requires a 3DS challenge before payment processing; mandate_if_required mandates a challenge only when the payment processor requires it; frictionless_if_required uses the regular frictionless 3DS flow. Payments of $1,000 or more use mandate_if_required unless mandate_challenge is selected. Risk and authentication recovery requirements can override the preference. Applies in setup mode; null uses frictionless 3DS. Payment mode uses the variant policy.
When the checkout configuration was last updated, as an ISO 8601 timestamp.
Variant used for payment checkout. null in setup mode.
Example response
{
"account_id": "biz_xxxxxxxxxxxxxx",
"affiliate_code": "tanyacole",
"created_at": "2026-01-01T12:00:00.000Z",
"currency": "usd",
"effective_payment_method_configuration": {
"disabled": [
"paypal"
],
"enabled": [
"card"
],
"include_platform_defaults": true
},
"id": "ch_xxxxxxxxxxxxxx",
"metadata": {},
"mode": "setup",
"payment_method_configuration": {
"disabled": [
"paypal"
],
"enabled": [
"card"
],
"include_platform_defaults": true
},
"purchase_url": "https://whop.com/checkout/ch_xxxxxxxxxxxxxx/",
"redirect_url": "https://shinetime.example/thanks",
"three_ds_level": "mandate_challenge",
"updated_at": "2026-01-01T12:00:00.000Z",
"variant": {
"adaptive_pricing_enabled": true,
"billing_period": 30,
"billing_type": "one_time",
"currency": "usd",
"expiration_days": 365,
"id": "plan_xxxxxxxxxxxxxx",
"initial_price": 249,
"release_method": "buy_now",
"three_ds_level": "frictionless_if_required",
"trial_period_days": 7,
"visibility": "visible"
}
}Changes
- info
added the new
bizumenum value to the request propertypayment_method_configuration/disabled/items - info
added the new
bizumenum value to the request propertypayment_method_configuration/enabled/items - info
added the new
bizumenum value to the request propertyvariant/payment_method_configuration/disabled/items
1 more change in this revision
- info