getLoyaltyInfo
Is used to retrieve the user’s loyalty program status and rules. Loyalty is a reward system where users earn points from activity and can exchange them for bonuses or currency. The call returns current loyalty points, current level, level thresholds, conversion rates, exchange limits, and available level-up bonuses.
Documentation
Try it now
Request parameters:
The method works without parameters
Call example:
getLoyaltyInfo()Response example:
{
code: 0,
rid: 1753217755,
data: {
result: 0,
result_text: null,
details: {
LoyaltyEarnedPoints: 0,
LoyaltyExchangedPoints: 0,
LoyaltyLastEarnedPoints: 90.54,
LoyaltyLevelId: 3270,
LoyaltyPointUsagePeriod: 0,
LoyaltyMaxExchangePoints: 0,
LoyaltyMinExchangePoints: 0,
LoyaltyRates: [{
Id: 1419,
CurrencyId: 'BTC',
ConversionRate: 1000
}, {
Id: 1420,
CurrencyId: 'ETH',
ConversionRate: 1000
}],
LoyaltyLevels: [{
Id: 3270,
Name: '1',
MaxPoint: 400,
MinPoint: 0
}, {
Id: 3271,
Name: '2',
MaxPoint: 1500,
MinPoint: 400
}],
LevelUpBonuses: [{
LoyaltyLevelId: 3271,
CurrencyId: 'FTN',
Amount: 0.01
}, {
LoyaltyLevelId: 3271,
CurrencyId: 'TUS',
Amount: 0.03
}]
}
}
}