Skip to main content
GET
Retrieve Variant

인증

Authorization
string
header
필수

An Account API key, an App API key, an account access token, an account-scoped user token, or a user OAuth token. Prepend the key or token with Bearer, for example Bearer ***************************. See Auth & API keys for how to get each one.

Scopes

plan:basic:read

헤더

Api-Version-Date
string

Pins the request to a dated API version.

예시:

"2026-11-17"

경로 매개변수

id
string
필수

Variant ID, prefixed plan_.

쿼리 매개변수

presentment_currency
string | null

The currency to state each variant's prices in. Omit it, or send null, for each variant's own currency. auto states them in the currency of the country Whop places the buyer in: by ip_address when your server sends one, and by the request's own IP address otherwise. To choose that country instead, send presentment_country in place of this. A three-letter ISO 4217 code, such as eur, states them in that currency. A variant converts only where a payment quote for it would be priced in that currency, and stays in its own currency otherwise: a renewing variant, one with adaptive pricing off, a currency no payment method can collect, or auto for a buyer Whop cannot place in a country. Converted prices are an estimate at the current exchange rate. Nothing is held: the payment quote the buyer pays from fixes the rate.

예시:

"auto"

ip_address
string | null

The buyer's IP address, when your server reads on their behalf. Needs an API key; any other caller is placed by its own request. Where presentment_currency auto finds the buyer's local currency, and where a payment method must be able to collect it.

예시:

"203.0.113.7"

presentment_country
string | null

The country to state each variant's prices for, as an ISO 3166-1 alpha-2 code such as JP, when the buyer chose one: a store's country picker. States them in the currency auto would for a buyer in that country, so send it instead of presentment_currency, never with it. Whether a payment method can collect that currency is still judged where the buyer is: by ip_address, else by the request's own IP address. A country Whop has no currency for is ignored, and the prices are stated as auto would state them.

예시:

"JP"

응답

variant retrieved

account
object | null
필수

Account that sells this variant; null for standalone invoice variants.

adaptive_pricing_enabled
boolean
필수

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

예시:

true

allow_multiple_quantity
boolean
필수

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.

예시:

false

attributes
object | null
필수

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 | null
필수

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

예시:

30

billing_type
enum<string>
필수

Billing model for this variant.

사용 가능한 옵션:
renewal,
one_time
예시:

"renewal"

cancel_discount_intervals
number | null
필수

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.

예시:

3

cancel_discount_percentage
number | null
필수

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

예시:

20

checkout_styling
object | null
필수

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

예시:
collect_tax
boolean
필수

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

예시:

false

created_at
string
필수

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

예시:

"2026-01-01T12:00:00.000Z"

currency
string
필수

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.

예시:

"usd"

custom_fields
object[]
필수
deletable
boolean | null
필수

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.

예시:

true

description
string | null
필수

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

예시:

"Two hand washes a month, interior vacuum, and a quarterly sealant top-up."

effective_payment_method_configuration
object | null
필수

The configuration governing a checkout for this variant, resolved through every layer (the variant's own 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 the variant's own editable override.

expiration_days
number | null
필수

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

예시:

365

formatted_price
string
필수

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

예시:

"$59.00 / month"

id
string
필수

Variant ID, prefixed plan_.

예시:

"plan_xxxxxxxxxxxxxx"

image
object | null
필수

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

예시:
initial_price
number
필수

Initial purchase price, in currency.

예시:

0

initial_price_due
object
필수

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

internal_notes
string | null
필수

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

예시:

"Maintenance tier. Upsell the interior shampoo add-on at renewal."

invoice
object | null
필수

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

예시:

null

member_count
number | null
필수

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

예시:

0

metadata
object | null
필수

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.

예시:
offer_cancel_discount
boolean | null
필수

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

예시:

true

payment_method_configuration
object | null
필수

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

예시:
product
object | null
필수

Product this variant belongs to; null for standalone variants.

예시:
purchase_url
string
필수

URL where customers can purchase this variant directly.

예시:

"https://whop.com/checkout/plan_xxxxxxxxxxxxxx"

redirect_url
string | null
필수

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.

예시:

null

release_method
enum<string>
필수

Sales method for this variant.

사용 가능한 옵션:
buy_now,
waitlist
예시:

"buy_now"

renewal_price
number
필수

Recurring price charged every billing period, in currency.

예시:

59

sku
string | null
필수

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

예시:

"WASH-CLUB-TEE-LARGE-BLUE"

split_pay_required_payments
number | null
필수

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

예시:

4

stock
number | null
필수

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

예시:

0

strike_through_initial_price
number | null
필수

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

예시:

99

strike_through_renewal_price
number | null
필수

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

예시:

79

tax_type
enum<string>
필수

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

사용 가능한 옵션:
inclusive,
exclusive,
unspecified
예시:

"unspecified"

three_ds_level
enum<string> | null
필수

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.

사용 가능한 옵션:
mandate_challenge,
mandate_if_required,
frictionless_if_required,
null
예시:

"frictionless_if_required"

title
string | null
필수

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.

예시:

"Unlimited Wash Club"

trial_period_days
number | null
필수

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.

예시:

7

unlimited_stock
boolean
필수

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

예시:

false

unpaid_invoice_count
integer | null
필수

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.

예시:

0

updated_at
string
필수

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

예시:

"2026-01-01T12:00:00.000Z"

visibility
enum<string>
필수

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

사용 가능한 옵션:
visible,
hidden,
archived,
quick_link
예시:

"visible"