/
v3.0.11Get access

getLoyaltyBenefitsv2

Retrieve the list of loyalty program benefits

Request parameters:

NameDescriptionTypeValuesDefault
language
The language of datastringSupported Languages-

Call example:

getLoyaltyBenefits()

Response examples:

{
  data: [{
    id: 1781,
    lpMinId: 55057,
    lpMaxId: 55067,
    minOrder: 1,
    maxOrder: 11,
    cashBackId: null,
    applyMode: -1,
    functionalType: 0,
    description: '<p>50% up to 250 Ron</p>\n',
    title: 'Weekly Bonus - Crystal ',
    info: '<p>Crystal&nbsp;</p>\n'
  }, {
    id: 1791,
    lpMinId: 55108,
    lpMaxId: 55117,
    minOrder: 52,
    maxOrder: 61,
    cashBackId: null,
    applyMode: -1,
    functionalType: 0,
    description: '<p>Weekly 15% Cashback</p>\n',
    title: 'Weekly  Cashback - Black Diamond',
    info: '<p>Black Diamond</p>\n'
  }],
  status: 'loaded',
  message: '',
  hasError: false,
  isLoading: false
}

Response parameters:

NameDescriptionTypeValues
data
List of loyalty benefitsarray-
└─ id
Unique identifier of the loyalty benefitnumber-
└─ title
Title of the loyalty benefitstring-
└─ description
Description of the loyalty benefitstring-
└─ info
Additional information about the loyalty benefitstring-
└─ minOrder
Order of the lowest level the benefit applies tonumber-
└─ maxOrder
Order of the highest level the benefit applies tonumber-
└─ applyMode
How the benefit is applied to the clientnumber-