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

# Get visit types

> Returns visit types matching the supplied filters.

`reservation_time_span` can be `DAYS` or `WEEKS`. `procedure_frequency` can be `DAY`, `WEEK`, or `VISIT`.

Each visit type can include applicable loyalty programs and hotel-level lowest prices. The visit-type `lowest_price` and each per-hotel `lowest_price` include any active discount promotions; `original_amount_per_night` is the price before any discount.

A `promotions` array is returned at the visit-type level and per nested hotel: the active promotions running now OR starting in the future (expired ones omitted), scoped to the caller's channel, each with its localized `name`, `percentage` and validity (`valid_from`/`valid_to`). The promotion `name` is not needed to render the strike-through price (use `lowest_price`), but lets you label a badge (e.g. "-15% Eröffnungsrabatt").




## OpenAPI

````yaml /api/v1/openapi.yaml get /visit-types
openapi: 3.0.3
info:
  title: SpaPortal API v1
  version: '1.0'
  description: Public API for booking clients that integrate with SpaPortal.
servers:
  - url: https://spaportal.cz/api/v1
    description: Production
security:
  - bearerAuth: []
  - accessTokenQuery: []
tags:
  - name: System
  - name: Catalog
  - name: Availability
  - name: Pricing
  - name: Booking
paths:
  /visit-types:
    get:
      tags:
        - Catalog
      summary: Get visit types
      description: >
        Returns visit types matching the supplied filters.


        `reservation_time_span` can be `DAYS` or `WEEKS`. `procedure_frequency`
        can be `DAY`, `WEEK`, or `VISIT`.


        Each visit type can include applicable loyalty programs and hotel-level
        lowest prices. The visit-type `lowest_price` and each per-hotel
        `lowest_price` include any active discount promotions;
        `original_amount_per_night` is the price before any discount.


        A `promotions` array is returned at the visit-type level and per nested
        hotel: the active promotions running now OR starting in the future
        (expired ones omitted), scoped to the caller's channel, each with its
        localized `name`, `percentage` and validity (`valid_from`/`valid_to`).
        The promotion `name` is not needed to render the strike-through price
        (use `lowest_price`), but lets you label a badge (e.g. "-15%
        Eröffnungsrabatt").
      operationId: getVisitTypes
      parameters:
        - $ref: '#/components/parameters/AcceptLanguage'
        - $ref: '#/components/parameters/Max'
        - $ref: '#/components/parameters/Offset'
        - name: hotel_id
          in: query
          schema:
            type: integer
          description: Filter by hotel ID.
        - name: destination_id
          in: query
          schema:
            type: integer
          description: Filter by destination ID.
        - name: hotel_stars_min
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 5
          description: Minimum hotel star rating.
        - name: hotel_stars_max
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 5
          description: Maximum hotel star rating.
        - name: number_of_beds
          in: query
          schema:
            type: integer
            minimum: 1
          description: Filter by room occupancy.
        - $ref: '#/components/parameters/DateFrom'
        - $ref: '#/components/parameters/DateTo'
        - name: nights_min
          in: query
          schema:
            type: integer
          description: Minimum number of nights.
        - name: nights_max
          in: query
          schema:
            type: integer
          description: Maximum number of nights.
      responses:
        '200':
          description: Visit types matching the filters.
          headers:
            X-Total-Count:
              $ref: '#/components/headers/XTotalCount'
            Content-Language:
              $ref: '#/components/headers/ContentLanguage'
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/VisitType'
              examples:
                default:
                  $ref: '#/components/examples/VisitTypesResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
components:
  parameters:
    AcceptLanguage:
      name: Accept-Language
      in: header
      schema:
        type: string
        example: cs_CZ,de
      description: >-
        Comma-separated list of languages to include. See
        [Localization](/api/v1/localization) for details.
    Max:
      name: max
      in: query
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 10
      description: Number of records to return.
    Offset:
      name: offset
      in: query
      schema:
        type: integer
        minimum: 0
        default: 0
      description: Number of records to skip.
    DateFrom:
      name: date_from
      in: query
      schema:
        type: string
        format: date
      description: Start date in `YYYY-MM-DD` format.
    DateTo:
      name: date_to
      in: query
      schema:
        type: string
        format: date
      description: End date in `YYYY-MM-DD` format.
  headers:
    XTotalCount:
      description: Total number of matching records.
      schema:
        type: integer
    ContentLanguage:
      description: Languages included in the response.
      schema:
        type: string
        example: cs_CZ,de
  schemas:
    VisitType:
      type: object
      properties:
        _id:
          $ref: '#/components/schemas/ObjectId'
        id:
          oneOf:
            - type: integer
            - type: string
        priority_position:
          type: integer
        on_demand:
          type: boolean
        name:
          $ref: '#/components/schemas/LocalizedString'
        visit_type_categories:
          type: array
          items:
            $ref: '#/components/schemas/VisitTypeCategory'
        booking_url:
          $ref: '#/components/schemas/LocalizedString'
        description:
          $ref: '#/components/schemas/LocalizedString'
        nights_min:
          type: integer
        nights_max:
          type: integer
        reservation_time_span:
          type: string
          enum:
            - DAYS
            - WEEKS
        time_constraints:
          type: array
          items:
            $ref: '#/components/schemas/TimeConstraint'
        procedures:
          type: integer
        procedure_frequency:
          type: string
          enum:
            - DAY
            - WEEK
            - VISIT
        procedures_per_day:
          type: integer
        boarding:
          type: string
        available_boardings:
          type: array
          items:
            type: string
        tags:
          type: array
          items:
            $ref: '#/components/schemas/Tag'
        lowest_price:
          $ref: '#/components/schemas/LowestPriceByLanguage'
        promotions:
          type: array
          description: >-
            Active current-or-future promotions for this visit type's price
            list, scoped to the caller's channel (empty when none apply).
          items:
            $ref: '#/components/schemas/Promotion'
        commercial_slogan:
          $ref: '#/components/schemas/LocalizedString'
        notice:
          $ref: '#/components/schemas/LocalizedString'
        services:
          $ref: '#/components/schemas/LocalizedString'
        hotels:
          type: array
          items:
            type: object
            properties:
              _id:
                $ref: '#/components/schemas/ObjectId'
              id:
                type: integer
              name:
                type: string
              lowest_price:
                $ref: '#/components/schemas/LowestPriceByLanguage'
              promotions:
                type: array
                description: Promotions from the visit-type set that apply to this hotel.
                items:
                  $ref: '#/components/schemas/Promotion'
        loyalty_programs:
          type: array
          items:
            $ref: '#/components/schemas/LoyaltyProgram'
    ObjectId:
      type: string
      pattern: ^[0-9a-fA-F]{24}$
      description: Object id (24-character hex string) for the same entity.
      example: 66f16191f739705faa020001
    LocalizedString:
      type: object
      additionalProperties:
        type: string
        nullable: true
      example:
        cs_CZ: Frantiskovy Lazne
        de: Franzensbad
    VisitTypeCategory:
      type: object
      properties:
        _id:
          $ref: '#/components/schemas/ObjectId'
        id:
          oneOf:
            - type: integer
            - type: string
        name:
          $ref: '#/components/schemas/LocalizedString'
        visitTypes:
          type: array
          items:
            $ref: '#/components/schemas/VisitTypeSummary'
    TimeConstraint:
      type: object
      properties:
        date_from:
          type: string
          format: date
        date_to:
          type: string
          format: date
    Tag:
      type: object
      properties:
        _id:
          $ref: '#/components/schemas/ObjectId'
        id:
          oneOf:
            - type: integer
            - type: string
        name:
          $ref: '#/components/schemas/LocalizedString'
        color:
          type: string
          description: Hex color without the `#` prefix.
    LowestPriceByLanguage:
      type: object
      additionalProperties:
        $ref: '#/components/schemas/LowestPriceAmount'
    Promotion:
      type: object
      description: >-
        A discount promotion advertised for a visit type's price list (and per
        hotel), listed by GET /visit-types. Includes promotions running now OR
        starting in the future (expired ones are omitted), scoped to the
        caller's channel. The discounted "from" price is already reflected in
        `lowest_price` (`amount_per_night` vs `original_amount_per_night`); this
        object adds the promotion's name, percentage and validity for a
        label/badge. Itemized per-stay discounts (with amount/nights) remain in
        `price_breakdown.promotions` on GET /price.
      properties:
        name:
          $ref: '#/components/schemas/LocalizedString'
        percentage:
          type: number
          description: Discount percentage (0-100).
        valid_from:
          type: string
          format: date
          description: First day of the promotion's stay-date validity (UTC `YYYY-MM-DD`).
        valid_to:
          type: string
          format: date
          nullable: true
          description: >-
            Exclusive end of the validity window (UTC `YYYY-MM-DD`); null for
            unlimited.
    LoyaltyProgram:
      type: object
      additionalProperties: true
      properties:
        _id:
          $ref: '#/components/schemas/ObjectId'
        id:
          oneOf:
            - type: integer
            - type: string
        name:
          $ref: '#/components/schemas/LocalizedString'
    ErrorResponse:
      type: object
      required:
        - success
        - message
      properties:
        success:
          type: boolean
          example: false
        message:
          type: string
    ValidationErrorResponse:
      type: object
      required:
        - success
        - message
        - errors
      properties:
        success:
          type: boolean
          example: false
        message:
          type: string
        errors:
          type: array
          items:
            type: object
            additionalProperties: true
    VisitTypeSummary:
      type: object
      properties:
        _id:
          $ref: '#/components/schemas/ObjectId'
        id:
          oneOf:
            - type: integer
            - type: string
        priority_position:
          type: integer
        on_demand:
          type: boolean
        name:
          $ref: '#/components/schemas/LocalizedString'
        nights_min:
          type: integer
        nights_max:
          type: integer
        reservation_time_span:
          type: string
          enum:
            - DAYS
            - WEEKS
    LowestPriceAmount:
      type: object
      properties:
        amount_per_night:
          type: number
          nullable: true
          description: >-
            Lowest per-night, per-guest price, including any active discount
            promotions.
        original_amount_per_night:
          type: number
          nullable: true
          description: >-
            Per-night price before any discount. Equals `amount_per_night` when
            no promotion applies; higher when a promotion is active.
        currency:
          type: string
          enum:
            - CZK
            - EUR
  examples:
    VisitTypesResponse:
      summary: Visit type list
      value:
        - _id: 66f16191f739705faa020004
          id: 1
          priority_position: 1
          on_demand: false
          name:
            cs_CZ: Frantiskolazenska lecebna kura
            de: Franzensbader Heilkur
          visit_type_categories:
            - _id: 66f16191f739705faa020005
              id: 1
              name:
                cs_CZ: Lazensky pobyt
                de: Heilkur
          booking_url:
            cs_CZ: >-
              https://rezervace.frantiskovylazne.cz?visitType=Franzensbader%20Heilkur
            de: >-
              https://reservierung.franzensbad.cz?visitType=Franzensbader%20Heilkur
          description:
            cs_CZ: Prohlidka lekarem a procedury podle zdravotniho stavu.
            de: Kuraufenthalt mit aerztlicher Untersuchung.
          nights_min: 1
          nights_max: 3
          reservation_time_span: DAYS
          time_constraints:
            - date_from: '2026-10-01'
              date_to: '2026-12-01'
          procedures: 12
          procedure_frequency: VISIT
          procedures_per_day: 4
          boarding: HALF_BOARD
          available_boardings:
            - HALF_BOARD
            - FULL_BOARD
            - BREAKFAST
            - LUNCH
            - DINNER
            - ALL_INCLUSIVE
          tags:
            - _id: 66f16191f739705faa020006
              id: 1
              name:
                cs_CZ: Byt stale mlad
                de: Sei noch jung
              color: 0000ff
          lowest_price:
            cs_CZ:
              amount_per_night: 1024.5
              original_amount_per_night: 1205.29
              currency: CZK
            de:
              amount_per_night: 40
              original_amount_per_night: 47.06
              currency: EUR
          promotions:
            - name:
                cs_CZ: Zahajovací sleva
                de: Eröffnungsrabatt
              percentage: 15
              valid_from: '2026-06-21'
              valid_to: '2026-06-25'
          commercial_slogan:
            cs_CZ: Buy it or leave it.
            de: ''
          notice:
            cs_CZ: Cena bez rozdilu kategorie.
            de: ''
          services:
            cs_CZ: 14x ubytovani.
            de: 14x Unterkunft.
          hotels:
            - _id: 66f16191f739705faa020002
              id: 1
              name: Pawlik
              lowest_price:
                cs_CZ:
                  amount_per_night: 1024.5
                  original_amount_per_night: 1205.29
                  currency: CZK
                de:
                  amount_per_night: 40
                  original_amount_per_night: 47.06
                  currency: EUR
              promotions:
                - name:
                    cs_CZ: Zahajovací sleva
                    de: Eröffnungsrabatt
                  percentage: 15
                  valid_from: '2026-06-21'
                  valid_to: '2026-06-25'
          loyalty_programs:
            - _id: 66f16191f739705faa020007
              id: 2
              name:
                cs_CZ: VIP Club Premium
                de: VIP Club Premium
                en: VIP Club Premium
  responses:
    BadRequest:
      description: Invalid request.
      content:
        application/json:
          schema:
            oneOf:
              - $ref: '#/components/schemas/ErrorResponse'
              - $ref: '#/components/schemas/ValidationErrorResponse'
    Unauthorized:
      description: Invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    UnprocessableEntity:
      description: Resource exists but cannot be used for this request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        See [Authentication](/api/v1/authentication) for how to obtain and send
        your API key.
    accessTokenQuery:
      type: apiKey
      in: query
      name: access_token
      description: >-
        See [Authentication](/api/v1/authentication) for how to obtain and send
        your API key.

````