Get Loyalty Details

Retrieves the loyalty information of a customer across all loyalty programs of the org . You can also fetch details of a specific loyalty program.

Response Parameters

ParameterTypeDescription
dataArrayContains loyalty program information for each program the user is enrolled in.
redeemedFloatPoints redeemed by the user in the program.
expiredFloatPoints expired in the program.
returnedFloatPoints returned (e.g., due to refunds) in the program.
adjustedFloatPoints adjusted (manually or system-corrected) in the program.
lifetimePointsFloatTotal points earned by the user in the program over their lifetime.
loyaltyPointsFloatCurrent available points in the program.
cumulativePurchasesFloatTotal cumulative purchases made by the user in the program.
loyaltyIdIntegerUnique identifier for the user in the loyalty program. (-1 if not enrolled)
currentSlabStringCurrent tier/slab of the user in the program (e.g., "Bronze", "Topaz").
nextSlabStringNext achievable tier/slab in the program.
nextSlabSerialNumberIntegerSerial number of the next tier/slab.
nextSlabDescriptionStringDescription of the next tier/slab (e.g., "Tier 2").
slabSNoIntegerSerial number of the current tier/slab.
slabExpiryDateStringExpiry date of the current tier/slab (ISO 8601 format).
programIdIntegerUnique identifier for the loyalty program.
delayedPointsFloatPoints pending to be credited (delayed points).
delayedReturnedPointsFloatPoints pending to be debited (delayed returns).
totalAvailablePointsFloatSum of available points (loyaltyPoints + delayedPoints).
totalReturnedPointsFloatSum of returned points (returned + delayedReturnedPoints).
{
    "data": [
        {
            "redeemed": 0.0,
            "expired": 0.0,
            "returned": 0.0,
            "adjusted": 0.0,
            "lifetimePoints": 8500.0,
            "loyaltyPoints": 8500.0,
            "cumulativePurchases": 0.0,
            "loyaltyId": 649583788,
            "currentSlab": "Bronze",
            "nextSlab": "Silver",
            "nextSlabSerialNumber": 2,
            "nextSlabDescription": "Tier 2",
            "slabSNo": 1,
            "slabExpiryDate": "2125-02-28T23:59:59Z",
            "programId": 973,
            "delayedPoints": 0.0,
            "delayedReturnedPoints": 0.0,
            "totalAvailablePoints": 8500.0,
            "totalReturnedPoints": 0.0
        },
        {
            "redeemed": 0.0,
            "expired": 0.0,
            "returned": 0.0,
            "adjusted": 0.0,
            "lifetimePoints": 0.0,
            "loyaltyPoints": 0.0,
            "cumulativePurchases": 0.0,
            "loyaltyId": -1,
            "currentSlab": "Topaz",
            "nextSlab": "Coral",
            "nextSlabSerialNumber": 2,
            "nextSlabDescription": "Tier 2",
            "slabSNo": 1,
            "slabExpiryDate": "2125-02-28T23:59:59Z",
            "programId": 983,
            "delayedPoints": 0.0,
            "delayedReturnedPoints": 0.0,
            "totalAvailablePoints": 0.0,
            "totalReturnedPoints": 0.0
        }
    ],
    "warnings": [],
    "errors": []
}

API specific Error codes

Error CodeDescriptionReason
1620user customeriddoes not belong to group xxxInvalid or unsupported fleetgroupIdfor the customer id passed.
8089Customer not registered for the Loyalty ProgramInvalid or unsupported programIdpassed
8015Customer not found for the given identifiersInvalid or unsupported customerid passed
Language
Credentials
Basic
base64
:
URL
Click Try It! to start a request and see the response here!