> ## Documentation Index
> Fetch the complete documentation index at: https://help-loyalife.xoxoday.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Member by Attribute

> Look up a member using a unique attribute such as email when RelationReference is unknown.

Looks up a member using any unique profile attribute — such as `email_id` or `mobile_number` — when their `RelationReference` is not available. This is useful during customer support workflows or third-party integrations where only a known identifier like email is on hand. The attribute you search by must be defined in your Loyalife User schema and marked as unique; searching by non-unique fields is not supported.

## Responses

<AccordionGroup>
  <Accordion title="200 — Success">
    | Path                                     | Type    | Description                      |
    | ---------------------------------------- | ------- | -------------------------------- |
    | `results.IsSucessful`                    | boolean | `true`                           |
    | `results.ErrorCode`                      | string  | `000`                            |
    | `results.ReturnObject.Id`                | integer | Internal member ID               |
    | `results.ReturnObject.FullName`          | string  | Member's full name               |
    | `results.ReturnObject.Email`             | string  | Member's email                   |
    | `results.ReturnObject.RelationReference` | string  | Member's RelationReference (CID) |
    | `results.ReturnObject.TierName`          | string  | Current loyalty tier             |
    | `results.ReturnObject.TotalPoints`       | integer | Total points balance             |
  </Accordion>

  <Accordion title="404 — Not Found">
    | Path                       | Type    | Description       |
    | -------------------------- | ------- | ----------------- |
    | `results.IsSucessful`      | boolean | `false`           |
    | `results.ErrorCode`        | string  | Error code        |
    | `results.ExceptionMessage` | string  | Error description |
  </Accordion>
</AccordionGroup>


## OpenAPI

````yaml GET /lbms-ingress/member/api/Member/GetMemberDetailsByUniqueAttribute
openapi: 3.1.0
info:
  title: Loyalife LBMS API
  description: >-
    REST API for Loyalife's Loyalty Management System. Covers member management,
    OTP authentication, loyalty transactions, and points redemption.
  version: 1.0.0
  contact:
    name: Xoxoday Support
    email: support@xoxoday.com
servers:
  - url: https://loyalife-api.xoxoday.in
    description: Production
security:
  - bearerAuth: []
paths:
  /lbms-ingress/member/api/Member/GetMemberDetailsByUniqueAttribute:
    get:
      tags:
        - Member Management
      summary: Get Member by Attribute
      description: >-
        Look up a member using a unique attribute such as email when
        RelationReference is unknown.
      operationId: getMemberByAttribute
      parameters:
        - $ref: '#/components/parameters/pintProgramId'
        - name: pstrUniqueAttributeKey
          in: query
          required: true
          description: >-
            Attribute name to search by (e.g. `email_id`, `mobile_number`).
            URL-encode before passing.
          schema:
            type: string
            example: email_id
        - name: pstrUniqueAttributeValue
          in: query
          required: true
          description: Value to search for. URL-encode before passing.
          schema:
            type: string
            example: jane.doe@example.com
      responses:
        '200':
          description: Member found
          content:
            application/json:
              schema:
                type: object
                properties:
                  results:
                    type: object
                    properties:
                      IsSucessful:
                        type: boolean
                      ErrorCode:
                        type: string
                      ExceptionMessage:
                        type: string
                      ReturnObject:
                        $ref: '#/components/schemas/MemberProfile'
              example:
                results:
                  IsSucessful: true
                  ErrorCode: '000'
                  ExceptionMessage: Success
                  ReturnObject:
                    Id: 12345
                    FullName: Jane Doe
                    Email: jane.doe@example.com
                    RelationReference: jane.doe@example.com
                    TierName: Silver
                    TotalPoints: 1500
        '404':
          description: Member not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardError'
components:
  parameters:
    pintProgramId:
      name: pintProgramId
      in: query
      required: true
      description: Your loyalty program ID
      schema:
        type: integer
        example: 19
  schemas:
    MemberProfile:
      type: object
      properties:
        Id:
          type: integer
          description: Internal member ID — required for UpdateProfileWithAttributes
          example: 12345
        FullName:
          type: string
          example: Jane Doe
        Email:
          type: string
          format: email
          example: jane.doe@example.com
        MobileNumber:
          type: string
          example: '+919876543210'
        Status:
          type: string
          example: Active
        TierName:
          type: string
          description: Current loyalty tier (e.g. Silver, Gold, Platinum)
          example: Silver
        TotalPoints:
          type: integer
          example: 1500
        RelationReference:
          type: string
          example: jane.doe@example.com
    StandardError:
      type: object
      properties:
        results:
          type: object
          properties:
            IsSucessful:
              type: boolean
              example: false
            ErrorCode:
              type: string
              example: E400
            ExceptionMessage:
              type: string
              example: Error description
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT obtained from Generate Auth Token. Pass as `Authorization: bearer
        {token}`.

````