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

> ## Agent Instructions
> This site documents the D-EDGE APIs for technology partners (web agencies, OTAs, PMS and RMS vendors, booking and CRM tools). It is written for developers integrating with hotels that use the D-EDGE platform.
> Seven APIs, grouped by domain. Connectivity: Channel Manager API (distribute a hotel's inventory to your channel and send bookings back). Pricing & Availability: Best Price API (best offers to highlight), Quotation API (all bookable offers for a stay), Daily Rates API (daily availability between two dates). Booking: Booking Engine API (a hotel's full direct booking funnel), Gift Shop API (gift vouchers from catalogue to payment). Guest Management: CRM API (guest profiles).
> Pick the API by the need: to display prices, use the Best Price API or the Daily Rates API; to quote a specific stay, use the Quotation API; to book, use the Booking Engine API; to sell gift vouchers, use the Gift Shop API; to manage guest profiles, use the CRM API; to receive hotel inventory and send bookings back as a distribution channel, use the Channel Manager API.
> Base URLs, hotel identifiers, and credentials are delivered by the D-EDGE partnership team during onboarding. Do not invent base URLs, endpoints, parameters, or example credentials that do not appear on these pages.
> Authentication differs per API: OAuth 1.0 for Best Price, Quotation, Daily Rates, and Booking Engine; an X-API-KEY header for Gift Shop; OAuth 2.0 client credentials for CRM; partner-defined credentials carried in the XML message for the Channel Manager API. Read each API's Authentication page before writing code.
> A mock environment returns realistic but fictitious data without credentials. The Postman and Insomnia collections on the API collections page target it by default. Use it for exploration and tests, never for production traffic.
> Use the official names exactly: D-EDGE, D-EDGE platform, Channel Manager API, partnership team. Do not use Back Office or Extranet.
> Each API has a Changelog page. Check it for the current behaviour before relying on an older answer. For questions these pages do not answer, direct the reader to the Contact us page.

# Retrieve the loyalty member information

> Retrieve the loyalty member information associated with the session



## OpenAPI

````yaml booking-engine-api/open-api/booking-engine-api.json GET /v2/{sessionId}/loyalty/member
openapi: 3.0.1
info:
  title: Booking Engine API
  version: v2
servers:
  - url: https://{apiBaseUrl}
    variables:
      apiBaseUrl:
        default: api.example.com
        description: Base URL delivered by D-EDGE during partnership setup
security: []
tags:
  - name: Basket
  - name: Booking
  - name: Configuration
  - name: Description
  - name: Loyalty
  - name: Promotion
  - name: Resources
  - name: Search
  - name: Session
paths:
  /v2/{sessionId}/loyalty/member:
    get:
      tags:
        - Loyalty
      summary: Retrieve the loyalty member information associated with the session.
      description: "Returns the authenticated member's profile including name, contact details,\r\naddress, membership level, and loyalty points balance."
      operationId: Loyalty_GetLoyaltyMember
      parameters:
        - name: X-AVP-Impersonation
          in: header
          description: ''
          required: false
          schema:
            type: string
        - name: sessionId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Returns the loyalty member profile
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Loyalty.HubLoyaltyMember'
              examples:
                response:
                  value:
                    memberId: '123'
                    title: Mr.
                    firstName: John
                    lastName: Doe
                    address:
                      addressLines:
                        - 66 rue des Archives
                      postalCode: '75001'
                      cityName: Paris
                      countryCode: FR
                    emailAddress: j.doe@loyalty.com
                    phone:
                      number: '060606060606'
                      phoneCode: 33
                      countryCode: FR
                      internationalNumber: '003360606060606'
                    level: Platinum
                    levelNumber: 3
                    points: 1500
            text/json:
              schema:
                $ref: '#/components/schemas/Loyalty.HubLoyaltyMember'
              examples:
                response:
                  value:
                    memberId: '123'
                    title: Mr.
                    firstName: John
                    lastName: Doe
                    address:
                      addressLines:
                        - 66 rue des Archives
                      postalCode: '75001'
                      cityName: Paris
                      countryCode: FR
                    emailAddress: j.doe@loyalty.com
                    phone:
                      number: '060606060606'
                      phoneCode: 33
                      countryCode: FR
                      internationalNumber: '003360606060606'
                    level: Platinum
                    levelNumber: 3
                    points: 1500
        '400':
          description: The session code is invalid
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/BookingEngine.Hub.Service.Examples.Session.InvalidSessionErrorResponse
              examples:
                response:
                  value:
                    code: InvalidSessionId
            text/json:
              schema:
                $ref: >-
                  #/components/schemas/BookingEngine.Hub.Service.Examples.Session.InvalidSessionErrorResponse
              examples:
                response:
                  value:
                    code: InvalidSessionId
        '401':
          description: The loyalty provider token has expired
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/WebApi.Exceptions.Model.ServiceErrorResponse
              examples:
                response:
                  value:
                    code: LoyaltyProviderTokenExpired
                    message: The loyalty provider token has expired
            text/json:
              schema:
                $ref: >-
                  #/components/schemas/WebApi.Exceptions.Model.ServiceErrorResponse
              examples:
                response:
                  value:
                    code: LoyaltyProviderTokenExpired
                    message: The loyalty provider token has expired
        '404':
          description: The member has not been found
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/WebApi.Exceptions.Model.ServiceErrorResponse
              examples:
                response:
                  value:
                    code: LoyaltyProviderGenericError
                    message: An error occured while calling the loyalty provider
            text/json:
              schema:
                $ref: >-
                  #/components/schemas/WebApi.Exceptions.Model.ServiceErrorResponse
              examples:
                response:
                  value:
                    code: LoyaltyProviderGenericError
                    message: An error occured while calling the loyalty provider
        '500':
          description: One of the Hub dependency service returns a 400 validation error
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/WebApi.Exceptions.Model.ServiceErrorResponse
              examples:
                response:
                  value:
                    code: LoyaltyProviderGenericError
                    message: An error occured while calling the loyalty provider
            text/json:
              schema:
                $ref: >-
                  #/components/schemas/WebApi.Exceptions.Model.ServiceErrorResponse
              examples:
                response:
                  value:
                    code: LoyaltyProviderGenericError
                    message: An error occured while calling the loyalty provider
        '502':
          description: Something went wrong on a Hub dependency service
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/WebApi.Exceptions.Model.ServiceErrorResponse
              examples:
                response:
                  value:
                    code: LoyaltyProviderGenericError
                    message: An error occured while calling the loyalty provider
            text/json:
              schema:
                $ref: >-
                  #/components/schemas/WebApi.Exceptions.Model.ServiceErrorResponse
              examples:
                response:
                  value:
                    code: LoyaltyProviderGenericError
                    message: An error occured while calling the loyalty provider
components:
  schemas:
    Loyalty.HubLoyaltyMember:
      required:
        - levelNumber
        - points
      type: object
      properties:
        memberId:
          type: string
        title:
          type: string
        firstName:
          type: string
        lastName:
          type: string
        address:
          $ref: '#/components/schemas/Loyalty.Address'
        emailAddress:
          type: string
        phone:
          $ref: '#/components/schemas/Loyalty.Phone'
        level:
          type: string
        levelNumber:
          format: int32
          type: integer
        points:
          format: int32
          type: integer
        guestPortalUrl:
          type: string
        discount:
          $ref: '#/components/schemas/Loyalty.Discount'
    BookingEngine.Hub.Service.Examples.Session.InvalidSessionErrorResponse:
      required:
        - code
      type: object
      properties:
        code:
          default: InvalidSessionId
          type: string
        message:
          type: string
    WebApi.Exceptions.Model.ServiceErrorResponse:
      type: object
      properties:
        message:
          type: string
        code:
          type: string
    Loyalty.Address:
      type: object
      properties:
        addressLines:
          type: array
          items:
            type: string
        postalCode:
          type: string
        cityName:
          type: string
        countryCode:
          type: string
    Loyalty.Phone:
      required:
        - phoneCode
      type: object
      properties:
        number:
          type: string
        phoneCode:
          format: int32
          type: integer
        countryCode:
          type: string
        internationalNumber:
          type: string
    Loyalty.Discount:
      required:
        - percent
      type: object
      properties:
        percent:
          format: int32
          type: integer
        value:
          type: array
          items:
            $ref: '#/components/schemas/Loyalty.DiscountValue'
    Loyalty.DiscountValue:
      required:
        - amount
      type: object
      properties:
        amount:
          format: int32
          type: integer
        currency:
          type: string

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.