> 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: Introduction

## Article: Introduction

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

## Article Content:

# About the Plans V3 API

The Plans V3 API allows you to create and manage pricing plans that determine charges for site content and services. You can decide how long a plan lasts, how much it costs, whether the buyer pays once upfront or makes recurring payments, and what perks the plan offers.

With the Plans V3 API, you can:

- Create and manage pricing plans.
- Set the pricing and billing terms of plans.
- Set a plan's duration.
- Set free trial periods for plans.
- Manage customers' ability to view, subscribe to, or cancel their subscription to a plan.

## Types of plans

The most common types of plans are:
- **One-time**: A plan that charges a single upfront payment and lasts for the time period you choose.
- **Recurring**: A plan with recurring payment. You can set the plan to recur daily, weekly, monthly, or yearly. Recurring payments offer more flexible terms, without a large up-front commitment.
- **Free plan**: A plan that requires no payment. Typically available only once and used for promotions or as free trials for one-time plans. For recurring plans, you can set built in [free trial](#free-trials) periods after which the plan starts billing the buyer automatically.

>**Note:** To accept recurring payments, a Wix user needs to [set up a payment provider that supports recurring payments](https://support.wix.com/en/article/accepting-recurring-payments). 

## Free trials

You can set up a free trial period for recurring plans. When the buyer subscribes to the plan for the first time, they gain access to the plan's benefits until the end of the free trial period. The buyer keeps their access to those benefits even if they cancel their subscription during that time. At the end of the trial period, the first billing cycle begins. A buyer can only benefit from the trial period of a specific plan once.

To add a free trial to a plan you create, specify a number of days in `freeTrialDays`.

## Plan duration

You can determine how long plans remain active after the buyer subscribes to them. You set a plan's duration using the same time units as billing cycles: days, weeks, months, or years. You can also create plans that never expire, continuing indefinitely until the buyer cancels.

- To limit the duration of a plan, set its `endType` to `CYCLES_COMPLETED` and specify a number of cycles in `cyclesCompletedDetails.billingCycleCount`.
- To create a plan that never expires, set its `endType` to `UNTIL_CANCELLED`.

## Customer permissions

You can control which actions customers can perform themselves for a specific plan. Wix users can still perform these actions on a customer's behalf regardless of these settings.
- View the plan in the **Plans & Pricing** page. Determined by the plan's `visibility`.
- Subscribe to the plan. Determined by the plan's `buyable`.
- Cancel their subscription to the plan. Determined by the plan's `buyerCanCancel`.

## Tags

You can assign tags to plans to classify them and filter by them later. Tags are managed by the [Tags API](https://dev.wix.com/docs/api-reference/business-management/tags.md), and a plan stores only tag IDs, not tag names. Assign a tag to a plan only after the tag exists. When you create or list tags for plans, pass `wix.pricing_plans.v3.plan` as the `fqdn`.

A plan has two separate tag lists:

- **Public tags**: Visible to anyone who can read the plan, including site members and visitors.
- **Private tags**: Visible only to callers with the `PRICING_PLANS.PLAN_READ` permission. Use these for internal classification you don't want to expose on the live site.

A plan can hold up to 100 tags in each list.

To update tags:

- [Bulk Update Plan Tags](https://dev.wix.com/docs/rest/business-solutions/pricing-plans/plans-v3/bulk-update-plan-tags.md) assigns and unassigns tags on up to 100 plans by ID, and returns the result for each plan.
- [Bulk Update Plan Tags By Filter](https://dev.wix.com/docs/rest/business-solutions/pricing-plans/plans-v3/bulk-update-plan-tags-by-filter.md) assigns and unassigns tags on every plan matching a filter. An empty filter matches all plans. The update runs asynchronously, so the response returns a `jobId` instead of per-plan results.
- [Update Plan](https://dev.wix.com/docs/rest/business-solutions/pricing-plans/plans-v3/update-plan.md) replaces the plan's entire tag list. Use the bulk methods to add or remove individual tags without overwriting the rest.

Both bulk methods accept `assignTags` and `unassignTags`. At least one of them must be non-empty, otherwise the call fails with `EMPTY_ASSIGN_AND_UNASSIGN_LISTS`. A tag listed in both is assigned.

To find plans by tag, filter on `tags.publicTags.tagIds` or `tags.privateTags.tagIds` with `$hasSome` or `$hasAll`. See [Supported Filters and Sorting](https://dev.wix.com/docs/rest/business-solutions/pricing-plans/plans-v3/filter-and-sort.md).

Every tag change emits two events. [Plan Updated](https://dev.wix.com/docs/rest/business-solutions/pricing-plans/plans-v3/plan-updated.md) fires with the plan's new state, and [Plan Tags Modified](https://dev.wix.com/docs/rest/business-solutions/pricing-plans/plans-v3/plan-tags-modified.md) fires with the tags that were assigned and unassigned. Subscribe to Plan Tags Modified when you only care about tag changes and want the delta rather than the full plan.

## Before you begin

It's important to note the following points before starting to code:

- The Wix user must install the [Wix Pricing Plans](https://www.wix.com/app-market/web-solution/pricing-plans) app on their site.
- Currently, a plan can have only have 1 `pricingVariant` and 1 `pricingStrategy`.
- The Wix user must [set the site's currency](https://support.wix.com/en/article/setting-your-currency-for-accepting-payments).
- To sell plans, a Wix user must [connect a payment provider](https://support.wix.com/en/article/pricing-plans-setting-up-payments) on the site.
- In this API, perks act as a list for marketing purposes. To create actual benefits, see [Benefit Programs](https://dev.wix.com/docs/rest/business-solutions/benefit-programs/introduction.md).

## Use cases

- [Import plans from external systems](https://dev.wix.com/docs/api-reference/business-solutions/pricing-plans/plans-v3/sample-flows.md)
- [Sync pricing plans across multiple systems](https://dev.wix.com/docs/api-reference/business-solutions/pricing-plans/plans-v3/sample-flows.md)
- [Organize plans with tags](https://dev.wix.com/docs/api-reference/business-solutions/pricing-plans/plans-v3/sample-flows.md)


## Terminology

- **Plan**: A pricing plan that members can subscribe to. Includes promotional data, pricing configurations, and other settings. Wix users can track and manage plans in the dashboard under **Catalog > Pricing Plans**.
- **Customer**: A member who can view and subscribe to plans.
- **Buyer**: A customer who subscribes to a plan.
- **Subscription**: The act of purchasing a plan. Wix users can track and manage subscriptions in the dashboard under **Sales > Subscriptions**.
- **Pricing variant**: Combines billing terms with pricing strategies to offer different billing options for a benefits. For example, a plan might offer monthly billing at $50 or yearly billing at $500. A plan can only have 1 variant.
- **Pricing strategy**: Determines how much customers pay. Supports flat rate pricing only, where customers pay a fixed amount per billing cycle.
- **Billing terms**: Configuration that defines when billing starts, how often customers are charged (billing cycle), and when the plan ends.
- **Perks**: Names of benefits included with the plan. For display only. To configure benefits, see [Benefit Programs](https://dev.wix.com/docs/rest/business-solutions/benefit-programs/introduction.md).
- **Tag**: A label you can assign to a plan to classify it and filter by it. Tags are either public, readable by anyone who can read the plan, or private, readable only with the `PRICING_PLANS.PLAN_READ` permission.

