Update Variant
Changed onUpdates a variant's pricing, billing interval, visibility, stock, and other settings. While unpaid_invoice_count is above 0, a change to the prices, billing period, trial, number of payments, currency or billing type returns a 400.
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Path parameters
Variant ID, prefixed plan_.
Headers
Pins the request to a dated API version.
Request body
Whether this variant accepts local currency payments via adaptive pricing.
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.
Attribute values that make this variant one variant of its product, as a map of attribute name to value, e.g. {"size": "Large", "color": "Blue"}. Names are normalized to snake_case identifiers (Ring Size becomes ring_size) and come back in alphabetical order. Every variant on a product must carry the same attribute names and a distinct set of values. Send null to make the variant an ordinary pricing option again.
Recurring billing interval in days, such as 30 for monthly or 365 for annual.
How long the retention discount lasts: 0 forever, 1 the next payment only, or a number of calendar months from when the customer accepts it. Required when offer_cancel_discount is true.
Percentage taken off each discounted renewal, as a whole number from 1 to 100. Required when offer_cancel_discount is true.
Checkout styling overrides for this variant.
The three-letter ISO currency code for the variant's pricing. Defaults to USD.
An array of custom field definitions to collect from customers at checkout. On update, omitting this field leaves existing custom fields unchanged. Send an empty array to clear them.
A text description of the variant displayed to customers on the product page.
Access duration in days before the membership expires.
An image displayed on the product page to represent this variant.
Initial amount charged in the variant's currency, e.g. 10.43 for $10.43. A paid fiat variant charges at least 1.00 in its currency; use 0 for free.
Private notes visible only to the account owner. Not shown to customers.
Custom key-value pairs to store on the variant. Included in webhook payloads for payment and membership events. Max 50 keys, 100 chars per key, 500 chars per string value. The reserved keys custom_cta (a checkout call-to-action button label — one of the product custom CTA values, e.g. subscribe, get_offer) and custom_cta_url (a URL the button links to; web or tel:) override the product's call to action for this variant and are validated on save.
Whether to offer a retention discount when a customer attempts to cancel.
Override the default tax classification for this specific variant.
Explicit payment method configuration for the variant. When not provided, the account's defaults apply. Send at least one of enabled or disabled; an omitted one is empty.
Sales method for this variant.
The amount charged each billing period for recurring variants, in the variant's currency. A paid fiat variant charges at least 1.00 in its currency.
Stock keeping unit for this variant. Maximum 100 characters. Free text, not enforced unique.
Installment payments required before the subscription pauses, from 2 to 115. Only valid on renewal variants.
The maximum number of units available for purchase. Ignored when unlimited_stock is true.
The number of units to add to the current stock. Use a negative number to remove units. The change applies after the other changes in this request, to the stock at that time. This keeps a sale made at the same time. Do not send 0, and do not send it with stock. A variant with unlimited stock, or a change that takes the stock below 0, returns a 409.
A comparison price displayed with a strikethrough for the initial price.
A comparison price displayed with a strikethrough for the renewal price.
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. Send null to inherit the account default.
The display name of the variant shown to customers on the product page. Maximum 30 characters.
Free trial duration before the first recurring charge.
Whether the variant has unlimited stock. When true, the stock field is ignored.
Whether the variant is visible to customers or hidden from public view.
Example request
{
"adaptive_pricing_enabled": true,
"attributes": {
"color": "Blue",
"size": "Large"
},
"billing_period": 30,
"cancel_discount_intervals": 3,
"cancel_discount_percentage": 20,
"checkout_styling": {
"background_color": "#0f172a",
"border_style": "rounded",
"button_color": "#f59e0b",
"font_family": "roboto"
},
"currency": "usd",
"custom_fields": [
{
"field_type": "text",
"id": "field_xxxxxxxxxxxxxx",
"name": "Vehicle make and model",
"order": 1,
"placeholder": "2021 Audi S5",
"required": true
}
],
"description": "Two hand washes a month, interior vacuum, and a quarterly sealant top-up.",
"expiration_days": 365,
"image": {
"direct_upload_id": "eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"id": "file_xxxxxxxxxxxxxx"
},
"internal_notes": "Maintenance tier. Upsell the interior shampoo add-on at renewal.",
"metadata": {
"bay": "2",
"custom_cta": "subscribe",
"custom_cta_url": "https://shinetime.example/wash-club",
"route": "north-austin"
},
"offer_cancel_discount": true,
"override_tax_type": "inclusive",
"payment_method_configuration": {
"disabled": [
"paypal"
],
"enabled": [
"card"
],
"include_platform_defaults": true
},
"release_method": "buy_now",
"renewal_price": 59,
"sku": "TEE-LARGE-BLUE",
"split_pay_required_payments": 4,
"stock": 25,
"stock_adjustment": 2,
"strike_through_initial_price": 99,
"strike_through_renewal_price": 79,
"three_ds_level": "frictionless_if_required",
"title": "Unlimited Wash Club",
"trial_period_days": 7,
"visibility": "visible"
}Response
variant updated
Whether adaptive pricing is enabled for this variant. Raw setting — does not check processor compatibility or feature flags.
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.
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.
Number of days between recurring charges, such as 30 for monthly or 365 for annual. null for one-time variants.
Billing model for this variant.
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.
Cancellation discount as a whole-number percentage. null when none is offered or the actor lacks the plan:basic:read scope.
Variant-level checkout styling (background_color, button_color, font_family, border_style); null inherits the account default.
Whether tax is collected on purchases of this variant, based on the account's tax configuration.
When the variant was created, as an ISO 8601 timestamp.
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.
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.
Customer-visible variant description. Maximum 1000 characters. null if no description is set.
Access duration in days for expiration-based variants, such as 365 for a one-year pass. null for variants without an expiration.
Human-readable price for display (currency + interval) in currency, e.g. "$10 / month".
Variant ID, prefixed plan_.
Pricing-tier image (url, blurhash) shown on the product page; null when no image is set.
Initial purchase price, in currency.
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.
Private notes not shown to customers. null unless the actor has the plan:basic:read scope on the variant's account.
Invoice this variant was generated for; null unless created for an invoice.
Active memberships through this variant. null unless the actor has the plan:basic:read scope on the variant's account.
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.
Whether a cancellation discount is offered. null unless the actor has the plan:basic:read scope on the variant's account.
Payment method configuration (enabled, disabled, include_platform_defaults); null when variant uses default settings.
Product this variant belongs to; null for standalone variants.
URL where customers can purchase this variant directly.
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.
Sales method for this variant.
Recurring price charged every billing period, in currency.
Stock keeping unit, free text set by the seller (e.g. TSHIRT-LARGE-BLUE). Not enforced unique. null when unset.
Installment payments required before the subscription pauses. Must be greater than 1. null if split pay is not configured.
Units available for purchase. null unless the actor has the plan:basic:read scope on the variant's account.
Original initial price shown with a strikethrough, in currency. null when no strikethrough is set.
Original renewal price shown with a strikethrough, in currency. null when no strikethrough is set.
How tax is handled for this variant, including whether tax is included in the price, added at checkout, or not 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. null inherits the account default.
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.
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.
Whether the variant has unlimited stock. When true, the stock field is ignored; waitlist variants always report true.
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.
When the variant was last updated, as an ISO 8601 timestamp.
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,
"attributes": {
"color": "Blue",
"size": "Large"
},
"billing_period": 30,
"billing_type": "renewal",
"cancel_discount_intervals": 3,
"cancel_discount_percentage": 20,
"checkout_styling": {
"background_color": "#0f172a",
"border_style": "rounded",
"button_color": "#f59e0b",
"font_family": "roboto"
},
"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,
"description": "Two hand washes a month, interior vacuum, and a quarterly sealant top-up.",
"effective_payment_method_configuration": {
"disabled": [
"card"
],
"enabled": [
"card"
],
"include_platform_defaults": true
},
"expiration_days": 365,
"formatted_price": "$59.00 / month",
"id": "plan_xxxxxxxxxxxxxx",
"image": {
"blurhash": "LA6bDXT$E3b:R6i+RibEIWbp%ej1",
"url": "https://whop-assets-example.s3.amazonaws.com/uploads/image/2026-01-01/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
},
"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"
},
"offer_cancel_discount": true,
"payment_method_configuration": {
"disabled": [
"crypto"
],
"enabled": [
"card"
],
"include_platform_defaults": true
},
"product": {
"id": "prod_xxxxxxxxxxxxxx",
"title": "Ceramic Coating Package"
},
"purchase_url": "https://whop.com/checkout/plan_xxxxxxxxxxxxxx",
"release_method": "buy_now",
"renewal_price": 59,
"sku": "WASH-CLUB-TEE-LARGE-BLUE",
"split_pay_required_payments": 4,
"strike_through_initial_price": 99,
"strike_through_renewal_price": 79,
"tax_type": "unspecified",
"three_ds_level": "frictionless_if_required",
"title": "Unlimited Wash Club",
"trial_period_days": 7,
"updated_at": "2026-01-01T12:00:00.000Z",
"visibility": "visible"
}Changes
- info
added the new optional request property
stock_adjustment - info
added the non-success response with the status
- info
- info
added the new
bizumenum value to the request propertypayment_method_configuration/disabled/items
1 more change in this revision
- info