> ## 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 Profile

> Retrieve complete profile details for a member by their RelationReference.

Returns the full profile for a member identified by their `RelationReference`. Use this to display member details, check tier status, or retrieve the internal `Id` required by [Update Profile](/api-reference/members/update-profile). If you only know the member's email or another unique attribute — not their `RelationReference` — use [Get Member by Attribute](/api-reference/members/get-member-by-attribute) instead.

<Warning>
  Query parameters must be URL-encoded before sending. For example, `jane.doe@example.com` becomes `jane.doe%40example.com`.
</Warning>

## Responses

<AccordionGroup>
  <Accordion title="200 — Success">
    | Path                                      | Type               | Description                                                   |
    | ----------------------------------------- | ------------------ | ------------------------------------------------------------- |
    | `results.IsSucessful`                     | boolean            | `true`                                                        |
    | `results.ErrorCode`                       | string             | `000`                                                         |
    | `results.ReturnObject.Id`                 | integer            | Internal member ID — required for Update Profile              |
    | `results.ReturnObject.FullName`           | string             | Member's full name                                            |
    | `results.ReturnObject.Email`              | string             | Member's email address                                        |
    | `results.ReturnObject.MobileNumber`       | string             | Member's mobile number                                        |
    | `results.ReturnObject.DOB`                | string (date-time) | Member's date of birth                                        |
    | `results.ReturnObject.Gender`             | string             | `M`, `F`, or `O`                                              |
    | `results.ReturnObject.Address`            | string             | Member's address                                              |
    | `results.ReturnObject.Status`             | integer            | Account status code — `1`=Active                              |
    | `results.ReturnObject.IsAccountActivated` | boolean            | Whether the member has completed activation                   |
    | `results.ReturnObject.TierName`           | string             | Current loyalty tier name (e.g. `Silver`, `Gold`, `Platinum`) |
    | `results.ReturnObject.TotalPoints`        | integer            | Current points balance                                        |
    | `results.ReturnObject.EnrollmentDate`     | string (date-time) | Date the member was enrolled                                  |
    | `results.ReturnObject.ActivatedDate`      | string (date-time) | Date the member activated their account                       |
    | `results.ReturnObject.LastLoggedIn`       | string (date-time) | Last login timestamp                                          |
    | `results.ReturnObject.IsAccrualAllowed`   | boolean            | Whether the member can earn points                            |
    | `results.ReturnObject.CustomerSegment`    | string             | Segment assigned to the member (e.g. `DEFAULT`)               |
    | `results.ReturnObject.PreferredLanguage`  | string             | Member's preferred language code (e.g. `EN`)                  |
    | `results.ReturnObject.RelationReference`  | string             | The member's `RelationReference` (CID)                        |
    | `results.ReturnObject.ProgramId`          | integer            | Program the member belongs to                                 |
  </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>

***

## Error Codes

| Code  | ExceptionMessage            | Cause                                               |
| ----- | --------------------------- | --------------------------------------------------- |
| `000` | Success                     | Member profile returned                             |
| `103` | Member does not exist       | `relation_reference` not found in the program       |
| `109` | Member record not available | Member exists but the record could not be retrieved |
| `999` | Bad request                 | Missing or malformed query parameters               |


## OpenAPI

````yaml GET /lbms-ingress/member/api/Member/GetMemberProfile
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/GetMemberProfile:
    get:
      tags:
        - Member Management
      summary: Get Member Profile
      description: >-
        Retrieve complete profile details for a member by their
        RelationReference.
      operationId: getMemberProfile
      parameters:
        - $ref: '#/components/parameters/pintProgramId'
        - name: pintRelationType
          in: query
          required: true
          description: Relation type. Use `4` for customers.
          schema:
            type: integer
            example: 4
        - name: pstrRelationReference
          in: query
          required: true
          description: >-
            The member's unique reference. URL-encode before passing (e.g.
            `jane.doe%40example.com`).
          schema:
            type: string
            example: jane.doe@example.com
      responses:
        '200':
          description: Member profile
          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
                    MobileNumber: '+919876543210'
                    Status: Active
                    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}`.

````