> 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: getPlan(id: string) # Method package: wixPricingPlansBackend # Method menu location: wixPricingPlansBackend --> getPlan # Method Link: https://dev.wix.com/docs/velo/apis/wix-pricing-plans-backend/get-plan.md # Method Description: Gets an existing pricing plan by ID. The `getPlan()` function returns a Promise that resolves to a plan whose ID matches the given ID. Only users with "Manage Pricing Plans" [permissions](https://support.wix.com/en/article/roles-permissions-accessing-roles-permissions) can get plans. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Get a plan ```javascript import { Permissions, webMethod } from 'wix-web-module'; import wixPricingPlansBackend from 'wix-pricing-plans-backend'; export const myGetPlanFunction = webMethod(Permissions.Anyone, () => { const id = '001c0674-d7c9-4c77-acb5-b492b427b201'; return wixPricingPlansBackend.getPlan(id) .then((plan) => { console.log(plan); }) .catch((error) => { console.error(error); }); }); /* Full plan object: * { * "_id": "001c0674-d7c9-4c77-acb5-b492b427b201", * "name": "Gold", * "description": "For expert gamers", * "perks": [ * "Great value for your money", * "Multi-user" * ], * "pricing": { * "subscription": { * "cycleDuration": { * "count": 1, * "unit": "MONTH" * }, * "cycleCount": 2 * }, * "price": { * "value": "100", * "currency": "USD" * }, * "freeTrialDays": 10 * }, * "public": true, * "archived": false, * "primary": false, * "hasOrders": false, * "_createdDate": "2020-12-24T11:23:48.308Z", * "_updatedDate": "2020-12-30T11:39:45.523Z", * "slug": "gold", * "maxPurchasesPerBuyer": 1, * "allowFutureStartDate": false, * "buyerCanCancel": true, * "termsAndConditions": "No sharing please." * } */ ``` ---