Plans

Deprecated compatibility endpoint. Create variants with POST /variants instead.

post/plans

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
adaptive_pricing_enabled, boolean nullable
allow_multiple_quantity, boolean
attributes, object nullable
billing_period, integer nullable
billing_type, string
cancel_discount_intervals, integer nullable
cancel_discount_percentage, integer nullable
checkout_styling, object nullable
currency, string
custom_fields, object[] nullable
description, string nullable
expiration_days, integer nullable
image, object nullable
initial_price, number nullable
internal_notes, string nullable
metadata, object nullable
offer_cancel_discount, boolean nullable
override_tax_type, string
payment_method_configuration, object nullable
product_id, string
release_method, string
renewal_price, number nullable
sku, string nullable
split_pay_required_payments, integer nullable
stock, integer nullable
three_ds_level, 'mandate_challenge' | 'mandate_if_required' | 'frictionless_if_required' | 'null' nullable
title, string nullable
trial_period_days, integer nullable
unlimited_stock, boolean nullable
visibility, string

Example request

{
  "account_id": "biz_xxxxxxxxxxxxxx",
  "billing_type": "one_time",
  "custom_fields": [
    {
      "field_type": "text"
    }
  ],
  "payment_method_configuration": {
    "disabled": [
      "acss_debit"
    ],
    "enabled": [
      "acss_debit"
    ]
  },
  "product_id": "prod_xxxxxxxxxxxxxx",
  "release_method": "buy_now",
  "three_ds_level": "mandate_challenge",
  "title": "Deprecated plan creation"
}

Response

variant created through the deprecated plans path

Plan required
account, AccountSummary nullable required
adaptive_pricing_enabled, boolean required

Whether adaptive pricing is enabled for this variant. Raw setting — does not check processor compatibility or feature flags.

allow_multiple_quantity, boolean required

Whether more than one unit can be purchased in an order. Renewal variants cannot enable it. When false, checkouts, carts, and invoices reject a quantity above 1.

attributes, object nullable required

Attribute values that distinguish this variant within its product, as a map of attribute name to value, e.g. {"color": "Blue", "size": "Large"}. Names are snake_case identifiers and come back in alphabetical order. Every attributed variant on a product carries the same attribute names and a distinct set of values; the product lists the full option set as variant_attributes. null when the variant has no attributes.

billing_period, number nullable required

Number of days between recurring charges, such as 30 for monthly or 365 for annual. null for one-time variants.

billing_type, 'renewal' | 'one_time' required

Billing model for this variant.

cancel_discount_intervals, number nullable required

How long the cancellation discount lasts: 0 forever, 1 the next payment only, or a number of calendar months from when the customer accepts it. null when none is offered or the actor lacks the plan:basic:read scope.

cancel_discount_percentage, number nullable required

Cancellation discount as a whole-number percentage. null when none is offered or the actor lacks the plan:basic:read scope.

checkout_styling, object nullable required

Variant-level checkout styling (background_color, button_color, font_family, border_style); null inherits the account default.

collect_tax, boolean required

Whether tax is collected on purchases of this variant, based on the account's tax configuration.

created_at, string required

When the variant was created, as an ISO 8601 timestamp.

currency, 'usd' | 'sgd' | 'inr' | 'aud' | 'brl' | 'cad' | 'dkk' | 'eur' | 'nok' | 'gbp' | 'sek' | 'chf' | 'hkd' | 'huf' | 'jpy' | 'mxn' | 'myr' | 'pln' | 'czk' | 'nzd' | 'aed' | 'eth' | 'ape' | 'cop' | 'ron' | 'thb' | 'bgn' | 'idr' | 'dop' | 'php' | 'try' | 'krw' | 'twd' | 'vnd' | 'pkr' | 'clp' | 'uyu' | 'ars' | 'zar' | 'dzd' | 'tnd' | 'mad' | 'kes' | 'kwd' | 'jod' | 'all' | 'xcd' | 'amd' | 'bsd' | 'bhd' | 'bob' | 'bam' | 'khr' | 'crc' | 'xof' | 'egp' | 'etb' | 'gmd' | 'ghs' | 'gtq' | 'gyd' | 'ils' | 'jmd' | 'mop' | 'mga' | 'mur' | 'mdl' | 'mnt' | 'nad' | 'ngn' | 'mkd' | 'omr' | 'pyg' | 'pen' | 'qar' | 'rwf' | 'sar' | 'rsd' | 'lkr' | 'tzs' | 'ttd' | 'uzs' | 'rub' | 'btc' | 'cny' | 'usdt' | 'kzt' | 'awg' | 'whop_usd' | 'xau' | 'hnl' required

Three-letter ISO 4217 code of the currency every price on this variant is stated in, lowercase: the variant's own currency, or the presentment_currency the read asked for when the variant can be converted into it.

custom_fields, PlanCustomField[] required
deletable, boolean nullable required

Whether the variant can be deleted (it has no memberships or waitlist entries). null unless the actor has the plan:basic:read scope on the variant's account.

description, string nullable required

Customer-visible variant description. Maximum 1000 characters. null if no description is set.

effective_payment_method_configuration, CheckoutSessionPaymentMethodConfiguration nullable required
expiration_days, number nullable required

Access duration in days for expiration-based variants, such as 365 for a one-year pass. null for variants without an expiration.

formatted_price, string required

Human-readable price for display (currency + interval) in currency, e.g. "$10 / month".

id, string required

Variant ID, prefixed plan_.

image, object nullable required

Pricing-tier image (url, blurhash) shown on the product page; null when no image is set.

initial_price, number required

Initial purchase price, in currency.

initial_price_due, Money required

Total charged at checkout for one unit, before promo codes and tax. For recurring variants it is initial_price plus the first renewal_price. It is initial_price alone while a free trial applies or the subscription_starts_at metadata key is in the future. The trial does not apply when the viewing user has already used one for this variant. Stated in currency.

internal_notes, string nullable required

Private notes not shown to customers. null unless the actor has the plan:basic:read scope on the variant's account.

invoice, object nullable required

Invoice this variant was generated for; null unless created for an invoice.

member_count, number nullable required

Active memberships through this variant. null unless the actor has the plan:basic:read scope on the variant's account.

metadata, object nullable required

Custom key-value pairs stored on the variant. Included in webhook payloads for payment and membership events. Maximum 50 keys, 100 characters per key, 500 characters per value. The reserved keys custom_cta and custom_cta_url, when set, override the product's checkout call to action for this variant. The reserved key subscription_starts_at takes an ISO 8601 timestamp on a recurring variant. Until then, checkout saves the payment method without charging it. The membership is scheduled with no access until the first charge runs at that time.

offer_cancel_discount, boolean nullable required

Whether a cancellation discount is offered. null unless the actor has the plan:basic:read scope on the variant's account.

payment_method_configuration, object nullable required

Payment method configuration (enabled, disabled, include_platform_defaults); null when variant uses default settings.

product, object nullable required

Product this variant belongs to; null for standalone variants.

purchase_url, string required

URL where customers can purchase this variant directly.

redirect_url, string nullable required

Where the customer is sent after paying for this variant. null when none is set, or unless the actor has the plan:basic:read scope on the variant's account.

release_method, 'buy_now' | 'waitlist' required

Sales method for this variant.

renewal_price, number required

Recurring price charged every billing period, in currency.

sku, string nullable required

Stock keeping unit, free text set by the seller (e.g. TSHIRT-LARGE-BLUE). Not enforced unique. null when unset.

split_pay_required_payments, number nullable required

Installment payments required before the subscription pauses. Must be greater than 1. null if split pay is not configured.

stock, number nullable required

Units available for purchase. null unless the actor has the plan:basic:read scope on the variant's account.

strike_through_initial_price, number nullable required

Original initial price shown with a strikethrough, in currency. null when no strikethrough is set.

strike_through_renewal_price, number nullable required

Original renewal price shown with a strikethrough, in currency. null when no strikethrough is set.

tax_type, 'inclusive' | 'exclusive' | 'unspecified' required

How tax is handled for this variant, including whether tax is included in the price, added at checkout, or not configured.

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

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. null inherits the account default.

title, string nullable required

Variant display name shown to customers. Maximum 30 characters. A variant created without one defaults to its attribute values joined with /. null if no title has been set.

trial_period_days, number nullable required

Free trial days before the first renewal charge. null if no trial is configured or the user has already used a trial for this variant.

unlimited_stock, boolean required

Whether the variant has unlimited stock. When true, the stock field is ignored; waitlist variants always report true.

unpaid_invoice_count, integer nullable required

Number of issued invoices for this variant that are not paid or void. While it is above 0, you can't change the variant's prices, billing period, trial, number of payments, currency or billing type. null unless the actor has the plan:basic:read scope on the variant's account.

updated_at, string required

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

visibility, 'visible' | 'hidden' | 'archived' | 'quick_link' required

Controls where this variant can be seen. When hidden, the variant is reachable only by its direct link.

Example response

{
  "account": {
    "id": "biz_xxxxxxxxxxxxxx",
    "title": "Shine Time Auto Detailing"
  },
  "adaptive_pricing_enabled": true,
  "billing_period": 30,
  "billing_type": "renewal",
  "collect_tax": true,
  "created_at": "2026-01-01T12:00:00.000Z",
  "currency": "usd",
  "custom_fields": [
    {
      "field_type": "text",
      "id": "field_xxxxxxxxxxxxxx",
      "name": "Link your website or main social profile",
      "order": 1,
      "placeholder": "https://"
    }
  ],
  "deletable": true,
  "effective_payment_method_configuration": {
    "disabled": [
      "card"
    ],
    "enabled": [
      "card"
    ],
    "include_platform_defaults": true
  },
  "formatted_price": "$59.00 / month",
  "id": "plan_xxxxxxxxxxxxxx",
  "initial_price_due": {
    "amount": "-1234.56",
    "currency": "usd",
    "decimals": 2,
    "display_decimals": 2
  },
  "internal_notes": "Maintenance tier. Upsell the interior shampoo add-on at renewal.",
  "metadata": {
    "custom_cta": "subscribe",
    "custom_cta_url": "https://shinetime.example/wash-club"
  },
  "product": {
    "id": "prod_xxxxxxxxxxxxxx",
    "title": "Ceramic Coating Package"
  },
  "purchase_url": "https://whop.com/checkout/plan_xxxxxxxxxxxxxx",
  "release_method": "buy_now",
  "renewal_price": 59,
  "tax_type": "exclusive",
  "three_ds_level": "mandate_challenge",
  "title": "Deprecated plan update",
  "updated_at": "2026-01-01T12:00:00.000Z",
  "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 pix_automatico enum value to the request property payment_method_configuration/disabled/items

    1 more change in this revision