> ## 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 available loyalty program config

> Retrieve the available loyalty program config associated with the session



## OpenAPI

````yaml booking-engine-api/open-api/booking-engine-api.json GET /v2/{sessionId}/loyalty/config
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/config:
    get:
      tags:
        - Loyalty
      summary: >-
        Retrieve the available loyalty program config associated with the
        session.
      description: "Returns the loyalty provider URLs (login, registration, guest portal),\r\nportal connection settings, and available membership levels.\r\nReturns 404 if the hotel has no loyalty program configured."
      operationId: Loyalty_GetLoyaltyConfig
      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 config
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Loyalty.HubLoyaltyConfig'
              examples:
                response:
                  value:
                    login: >-
                      https://security.dailypoint.com/identity/connect/authorize?response_mode=form_post&client_id=DEdgeBookingEngine&response_type=id_token+token&scope=openid+email+dedge_be&state=17473880031020.967898100677647&nonce=17473880031020.967898100677647&host=d-edgeloyalty2.dailypoint.com&redirect_uri={redirect_uri}
                    registration: >-
                      https://security.dailypoint.com/identity/register?host=d-edgeloyalty2.dailypoint.com
                    loginConfig:
                      url: >-
                        https://security.dailypoint.com/identity/connect/authorize?response_mode=form_post&client_id=DEdgeBookingEngine&response_type=id_token+token&scope=openid+email+dedge_be&state=17473880031020.967898100677647&nonce=17473880031020.967898100677647&host=d-edgeloyalty2.dailypoint.com&redirect_uri={redirect_uri}
                      target: popup
                    registrationConfig:
                      url: >-
                        https://security.dailypoint.com/identity/register?host=d-edgeloyalty2.dailypoint.com
                      target: popup
                    guestPortal: https://loyalty-rewards.dailypoint.com
                    isTeaserActivated: true
                    levels:
                      - level: 1
                        code: Silver
                      - level: 2
                        code: Gold
                      - level: 3
                        code: Platinum
            text/json:
              schema:
                $ref: '#/components/schemas/Loyalty.HubLoyaltyConfig'
              examples:
                response:
                  value:
                    login: >-
                      https://security.dailypoint.com/identity/connect/authorize?response_mode=form_post&client_id=DEdgeBookingEngine&response_type=id_token+token&scope=openid+email+dedge_be&state=17473880031020.967898100677647&nonce=17473880031020.967898100677647&host=d-edgeloyalty2.dailypoint.com&redirect_uri={redirect_uri}
                    registration: >-
                      https://security.dailypoint.com/identity/register?host=d-edgeloyalty2.dailypoint.com
                    loginConfig:
                      url: >-
                        https://security.dailypoint.com/identity/connect/authorize?response_mode=form_post&client_id=DEdgeBookingEngine&response_type=id_token+token&scope=openid+email+dedge_be&state=17473880031020.967898100677647&nonce=17473880031020.967898100677647&host=d-edgeloyalty2.dailypoint.com&redirect_uri={redirect_uri}
                      target: popup
                    registrationConfig:
                      url: >-
                        https://security.dailypoint.com/identity/register?host=d-edgeloyalty2.dailypoint.com
                      target: popup
                    guestPortal: https://loyalty-rewards.dailypoint.com
                    isTeaserActivated: true
                    levels:
                      - level: 1
                        code: Silver
                      - level: 2
                        code: Gold
                      - level: 3
                        code: Platinum
        '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: >-
            Authentication header is invalid or does not give access to the
            operation
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/BookingEngine.Hub.Service.Controllers.ErrorResponse_BookingEngine.Hub.Service.Config.SecurityErrorType_
            text/json:
              schema:
                $ref: >-
                  #/components/schemas/BookingEngine.Hub.Service.Controllers.ErrorResponse_BookingEngine.Hub.Service.Config.SecurityErrorType_
        '404':
          description: Hotel is not configured for loyalty
components:
  schemas:
    Loyalty.HubLoyaltyConfig:
      required:
        - isTeaserActivated
      type: object
      properties:
        loginConfig:
          description: Define how to login to the loyalty provider
          allOf:
            - $ref: '#/components/schemas/Loyalty.PortalConnection'
        registrationConfig:
          description: Define how to register to the loyalty provider
          allOf:
            - $ref: '#/components/schemas/Loyalty.PortalConnection'
        programName:
          description: The loyalty program name, configured for each group on the Extranet
          type: string
        guestPortal:
          description: >-
            The Loyalty provider portal URL, configured for each group on the
            Extranet
          type: string
        isTeaserActivated:
          description: >-
            Enable the display of loyalty prices, even if the client is not
            logged
          type: boolean
        levels:
          type: array
          items:
            $ref: '#/components/schemas/Loyalty.HubLoyaltyLevel'
        conversionRates:
          type: array
          items:
            $ref: '#/components/schemas/Loyalty.HubLoyaltyConversionRate'
        loyaltyRates:
          type: array
          items:
            $ref: '#/components/schemas/Loyalty.HubLoyaltyRateConfiguration'
    BookingEngine.Hub.Service.Examples.Session.InvalidSessionErrorResponse:
      required:
        - code
      type: object
      properties:
        code:
          default: InvalidSessionId
          type: string
        message:
          type: string
    BookingEngine.Hub.Service.Controllers.ErrorResponse_BookingEngine.Hub.Service.Config.SecurityErrorType_:
      allOf:
        - $ref: >-
            #/components/schemas/BookingEngine.Hub.Service.Controllers.ErrorResponse
        - required:
            - code
          type: object
          properties:
            code:
              $ref: >-
                #/components/schemas/BookingEngine.Hub.Service.Config.SecurityErrorType
    Loyalty.PortalConnection:
      type: object
      properties:
        url:
          description: "The URL to the loyalty provider login/registration portal, configured for each group on the Extranet.\r\nIt contains a \"redirect_uri\" parameter, that can be replaced by your website callback URL.\r\nThis callback will be called by the provider when the login/registration is successfully completed"
          type: string
        target:
          description: "Defines how the loyalty provider login/registration portal should be displayed in your website. Configured for each provider.\r\nFor now, only two modes are supported : \"popup\" (popup display) and \"self\" (full-page display)"
          type: string
    Loyalty.HubLoyaltyLevel:
      required:
        - level
      type: object
      properties:
        level:
          format: int32
          type: integer
        code:
          type: string
    Loyalty.HubLoyaltyConversionRate:
      required:
        - rate
        - beginDate
      type: object
      properties:
        rate:
          format: int32
          type: integer
        currency:
          type: string
        beginDate:
          format: date-time
          type: string
        endDate:
          format: date-time
          type: string
    Loyalty.HubLoyaltyRateConfiguration:
      required:
        - rateId
        - canUseRedemption
      type: object
      properties:
        membershipLevels:
          type: array
          items:
            format: int32
            type: integer
        rateId:
          format: int32
          type: integer
        canUseRedemption:
          type: boolean
    BookingEngine.Hub.Service.Controllers.ErrorResponse:
      type: object
      properties:
        message:
          type: string
    BookingEngine.Hub.Service.Config.SecurityErrorType:
      description: >-
        Category of security failure returned when authentication or
        authorization is rejected.
      enum:
        - InvalidUserAuthentication
        - InvalidUserRoles
        - InvalidPermissions
      type: string

````

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