> 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: pauseLoyaltyProgram() # Method package: wixLoyaltyV2 # Method menu location: wixLoyaltyV2 --> programs --> pauseLoyaltyProgram # Method Link: https://dev.wix.com/docs/velo/apis/wix-loyalty-v2/programs/pause-loyalty-program.md # Method Description: Changes the program status to `"PAUSED"`. See [Pausing Your Loyalty Program](https://support.wix.com/en/article/wix-loyalty-program-pausing-your-loyalty-program) for more information. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Pause loyalty program (export from backend code) ```javascript import { programs } from "wix-loyalty.v2"; import { webMethod, Permissions } from "wix-web-module"; import { elevate } from "wix-auth"; const elevatedPauseLoyaltyProgram = elevate(programs.pauseLoyaltyProgram); export const pauseLoyaltyProgram = webMethod( Permissions.Anyone, async () => { try { const result = await elevatedPauseLoyaltyProgram(); return result; } catch (error) { console.error(error); // Handle the error } }); /* Promise resolves to: * * { * "loyaltyProgram": { * "_createdDate": "2024-06-05T20:31:49.155Z", * "_updatedDate": "2024-06-10T07:04:27.130Z", * "name": "Loyalty", * "pointDefinition": { * "icon": "shapes/8de7ee72dcd944caa60f9e226d900f1d.svg" * }, * "premiumFeatures": { * "loyaltyProgram": true, * "tiers": true, * "pointsExpiration": true * }, * "pointsExpiration": { * "status": "ENABLED", * "monthsOfInactivity": 3, * "expiringPointsPercentage": 100 * }, * "status": "PAUSED" * } * } */ ``` ## Pause loyalty program (dashboard page code) @description: ```javascript import { programs } from "wix-loyalty.v2"; async function pauseLoyaltyProgram() { try { const result = await programs.pauseLoyaltyProgram(); return result; } catch (error) { console.error(error); // Handle the error } } /* Promise resolves to: * * { * "loyaltyProgram": { * "_createdDate": "2024-06-05T20:31:49.155Z", * "_updatedDate": "2024-06-10T07:04:27.130Z", * "name": "Loyalty", * "pointDefinition": { * "icon": "shapes/8de7ee72dcd944caa60f9e226d900f1d.svg" * }, * "premiumFeatures": { * "loyaltyProgram": true, * "tiers": true, * "pointsExpiration": true * }, * "pointsExpiration": { * "status": "ENABLED", * "monthsOfInactivity": 3, * "expiringPointsPercentage": 100 * }, * "status": "PAUSED" * } * } */ ``` ---