---
title: "Get Customer Loyalty Details"
method: GET
path: "/customers/lookup/loyaltyDetails"
---

# Get Customer Loyalty Details

`GET /customers/lookup/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.

## Query parameters

- `programId` integer
- `source` 'INSTORE' | 'WECHAT' | 'MARTJACK' | 'WEB_ENGAGE' | 'JD' | 'TAOBAO' | 'TMALL' | 'FACEBOOK' | 'WEBSITE' | 'OTHERS' | '', required
- `accountId` string
- `identifierName` 'mobile' | 'email' | 'externalId' | 'id' | 'wechat' | 'martjackId' | 'fbId' | 'cardnumber' | 'cardExternalId', required
- `identifierValue` string, required
- `includedAllFleetGroup` boolean
- `fleetGroupId` integer

## Response `200`

200

- object
  - `data` object[]
    - `redeemed` integer
    - `expired` integer
    - `returned` integer
    - `adjusted` integer
    - `lifetimePoints` integer
    - `loyaltyPoints` integer
    - `cumulativePurchases` integer
    - `loyaltyId` integer
    - `currentSlab` string
    - `nextSlab` string
    - `nextSlabSerialNumber` integer
    - `nextSlabDescription` string
    - `slabSNo` integer
    - `slabExpiryDate` string
    - `programId` integer
    - `delayedPoints` integer
    - `delayedReturnedPoints` integer
    - `totalAvailablePoints` integer
    - `totalReturnedPoints` integer
    - `linkedPartnerPrograms` unknown[]
      - unknown
  - `warnings` unknown[]
    - unknown
  - `errors` unknown[]
    - unknown

## Other responses

- `400` — 400

---

[API](https://skmtc.net/capillarytech/apis/sample-api.md) · [All operations](https://skmtc.net/capillarytech/apis/sample-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/capillarytech/sample-api/versions/de241f2ed9b3/schema)
