get https://{host}/v2/customers//loyaltyDetails
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 Code | Description | Reason |
---|---|---|
1620 | user customerid does not belong to group xxx | Invalid or unsupported fleetgroupId for the customer id passed. |
8089 | Customer not registered for the Loyalty Program | Invalid or unsupported programId passed |
8015 | Customer not found for the given identifiers | Invalid or unsupported customerid passed |