> 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

# Method name: listPlans(planIds: Array<string>, options: ListPlanInfo)

# Method package: wixPricingPlansBackend

# Method menu location: wixPricingPlansBackend --> listPlans

# Method Link: https://dev.wix.com/docs/velo/apis/wix-pricing-plans-backend/list-plans.md

# Method Description:

Lists pricing plans.

The `listPlans()` function returns a Promise that resolves to a list of up to 100 pricing plans.

 Only users with "Manage Pricing Plans" [permissions](https://support.wix.com/en/article/roles-permissions-accessing-roles-permissions) can use this function to list plans.



# Method Code Examples:

*** Note: do not assume any prop names or enum values other than the ones in the example.

## List plans

```javascript
import wixPricingPlansBackend from 'wix-pricing-plans-backend';

export function listPlans() {
  const planIds = [
    "001c0674-d7c9-4c77-acb5-b492b427b201", 
    "003d0674-d7c9-4d88-acb5-b492b427b302",
    "011d0123-d7c9-5e44-acb5-d300a123b321"
  ];
  const options = {
    limit: 10,
    skip: 3,
    archived: "ARCHIVED_AND_ACTIVE",
    public: "PUBLIC_AND_HIDDEN"
  }
  return wixPricingPlansBackend.listPlans(planIds, options)
    .then((plans) => {
      // Array of all the specified pricing plan objects that match the criteria
      console.log(plans);
    })
    .catch((error) => {
      console.error(error);
    });
}
```

## List archived plans

```javascript
/****************************
 * Backend code - plans.jsw *
 ****************************/
import wixPricingPlansBackend from 'wix-pricing-plans-backend';

export function listPlans(planIds, options) {
  return wixPricingPlansBackend.listPlans(planIds, options);
}

/*************
 * Page code *
 *************/
import { listPlans } from 'backend/plans';

// ..

$w("#listPlansButton").onClick((event) => {
  const planIds = [];
  const options = {
    limit: 10,
    skip: 1,
    archived: "ARCHIVED"
  }
  listPlans(planIds, options)
    .then((plans) => {
      const firstPlanName = plans[0].name;
      console.log("First plan is: " + firstPlanName + " and the rest are: ");
      // Array of all the specified pricing plan objects that match the criteria
      console.log(plans); 
    })
    .catch((error) => {
      console.error(error);
    });
});
```

---