> 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: disablePointsExpiration() # Method package: wixLoyaltyV2 # Method menu location: wixLoyaltyV2 --> programs --> disablePointsExpiration # Method Link: https://dev.wix.com/docs/velo/apis/wix-loyalty-v2/programs/disable-points-expiration.md # Method Description: Updates the `pointsExpiration` status to `"DISABLED"`. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Disable points expiration (export from backend code) ```javascript import { programs } from "wix-loyalty.v2"; import { webMethod, Permissions } from "wix-web-module"; import { elevate } from "wix-auth"; const elevatedDisablePointsExpiration = elevate( programs.disablePointsExpiration, ); export const disablePointsExpiration = webMethod( Permissions.Anyone, async () => { try { const result = await elevatedDisablePointsExpiration(); return result; } catch (error) { console.error(error); // Handle the error } }, ); /* Promise resolves to: * * { * "loyaltyProgram": { * "_createdDate": "2024-06-05T20:31:49.155Z", * "_updatedDate": "2024-06-06T10:36:24.525Z", * "name": "Loyalty", * "pointDefinition": { * "icon": "shapes/8de7ee72dcd944caa60f9e226d900f1d.svg" * }, * "pointsExpiration": { * "status": "DISABLED", * "monthsOfInactivity": 3, * "expiringPointsPercentage": 100 * }, * "premiumFeatures": { * "loyaltyProgram": true, * "tiers": true, * "pointsExpiration": true * }, * "status": "ACTIVE" * } * } */ ``` ## Disable points expiration (dashboard page code) ```javascript import { programs } from "wix-loyalty.v2"; async function disablePointsExpiration() { try { const result = await programs.disablePointsExpiration(); return result; } catch (error) { console.error(error); // Handle the error } } /* Promise resolves to: * * { * "loyaltyProgram": { * "_createdDate": "2024-06-05T20:31:49.155Z", * "_updatedDate": "2024-06-06T10:36:24.525Z", * "name": "Loyalty", * "pointDefinition": { * "icon": "shapes/8de7ee72dcd944caa60f9e226d900f1d.svg" * }, * "pointsExpiration": { * "status": "DISABLED", * "monthsOfInactivity": 3, * "expiringPointsPercentage": 100 * }, * "premiumFeatures": { * "loyaltyProgram": true, * "tiers": true, * "pointsExpiration": true * }, * "status": "ACTIVE" * } * } */ ``` ---