> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# Resource: Plans V3

# Type: Plan Object

# Link: https://dev.wix.com/docs/api-reference/business-solutions/pricing-plans/plans-v3/plan-object.md

## Schema:

```json
 Type: Plan Object | type: Plan
       - name: id  | type: string | description: Plan ID.
           - name: value  | type: string | description: 
       - name: revision  | type: string | description: Revision number, which increments by 1 each time the plan is updated.
           - name: value  | type: string | description: 
       - name: createdDate  | type: string | description: Date and time the plan was created.
           - name: seconds  | type: string | description: 
           - name: nanos  | type: number | description: 
       - name: updatedDate  | type: string | description: Date and time the plan was last updated.
       - name: name  | type: string | description: Plan name displayed to customers.
       - name: description  | type: string | description: Plan description that explains what customers get with this plan.
       - name: image  | type: Image | description: Plan image displayed during checkout and on the site's **Plans & Pricing** page.
           - name: id  | type: string | description: WixMedia image ID.
           - name: height  | type: number | description: Original image height.
           - name: width  | type: number | description: Original image width.
           - name: altText  | type: string | description: Image alt text.
       - name: slug  | type: string | description: Unique identifier for this plan within the Wix site. If not provided, generated automatically from the plan name.
       - name: termsAndConditions  | type: string | description: Terms and conditions text that customers must agree to when purchasing this plan.
       - name: maxPurchasesPerBuyer  | type: number | description: Deprecated. Use `purchase_limits` with `PER_MEMBER_LIFETIME` type instead. Maximum number of times the same customer can purchase this plan. Use `0` for unlimited purchases or `1` to limit to one purchase per customer.
       - name: pricingVariants  | type: Array<PricingVariant> | description: Pricing variants that define different billing and pricing options for this plan. Currently limited to 1 variant per plan.
           - name: id  | type: string | description: Pricing variant ID.
           - name: name  | type: string | description: Name for this pricing variant, such as "Monthly" or "Yearly".
           - name: freeTrialDays  | type: number | description: Number of days customers can use the plan for free before the first charge. Set to `0` for no free trial.
           - name: fees  | type: Array<Fee> | description: Additional fees applied to this pricing variant.
               - name: id  | type: string | description: 
               - name: priceType  | type: string | description: Pricing type used for this fee.
               - name: name  | type: string | description: Fee name displayed to customers, such as "Setup Fee" or "Processing Fee".
               - name: appliedAt  | type: string | description: When this fee is charged during the customer's plan lifecycle.
               - ONE-OF:
                   - name: fixedAmountOptions  | type: FixedAmountOption | description: Fixed monetary amount for the fee.
           - name: billingTerms  | type: BillingTerms | description: Billing configuration that defines when and how often customers are charged.
               - name: billingCycle  | type: Duration | description: Duration of each billing cycle, such as 1 month or 2 weeks. Can't be less than 7 days. Only applicable for recurring plans.
               - name: startType  | type: string | description: When the billing starts.
               - name: endType  | type: string | description: How long the plan remains active. Plans can run until canceled or for a specific number of billing cycles. Plan duration can't exceed 10 years.
               - ONE-OF:
                   - name: cyclesCompletedDetails  | type: CyclesCompletedDetails | description: How many billing cycles the plan lasts.
           - name: promotion  | type: string | description: Promotional message displayed with this pricing variant.
           - name: pricingStrategies  | type: Array<PricingStrategy> | description: Pricing strategies that determine how much customers pay. Currently limited to 1 strategy per variant.
               - ONE-OF:
                   - name: flatRate  | type: FlatRate | description: Single fixed cost charged regardless of usage.
           - name: visible  | type: boolean | description: Whether this pricing variant is visible to customers. Defaults to `true` when not set. At least one variant per plan must remain visible. Variant-level visibility is independent from plan-level visibility (`Plan.visibility`).
               - name: value  | type: boolean | description: 
           - name: categoryIds  | type: Array<string> | description: IDs of the categories this variant belongs to. Categories group variants across plans (for example into a "Monthly / Yearly" selector) independently of billing cycle. Optional.
           - name: priceOverrides  | type: PriceOverrides | description: Rules that override this pricing variant's price for purchases that meet their conditions. Applied during purchase. An override that matches the purchase always replaces the variant's original price, even when the resulting price is higher. If multiple overrides match the same purchase, the lowest resulting price among them wins - the original price doesn't participate in this comparison. The overridden price applies to every billing cycle of the resulting subscription, not only the first payment. Updates replace the entire list of overrides. To remove all overrides, set this field to `null` - an empty overrides list isn't accepted.
               - name: overrides  | type: Array<PriceOverride> | description: Price override rules.
           - name: feeOverrides  | type: FeeOverrides | description: Rules that override specific fees of this pricing variant for purchases that meet their conditions. Applied during purchase. If multiple overrides apply to the same fee, the lowest resulting fee amount wins, with a waived fee counting as `0`. Updates replace the entire list of overrides. To remove all overrides, set this field to `null` - an empty overrides list isn't accepted.
               - name: overrides  | type: Array<FeeOverride> | description: Fee override rules.
       - name: perks  | type: Array<Perk> | description: List of text snippets describing what the plan offers. For display purposes only.
           - name: id  | type: string | description: Perk ID.
           - name: description  | type: string | description: Perk description.
       - name: visibility  | type: string | description: Plan visibility. Determines whether the plan is returned to site visitors and site members.  Default: `PUBLIC`
           enum: PUBLIC, PRIVATE
       - name: buyable  | type: boolean | description: Deprecated. Whether the plan is marked as available for online purchase. This value isn't enforced. Setting it to `false` doesn't prevent customers from purchasing the plan.
       - name: formId  | type: string | description: ID of the form associated with the plan at checkout.
       - name: buyerCanCancel  | type: boolean | description: Whether buyers can cancel their subscription to this plan.
       - name: currency  | type: string | description: Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. When the site currency changes, monetary amounts stored on the plan (prices, fees, and override amounts) are automatically rounded to the number of decimal places supported by the new currency.
       - name: purchaseLimits  | type: Array<PurchaseLimit> | description: Caps how many subscriptions buyers can have or the site can sell for this plan. When multiple types are present, all must pass (AND logic). Duplicate types are rejected by the server.
           - name: type  | type: string | description: The type of purchase limit.
               enum: PER_MEMBER_LIFETIME, PER_MEMBER_ACTIVE, TOTAL_ACTIVE, TOTAL_SOLD
           - name: maxCount  | type: number | description: The maximum number of subscriptions allowed.
       - name: benefitDistributionSettings  | type: BenefitDistributionSettings | description: The settings of the benefit distribution for subscriptions to this plan
           - name: distributionStrategyType  | type: string | description: The distribution strategy of the benefits for this subscription, which is used to determine how the benefits are distributed in each cycle.
               enum: UNKNOWN_DISTRIBUTION_STRATEGY_TYPE, PER_BILLING_CYCLE, CUSTOM_SCHEDULE
           - ONE-OF:
               - name: customScheduleOptions  | type: CustomScheduleOptions | description: Custom schedule
                   - name: cycleDuration  | type: Duration | description: Cycle duration
       - name: startDateSettings  | type: StartDateSettings | description: Settings that control when subscriptions to this plan start. Applied during purchase to calculate the subscription start date and validate customer-selected start dates. The settings apply only to pricing variants with a compatible `billing_terms.start_type`: `FIXED_DATE` and `DAY_OF_MONTH` apply to variants with the `ON_PURCHASE` start type, while `DATE_RANGE` applies to variants with the `CUSTOM` start type.
           - name: type  | type: string | description: How the subscription start date is determined.
               enum: FIXED_DATE, DAY_OF_MONTH, DATE_RANGE
           - name: startDateUnavailableMessage  | type: string | description: Message displayed to customers when no start date is available. For example, when every fixed start date or the end of the date range has passed. Applicable only when `type` is `FIXED_DATE`, or `DATE_RANGE` with `date_range_options.end_date` set - in other configurations a start date is always available and the message is ignored.
           - ONE-OF:
               - name: fixedDateOptions  | type: FixedDateOptions | description: Subscription starts on the earliest of the configured fixed dates that hasn't passed.
                   - name: startDates  | type: Array<Timestamp> | description: Dates on which a subscription can start. A purchase starts the subscription on the earliest listed date that hasn't passed in the site's time zone. A purchase made on one of the dates starts the subscription immediately. When every date has passed the plan can't be purchased and `start_date_unavailable_message` is displayed. Only the calendar date in the site's time zone is used, the time of day is ignored. Order doesn't matter. Dates must be unique.
               - name: dayOfMonthOptions  | type: DayOfMonthOptions | description: Subscription starts on a specific day of each month.
                   - name: dayOfMonth  | type: number | description: Day of the month the subscription starts. For months with fewer days, the subscription starts on the last day of the month. If the purchase happens on the configured day, the subscription starts on that same day. Only determines the subscription start date - subsequent billing cycles follow the pricing variant's `billing_terms.billing_cycle` from that start date.
               - name: dateRangeOptions  | type: DateRangeOptions | description: Customer selects a start date within a date range.
                   - name: startDate  | type: string | description: Date and time from which the customer can select the subscription start date. The selected start date must be on or after this exact instant.
                   - name: endDate  | type: string | description: Date and time until which the customer can select the subscription start date. If not set, the range is open-ended. The selected start date must be before this exact instant. Must be later than `start_date`.
       - name: tags  | type: Tags | description: Tags that can be assigned to this plan for classification and filtering.
           - name: privateTags  | type: TagList | description: Tags that require an additional permission in order to access them, normally not given to site members or visitors.
               - name: tagIds  | type: Array<string> | description: List of tag IDs
           - name: publicTags  | type: TagList | description: Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors.
       - name: extendedFields  | type: ExtendedFields | description: Data extensions. Learn more about [extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions.md).
           - name: namespaces  | type: object | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured.  You can only access fields for which you have the appropriate permissions.  Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md).

```