> 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`). > - 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, 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); }); }); ``` ---