> ## 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 price lists

> Returns price lists for the supplied filters.

The response includes price per night and, when `nights` is supplied, total price for the requested stay length.




## OpenAPI

````yaml /api/v1/openapi.yaml get /price-lists
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:
  /price-lists:
    get:
      tags:
        - Pricing
      summary: Get price lists
      description: >
        Returns price lists for the supplied filters.


        The response includes price per night and, when `nights` is supplied,
        total price for the requested stay length.
      operationId: getPriceLists
      parameters:
        - $ref: '#/components/parameters/AcceptLanguage'
        - name: visit_type_id
          in: query
          schema:
            type: integer
          description: Filter by visit type ID.
        - name: hotel_id
          in: query
          schema:
            type: integer
          description: Filter by hotel ID.
        - name: beds
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 2
          description: Filter by room occupancy.
        - name: nights
          in: query
          schema:
            type: integer
          description: Filter by number of nights.
        - name: max_nested
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 10
          description: Maximum number of nested items to return.
        - $ref: '#/components/parameters/DateFrom'
        - $ref: '#/components/parameters/DateTo'
      responses:
        '200':
          description: Price list data.
          headers:
            Content-Language:
              $ref: '#/components/headers/ContentLanguage'
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PriceList'
              examples:
                default:
                  $ref: '#/components/examples/PriceListsResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '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.
    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:
    ContentLanguage:
      description: Languages included in the response.
      schema:
        type: string
        example: cs_CZ,de
  schemas:
    PriceList:
      type: object
      properties:
        _id:
          $ref: '#/components/schemas/ObjectId'
        id:
          type: integer
        visit_type:
          type: object
          properties:
            _id:
              $ref: '#/components/schemas/ObjectId'
            id:
              type: integer
            name:
              $ref: '#/components/schemas/LocalizedString'
            on_demand:
              type: boolean
        seasons:
          type: array
          items:
            type: object
            properties:
              date_from:
                type: string
                format: date
              date_to:
                type: string
                format: date
              rooms:
                type: array
                items:
                  type: object
                  properties:
                    room_type:
                      $ref: '#/components/schemas/RoomType'
                    price_per_night:
                      $ref: '#/components/schemas/PriceByLanguage'
                    price_total:
                      $ref: '#/components/schemas/PriceByLanguage'
    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
    RoomType:
      type: object
      properties:
        _id:
          $ref: '#/components/schemas/ObjectId'
        id:
          type: integer
        category:
          $ref: '#/components/schemas/LocalizedString'
        facilities:
          type: array
          items:
            type: string
        beds:
          type: integer
        image:
          type: string
          nullable: true
        thumbnail:
          type: string
          nullable: true
        booking_url:
          $ref: '#/components/schemas/LocalizedString'
        description:
          $ref: '#/components/schemas/LocalizedString'
        lowest_price:
          $ref: '#/components/schemas/LowestPriceByLanguage'
        hotel:
          type: object
          description: Included on price list room type items.
          properties:
            _id:
              $ref: '#/components/schemas/ObjectId'
            id:
              type: integer
            name:
              type: string
            stars:
              type: integer
              nullable: true
    PriceByLanguage:
      type: object
      additionalProperties:
        allOf:
          - $ref: '#/components/schemas/CurrencyAmount'
          - type: object
            properties:
              price_breakdown:
                type: object
                description: >-
                  How the top-level `amount` is composed: `base_price` minus
                  loyalty discounts and promotions.
                additionalProperties: true
                properties:
                  base_price:
                    type: number
                    description: Pre-discount total for the stay, in the response currency.
                  discounts:
                    type: array
                    description: Loyalty-program discounts (per guest).
                    items:
                      type: object
                      additionalProperties: true
                  promotions:
                    type: array
                    description: >-
                      Discount promotions applied to the stay. The top-level
                      `amount` already accounts for them.
                    items:
                      $ref: '#/components/schemas/PromotionLine'
    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
    LowestPriceByLanguage:
      type: object
      additionalProperties:
        $ref: '#/components/schemas/LowestPriceAmount'
    CurrencyAmount:
      type: object
      required:
        - amount
        - currency
      properties:
        amount:
          type: number
          nullable: true
        currency:
          type: string
          enum:
            - CZK
            - EUR
    PromotionLine:
      type: object
      description: >-
        A discount promotion reflected in the price breakdown. The top-level
        `amount` already has it subtracted.
      properties:
        name:
          $ref: '#/components/schemas/LocalizedString'
        percentage:
          type: number
          description: Discount percentage (0-100).
        amount:
          type: number
          description: >-
            Discount amount for this promotion, for the whole room, in the
            response currency.
        nights:
          type: integer
          description: Number of stay nights the promotion applies to.
        valid_from:
          type: string
          format: date
          description: First discounted night (UTC `YYYY-MM-DD`).
        valid_to:
          type: string
          format: date
          description: >-
            Exclusive end of the discounted range (UTC `YYYY-MM-DD`); the night
            of this date is not discounted. This is the range actually applied —
            the overlap of the promotion's validity with the stay.
    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:
    PriceListsResponse:
      summary: Price lists
      value:
        - _id: 66f16191f739705faa020008
          id: 1
          visit_type:
            _id: 66f16191f739705faa020004
            id: 1
            name:
              cs_CZ: Frantiskolazenska lecebna kura
              de: Franzensbader Heilkur
            on_demand: false
          seasons:
            - date_from: '2026-04-28'
              date_to: '2027-01-01'
              rooms:
                - room_type:
                    _id: 66f16191f739705faa020003
                    id: 1
                    category:
                      cs_CZ: Prezidentske apartma
                      de: App.
                    hotel:
                      _id: 66f16191f739705faa020002
                      id: 1
                      name: Pawlik
                      stars: 4
                    booking_url:
                      cs_CZ: >-
                        https://rezervace.frantiskovylazne.cz?hotel=Pawlik&roomType=APPARTEMENT
                      de: >-
                        https://reservierung.franzensbad.cz?hotel=Pawlik&roomType=APPARTEMENT
                  price_per_night:
                    cs_CZ:
                      amount: 1024.5
                      currency: CZK
                    de:
                      amount: 40
                      currency: EUR
                  price_total:
                    cs_CZ:
                      amount: 10245
                      currency: CZK
                    de:
                      amount: 400
                      currency: EUR
  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'
    NotFound:
      description: Resource not found.
      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.

````