> 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 # GetLoyaltyProgramPremiumFeatures # Package: loyaltyProgramManagement # Namespace: LoyaltyPrograms # Method link: https://dev.wix.com/docs/api-reference/crm/loyalty-program/loyalty-program-management/program/get-loyalty-program-premium-features.md ## Permission Scopes: Read Loyalty: SCOPE.DC-LOYALTY.READ-LOYALTY ## Introduction Retrieves information about the available loyalty program premium features. --- ## REST API ### Schema ``` Method: getLoyaltyProgramPremiumFeatures Description: Retrieves information about the available loyalty program premium features. URL: https://www.wixapis.com/v1/program/premium-features Method: GET Return type: GetLoyaltyProgramPremiumFeaturesResponse - name: loyaltyProgram | type: boolean | description: Whether there are any loyalty program premium features. - name: tiers | type: boolean | description: Whether this loyalty program includes tiers. - name: pointsExpiration | type: boolean | description: Whether this loyalty program includes point expiration. ``` ### Examples ### Get loyalty program premium features ```curl curl -X GET \ 'https://www.wixapis.com/loyalty-programs/v1/program/premium-features' \ -H 'Authorization: ' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.loyaltyProgramManagement.LoyaltyPrograms.getLoyaltyProgramPremiumFeatures() Description: Retrieves information about the available loyalty program premium features. Return type: PROMISE - name: loyaltyProgram | type: boolean | description: Whether there are any loyalty program premium features. - name: tiers | type: boolean | description: Whether this loyalty program includes tiers. - name: pointsExpiration | type: boolean | description: Whether this loyalty program includes point expiration. ``` ### Examples ### getLoyaltyProgramPremiumFeatures ```javascript import { programs } from '@wix/loyalty'; async function getLoyaltyProgramPremiumFeatures() { const response = await programs.getLoyaltyProgramPremiumFeatures(); }; ``` ### getLoyaltyProgramPremiumFeatures (with elevated permissions) ```javascript import { programs } from '@wix/loyalty'; import { auth } from '@wix/essentials'; async function myGetLoyaltyProgramPremiumFeaturesMethod() { const elevatedGetLoyaltyProgramPremiumFeatures = auth.elevate(programs.getLoyaltyProgramPremiumFeatures); const response = await elevatedGetLoyaltyProgramPremiumFeatures(); } ``` ### getLoyaltyProgramPremiumFeatures (self-hosted) Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md). ```javascript import { createClient } from '@wix/sdk'; import { programs } from '@wix/loyalty'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { programs }, // Include the auth strategy and host as relevant }); async function getLoyaltyProgramPremiumFeatures() { const response = await myWixClient.programs.getLoyaltyProgramPremiumFeatures(); }; ``` ---