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.

{
    "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!