@plasma-platform/tm-service-loyalty
v1.1.14
Published
Loyalty Program Service API
Downloads
10
Readme
Documentation
Table of Contents
LoyaltyProgramService
Loyalty Program Micro Service API SDK
Parameters
getLevels
Get Loyalty Levels
Examples
To use
(async () => {
const LoyaltyProgramService = new LoyaltyProgramService(url, token);
const list = await LoyaltyProgramService.getLevels();
})();
Returns Array array of loyalty levels
getLevelsById
Get Loyalty Level by id
Parameters
id
string level id
Examples
To use
(async () => {
const LoyaltyProgramService = new LoyaltyProgramService(url, token);
const list = await LoyaltyProgramService.getLevelsById(id);
})();
Returns object object of loyalty level
getUserProfile
Get Loyalty Levels
Examples
To use
(async () => {
const LoyaltyProgramService = new LoyaltyProgramService(url, token);
const list = await LoyaltyProgramService.getUserProfile();
})();
Returns Object object of user profile