Checkout Configurations

Create a checkout configuration

Changed on

Creates a reusable checkout configuration for an existing or inline variant. Send customers to its purchase_url to check out.

post/checkout_configurations

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Headers

Api-Version-Date, string
Example:2026-11-30

Pins the request to a dated API version.

Idempotency-Key, string
Example:d9105228-4a08-46b1-8b91-42fed586d383

A unique key that makes this request safe to retry. See Idempotent requests.

Request body

object required
account_id, string

Account ID, prefixed biz_.

affiliate_code, string nullable

Affiliate code to apply to the checkout.

currency, string nullable

Currency used for setup-mode payment method availability.

metadata, object nullable

Custom key-value metadata copied to payments and memberships.

mode, 'payment' | 'setup'

Controls whether checkout charges the buyer immediately or saves payment details for later. Defaults to payment.

payment_method_configuration, object nullable

Payment method overrides for this checkout. null uses the variant or platform defaults.

redirect_url, string nullable

URL customers are sent to after checkout.

three_ds_level, 'mandate_challenge' | 'mandate_if_required' | 'frictionless_if_required' | 'null' nullable

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, object nullable

Variant attributes used to create or find a variant for this checkout configuration. Mutually exclusive with variant_id.

variant_id, string nullable

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

object required
account_id, string required

Account ID, prefixed biz_.

affiliate_code, string nullable

Affiliate code applied at checkout, or null when none is set.

created_at, string required

When the checkout configuration was created, as an ISO 8601 timestamp.

currency, string nullable

Currency used for setup-mode payment method availability; defaults to usd when omitted.

effective_payment_method_configuration, object nullable

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.

id, string required

Checkout configuration ID, prefixed ch_.

metadata, object nullable

Custom key-value metadata copied to payments and memberships. null without the checkout_configuration:basic:read scope.

mode, 'payment' | 'setup' required

Controls whether checkout charges the buyer immediately or saves payment details for later.

payment_method_configuration, object nullable

Payment method overrides for this checkout. null when it uses the variant or platform defaults.

purchase_url, string nullable

Checkout URL you can send to customers.

redirect_url, string nullable

URL customers are sent to after checkout, or null when no redirect is configured.

three_ds_level, 'mandate_challenge' | 'mandate_if_required' | 'frictionless_if_required' | 'null' nullable

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.

updated_at, string required

When the checkout configuration was last updated, as an ISO 8601 timestamp.

variant, object nullable

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 bizum enum value to the request property payment_method_configuration/disabled/items

    • info

      added the new bizum enum value to the request property payment_method_configuration/enabled/items

    • info

      added the new bizum enum value to the request property variant/payment_method_configuration/disabled/items

    1 more change in this revision