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

# hotel-search

> Search live hotel inventory and rates

Search live hotel inventory and nightly rates for a destination and stay window. It handles requests like "three nights in Lisbon next weekend for two adults" or "family room in Rome with one child in August". Each result includes an `htl_*` offer token you can hand to the trip tool to start a booking.

A hotel search is a session. Each call returns within a time limit with the hotels found so far. `has_more: true` means the search can go on: send `next_handle` for the next page, even when this page holds no hotel (`empty_reason: search_in_progress`). `has_more: false` means the search is over; on an empty page, `empty_reason` says why, or, for a search by `hotel_ids` or `hotel_name`, `destination_resolution.hotel_ids_without_rates` lists the hotels that priced nothing.

> [!NOTE]
>
> **Read hotel prices from the `*_money` fields.** `rates[].total_amount_money`,
> `taxes_breakdown[].amount_money` and `cancellation_schedule[].amount_money`
> carry `value` in minor units with its `decimal_places`, the same shape as
> every other money field: divide `value` by `10 ** decimal_places`, or show
> `display`. A cancellation step expressed as a percentage or a number of
> nights carries `percent` or `nights` instead. The older `total_amount`,
> `amount` and `currency` fields are deprecated and hold major units. A room's
> capacity is `room_capacity`; the deprecated `max_occupancy` repeats the
> requested occupancy. See [Money & prices](https://docs.gojinko.com/concepts/money).


## OpenAPI

````yaml api-reference/public-api.yaml POST /v1/hotel_search
openapi: 3.0.0
info:
  title: Jinko Public API
  version: 0.125.0
  description: >-
    Curated public REST surface for Jinko. Authenticated with jnk_ API keys. See
    https://docs.gojinko.com for guides.


    ### Per-end-user attribution


    On booking calls you may send an optional `X-End-User-Id` request header to
    attribute the booking to one of your own end users (for per-end-user
    attribution and rate-limiting). The value is an **opaque, tenant-scoped**
    identifier that you choose — not a Jinko account id. Omit it to book as the
    tenant. Values prefixed `user_` or `org_` are rejected.
servers:
  - url: https://api.gojinko.com
    description: Production
  - url: https://api.sandbox.gojinko.com
    description: Sandbox
security: []
paths:
  /v1/hotel_search:
    post:
      tags:
        - Hotels
      summary: Search live hotel inventory and rates
      description: >-
        The search is described by the JSON body alone. Hotels come in the order
        `sort_by` names, by default the hotel source's recommended order,
        re-ranked by `intent.user_intent` when one is sent.


        A hotel search is a session. Each call returns within a time limit with
        the hotels found so far. `has_more: true` means the search can go on:
        send `next_handle` for the next page, even when this page holds no hotel
        (`empty_reason: search_in_progress`). `has_more: false` means the search
        is over; on an empty page, `empty_reason` says why, or, for a search by
        `hotel_ids` or `hotel_name`,
        `destination_resolution.hotel_ids_without_rates` lists the hotels that
        priced nothing.


        The two query parameters earlier contract versions accepted to switch
        hotel inventory sources on or off are deprecated: they are accepted and
        ignored until 2027-04-30, and the platform chooses which inventory to
        search. A request that sends one is answered with the `Deprecation`,
        `Sunset` and `Link` headers.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/HotelSearchRequest'
      responses:
        '200':
          description: Matching hotels
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HotelSearchResponse'
        '400':
          description: >-
            The request was malformed or failed validation. When a supplier
            declined the request, `error.message` is “The request was declined
            for these inputs. Check the dates, places and travellers, then
            retry.” **`BAD_REQUEST`** — The request was malformed or failed
            validation. Fix the request as the message describes; retrying it
            unchanged cannot succeed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: BAD_REQUEST
                  message: >-
                    The request was declined for these inputs. Check the dates,
                    places and travellers, then retry.
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: AUTH_REQUIRED
                  message: Invalid or expired API key.
                  doc_url: https://docs.gojinko.com/authentication/api-keys
        '402':
          description: Payment required — organization balance exhausted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: PAYMENT_REQUIRED
                  message: >-
                    Insufficient balance — this call costs $0.0150 and your
                    organization has $0.0000 available. Top up at
                    https://dashboard.gojinko.com/developers/billing/topup
                  doc_url: https://docs.gojinko.com/concepts/errors
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: NOT_FOUND
                  message: Resource not found.
                  doc_url: https://docs.gojinko.com/concepts/errors
        '409':
          description: The operation conflicts with the current state of the resource
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: CONFLICT
                  message: >-
                    The operation conflicts with the current state of the
                    resource.
                  doc_url: https://docs.gojinko.com/concepts/errors
        '410':
          description: The resource this request names no longer exists
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: GONE
                  message: The resource no longer exists.
                  doc_url: https://docs.gojinko.com/concepts/errors
        '422':
          description: >-
            The request failed validation, or named a destination the platform
            could not confidently resolve. Tell the causes apart by
            `error.code`. **`BAD_REQUEST`** — The request was malformed or
            failed validation. Fix the request as the message describes;
            retrying it unchanged cannot succeed.
            **`HOTEL_NAME_LOW_CONFIDENCE`** — A `hotel_name` lookup found no
            exact match, only close candidates none of which clearly wins. Read
            `error.top_candidates` (closest first). If the top one is an obvious
            match, retry with its `hotel_id`; if several fit, ask the user which
            one they meant — never say there is no such hotel.
            **`DESTINATION_LOW_CONFIDENCE`** — A `city_name` + `country_code`
            search found no exact catalog city, only close candidates none of
            which clearly wins. Read `error.top_candidates` (closest first). If
            the top one is an obvious typo fix, confirm and retry with
            `error.suggested_retry.destination`; if several fit, ask the user
            which city they meant — never say there are no hotels in the
            requested city.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/HotelNameLowConfidenceResponse'
                  - $ref: '#/components/schemas/DestinationLowConfidenceResponse'
                  - $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: DESTINATION_LOW_CONFIDENCE
                  message: >-
                    no confident city match for "Sain Malo" in FR (closest:
                    "Saint Malo", FR at 0.75)
                  top_candidates:
                    - city: Saint Malo
                      country_code: FR
                      hotel_count: 326
                      score: 0.75
                  suggested_retry:
                    destination:
                      city_name: Saint Malo
                      country_code: FR
                    rationale: >-
                      the closest catalog city to the requested name; retry with
                      it, or ask the user when the candidates differ
        '429':
          description: Rate limit or quota exceeded
          headers:
            Retry-After:
              description: >-
                Seconds to wait before retrying. Absent when no interval
                applies.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: RATE_LIMITED
                  message: Too many requests. Retry after the Retry-After delay.
                  doc_url: https://docs.gojinko.com/concepts/errors
        '502':
          description: The travel provider rejected the request, or an upstream call failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: UPSTREAM_REJECTED
                  message: The request was declined for this offer. Try another offer.
                  doc_url: https://docs.gojinko.com/concepts/errors
        '503':
          description: No travel provider can serve the request right now
          headers:
            Retry-After:
              description: >-
                Seconds to wait before retrying. Absent when no interval
                applies.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: UPSTREAM_UNAVAILABLE
                  message: >-
                    The service is temporarily unavailable. Retry after the
                    Retry-After delay.
                  doc_url: https://docs.gojinko.com/concepts/errors
        '504':
          description: The travel provider did not answer in time
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: UPSTREAM_TIMEOUT
                  message: >-
                    The request timed out before a result was available. Retry
                    the request.
                  doc_url: https://docs.gojinko.com/concepts/errors
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
components:
  schemas:
    HotelSearchRequest:
      anyOf:
        - $ref: '#/components/schemas/HotelSearchContinuationRequest'
        - type: object
          properties:
            next_handle:
              not: {}
            query:
              type: string
              example: Paris
            city_name:
              type: string
            country_code:
              type: string
              minLength: 2
              maxLength: 2
            latitude:
              type: number
            longitude:
              type: number
            radius_km:
              type: number
              minimum: 0
              exclusiveMinimum: true
              maximum: 50
              description: >-
                Half the side, in km, of the square searched around
                `latitude`/`longitude` (default 20, at most 50). The hotel
                source searches a square, not a circle, and no hotel is dropped
                by distance, so a hotel near a corner can be up to 1.414 ×
                max(`radius_km`, 1) km from the centre (see each hotel’s
                `distance_km`). A value under 1 is searched at 1 km, the hotel
                source’s minimum.
            hotel_ids:
              type: array
              items:
                type: string
            hotel_name:
              type: string
              minLength: 1
              description: >-
                Search one specific hotel by its name. The name is matched
                against the hotel catalog; the closest match is priced when it
                scores at least 0.7, and the response then has
                `destination_resolution.shape` `hotel_name` plus
                `nearby_alternatives` within 3 km. Add `city_name` and
                `country_code` to narrow the match. When no candidate scores
                0.7, the call returns 422 `HOTEL_NAME_LOW_CONFIDENCE` with
                `top_candidates` and a `suggested_retry`. With `hotel_name`,
                `query`, `city_name` and coordinates do not set the search area.
                Property filters (min_rating, min_star_rating, max_star_rating,
                star_rating, min_reviews, hotel_type_ids, chain_ids,
                facility_ids) are ignored with hotel_name or hotel_ids, and when
                a `query` is read as one hotel: the named hotel is priced as if
                they were not sent. An out-of-range value, or a facility or
                hotel type that is not a numeric id, is still refused.
                `hotel_ids`, when also sent, takes precedence. Name lookup
                covers part of the hotel inventory only.
              example: Park Plaza Beijing Wangfujing
            checkin:
              type: string
              pattern: ^\d{4}-\d{2}-\d{2}$
              description: >-
                Arrival date, `YYYY-MM-DD`. Today or later: today in `timezone`
                when given, else today anywhere in the `country_code` country,
                else today in UTC.
            checkout:
              type: string
              pattern: ^\d{4}-\d{2}-\d{2}$
              description: >-
                Departure date, `YYYY-MM-DD`. After `checkin`: a stay has at
                least one night.
            timezone:
              type: string
              description: >-
                The traveler's IANA time zone, such as `Pacific/Honolulu`:
                `checkin` may be today there, so a stay that starts tonight is
                accepted while the UTC date is already tomorrow. Without it,
                today is the date anywhere in the `country_code` country (its
                latest time zone), or in UTC when the country is not given.
              example: America/New_York
            occupancies:
              type: array
              items:
                $ref: '#/components/schemas/Occupancy'
              description: >-
                Each array element requests one room. One occupancy returns a
                one-room offer and keeps the deprecated `rooms[].rates[]`
                compatibility projection; multiple occupancies return multi-room
                `offers[]`. Add the chosen offer’s trip_item_token to a trip
                once.
            adults:
              type: integer
              minimum: 1
              description: >-
                Deprecated: use `occupancies` instead, one element per room with
                its own `adults`. Shorthand for the adults of the whole party:
                without `rooms` one room is priced for all of them, with `rooms`
                they are spread evenly over that many rooms. Ignored when
                `occupancies` is sent.
              deprecated: true
            children:
              type: array
              items:
                type: integer
                minimum: 0
                maximum: 17
              description: >-
                Deprecated: use `occupancies[].children_ages` instead, which
                places each child in a room. Shorthand for the age of each child
                of the whole party, spread over the rooms of `rooms`. Ignored
                when `occupancies` is sent.
              deprecated: true
            rooms:
              type: integer
              minimum: 1
              description: >-
                Deprecated: use `occupancies` instead, one element per room.
                Shorthand for how many rooms the `adults` and `children` of the
                party are spread over, evenly. Ignored when `occupancies` is
                sent.
              deprecated: true
            currency:
              type: string
            guest_nationality:
              type: string
              minLength: 2
              maxLength: 2
              description: >-
                The lead guest’s nationality, ISO 3166-1 alpha-2 (`FR`). Sent to
                the hotel supplier, which can offer different rates and prices
                by nationality, and kept on the offers this search returns. When
                omitted, `US` is used. The value applied is echoed in
                `search_context.guest_nationality`.
              example: FR
            min_rating:
              type: number
              description: >-
                Minimum guest score (0-10) for destination searches. When
                omitted, or 0, no floor applies, and hotels without a guest
                score are returned too. Ignored with hotel_name or hotel_ids.
            min_star_rating:
              type: integer
              minimum: 1
              maximum: 5
            star_rating:
              type: integer
              minimum: 1
              maximum: 5
              description: >-
                Deprecated: use `min_star_rating` and `max_star_rating` instead;
                send the same value as both for an exact match. Still applied:
                it fills whichever of the two bounds the request leaves unset.
              deprecated: true
            max_star_rating:
              type: integer
              minimum: 1
              maximum: 5
            min_reviews:
              type: integer
              description: Minimum number of guest reviews.
            max_results:
              type: integer
              maximum: 200
              description: >-
                Requested page size (default 50, at most 200); next_handle
                returns the next page of the same search. A hotel_name or
                hotel_ids search returns every named hotel that has rates.
            offset:
              type: integer
              minimum: 0
              description: >-
                Deprecated: use `next_handle` instead. Skips this many hotels at
                the hotel source before the first page, default 0. A search that
                answers with `next_handle` refuses a non-zero offset: page by
                sending that handle alone.
              deprecated: true
            min_budget_per_night:
              type: number
              minimum: 0
              exclusiveMinimum: true
              description: >-
                Keep only hotels with at least one rate whose per-night price
                (per room, in the request currency) is at least this amount, and
                at most `max_budget_per_night` when that is also sent;
                qualifying hotels keep all their rates, including rates outside
                the band. Must not exceed `max_budget_per_night`; the two may be
                equal.
              example: 80
            max_budget_per_night:
              type: number
              minimum: 0
              exclusiveMinimum: true
              description: >-
                Keep only hotels whose cheapest per-night price (per room, in
                the request currency) is within this budget; qualifying hotels
                keep all their rates. With `min_budget_per_night`, a hotel
                qualifies when at least one of its rates is within the band, not
                only its cheapest.
              example: 150
            hotel_type_ids:
              type: array
              items:
                type: string
              description: >-
                Filter by property type id. Each entry is a numeric property
                type id, as a string; property type names are refused.
            chain_ids:
              type: array
              items:
                type: string
            facility_ids:
              type: array
              items:
                type: string
              description: >-
                Filter by facility. Each entry is a Jinko facility dictionary id
                (numeric, as a string), listed in the docs under Hotel facility
                dictionary. Facility names are refused on this endpoint.
            sort_by:
              type: string
              enum:
                - recommended
                - lowest
              description: >-
                Order of the hotels of a destination search. `recommended`, the
                default, is the hotel source's own recommended order, weighted
                by popularity, review quality and content completeness. `lowest`
                is cheapest per night first (per room, in the request currency).
                With `intent.user_intent` the hotels of either order are
                re-ranked by how well each one matches the intent, and carry
                `recommendation_score`. A `hotel_ids` or `hotel_name` search
                ignores it.
              example: lowest
            intent:
              $ref: '#/components/schemas/IntentInput'
          required:
            - checkin
            - checkout
      example:
        city_name: Paris
        country_code: fr
        checkin: '2027-03-10'
        checkout: '2027-03-13'
        occupancies:
          - adults: 2
        currency: USD
    HotelSearchResponse:
      type: object
      properties:
        hotels:
          type: array
          items:
            $ref: '#/components/schemas/Hotel'
        nearby_alternatives:
          type: array
          items:
            $ref: '#/components/schemas/Hotel'
          description: >-
            Other hotels near the one a `hotel_name` search matched, priced for
            the same dates and occupancy, so they can be compared without a
            second search. Same shape as `hotels`, and not counted in `total`.
            Present only on a `hotel_name` search that found usable neighbours.
        total:
          type: number
          example: 87
        search_handle:
          type: string
          description: >-
            Deprecated: use `next_handle` instead. The identifier of the search
            session on its own, which no endpoint accepts. `next_handle` carries
            the session and the next page, `has_more` says whether there is one
            and `expires_at` when the session ends.
          deprecated: true
          example: hs_example
        next_handle:
          type: string
          nullable: true
          description: >-
            Opaque handle for the next page. Send it by itself to hotel_search.
            The next page serves the hotels this answer held, then asks the
            hotel source for the next ones, and widens a `city` or `default`
            radius when its area has none left. Null means the search has
            nothing left. A page can hold no hotel and still carry `next_handle`
            (`empty_reason` `search_in_progress`): the search goes on, so send
            it.
          example: hp_example_2
        has_more:
          type: boolean
          description: >-
            Whether this fixed search session has another page. A page answers
            one of three ways: hotels, with `has_more` saying whether
            `next_handle` gives more; no hotel yet while the search goes on
            (`has_more` true, `empty_reason` `search_in_progress`); or no hotel
            and the search is over (`has_more` false; `empty_reason` says why,
            or, for a search by `hotel_ids` or `hotel_name`,
            `destination_resolution.hotel_ids_without_rates` lists the hotels
            that priced nothing).
        expires_at:
          type: string
          format: date-time
          description: RFC 3339 expiry for the search session and its page handles.
          example: '2027-01-15T10:30:00Z'
        search_context:
          $ref: '#/components/schemas/HotelSearchContext'
        warnings:
          type: array
          items:
            type: string
          description: >-
            Non-fatal advisories, e.g. budget-filter outcomes or ignored
            filters.
        destination_resolution:
          $ref: '#/components/schemas/DestinationResolution'
        empty_reason:
          $ref: '#/components/schemas/EmptyReason'
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - INVALID_SEGMENTS_TO_EXCHANGE
                - PARTIAL_EXCHANGE_UNSUPPORTED
                - LEG_ALREADY_DEPARTED
                - DEPARTURE_DATE_IN_PAST
                - LEG_DATES_OUT_OF_ORDER
                - INVALID_EXCHANGE_REQUEST
                - NOT_EXCHANGEABLE
                - CREDENTIAL_FORMAT_INVALID
                - PAYMENT_TYPE_NOT_ENABLED
                - PAYMENT_CREDENTIAL_INVALID
                - TRIP_OWNED_BY_OTHER_PAYMENT
                - IDEMPOTENCY_KEY_REUSED
                - ATTEMPT_IN_PROGRESS
                - ATTEMPT_TERMINAL
                - TEMPORARILY_UNAVAILABLE
                - AUTH_REQUIRED
                - PAYMENT_REQUIRED
                - RATE_LIMITED
                - BAD_REQUEST
                - FORBIDDEN
                - NOT_FOUND
                - CONFLICT
                - GONE
                - QUOTE_PENDING
                - QUOTE_EXPIRED
                - TRIP_EXPIRED
                - TRIP_STATE_CONFLICT
                - OFFER_EXPIRED
                - OFFER_UNAVAILABLE
                - MISSING_CUSTOMER_DETAILS
                - INVALID_PHONE_NUMBER
                - INVALID_FLIGHT_NUMBER
                - CURRENCY_UNSUPPORTED
                - HOTEL_NAME_LOW_CONFIDENCE
                - DESTINATION_LOW_CONFIDENCE
                - UPSTREAM_REJECTED
                - UPSTREAM_UNAVAILABLE
                - UPSTREAM_TIMEOUT
                - UPSTREAM_ERROR
                - INTERNAL
              description: >-
                What went wrong, as a stable machine-readable code. This is a
                closed set — branch on it rather than on `message`, which is
                prose and may change. New codes arrive in a minor version, so
                treat an unknown one as its HTTP status. A code can also stop
                being emitted: it leaves this set in a minor version, named in
                the changelog, and a branch you wrote for it goes unreached
                rather than wrong.
              example: BAD_REQUEST
            message:
              type: string
              description: >-
                What went wrong, in prose. These codes always carry the same
                message, and it never includes text from a supplier:
                `RATE_LIMITED` — "Too many requests. Retry after the Retry-After
                delay."; `OFFER_EXPIRED` — "This offer has expired. Search
                again."; `OFFER_UNAVAILABLE` — "This offer is no longer
                available. Search again."; `UPSTREAM_REJECTED` — "The request
                was declined for this offer. Try another offer.";
                `UPSTREAM_UNAVAILABLE` — "The service is temporarily
                unavailable. Retry after the Retry-After delay.";
                `UPSTREAM_TIMEOUT` — "The request timed out before a result was
                available. Retry the request."; `UPSTREAM_ERROR` — "The request
                could not be completed.".
            doc_url:
              type: string
            field:
              type: string
              description: >-
                On a 400 `BAD_REQUEST` that names one refused input: the path of
                that field in your request, e.g. `selections[1].quantity` for
                the second selection of a `select_ancillaries` call. Absent when
                the refusal names no single field.
              example: selections[1].quantity
          required:
            - code
            - message
      required:
        - error
    HotelNameLowConfidenceResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - HOTEL_NAME_LOW_CONFIDENCE
            message:
              type: string
            doc_url:
              type: string
            top_candidates:
              type: array
              items:
                $ref: '#/components/schemas/HotelNameCandidate'
              description: Closest matches, ordered by score descending, at most 5.
            suggested_retry:
              $ref: '#/components/schemas/LowConfidenceSuggestedRetry'
          required:
            - code
            - message
            - top_candidates
      required:
        - error
    DestinationLowConfidenceResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - DESTINATION_LOW_CONFIDENCE
            message:
              type: string
            doc_url:
              type: string
            top_candidates:
              type: array
              items:
                $ref: '#/components/schemas/DestinationCityCandidate'
              description: Closest catalog cities, ordered by score descending, at most 5.
            suggested_retry:
              $ref: '#/components/schemas/LowConfidenceSuggestedRetry'
          required:
            - code
            - message
            - top_candidates
      required:
        - error
    HotelSearchContinuationRequest:
      type: object
      properties:
        next_handle:
          type: string
          minLength: 1
          description: >-
            Opaque continuation handle returned by a prior hotel_search. Send
            this field by itself; the search session keeps destination, dates,
            occupancy, currency and filters.
          example: hp_example_2
        intent:
          $ref: '#/components/schemas/IntentInput'
      required:
        - next_handle
      additionalProperties: false
    Occupancy:
      type: object
      properties:
        adults:
          type: integer
          minimum: 1
        children_ages:
          type: array
          items:
            type: integer
            minimum: 0
            maximum: 17
      required:
        - adults
      description: >-
        The party one room is requested or priced for: the number of adults and
        the age of each child.
    IntentInput:
      type: object
      properties:
        user_intent:
          type: string
          nullable: true
          description: >-
            The user's natural-language intent: the Alpic PII-stripped
            paraphrase when available, else a best-effort fallback to the
            client-provided NL query.
          example: find a cheap flight to Tokyo
    Hotel:
      type: object
      properties:
        hotel_id:
          type: string
          description: >-
            Opaque hotel identifier. Pass it to hotel_details, hotel_reviews and
            `hotel_ids` exactly as received; do not parse or build it. The value
            a hotel is known by can change between contract versions, so read it
            from a fresh hotel_search rather than keeping it.
          example: lp1d2c3
        hotel_ref:
          type: string
          description: >-
            Deprecated: use `hotel_id` (search) or `id` (details, reviews). The
            hotel's identifier behind a source prefix, as earlier contract
            versions returned it; hotel_details and hotel_reviews still accept
            it. Pass it back exactly as received; do not parse or build it.
          example: h1:lp1d2c3
          deprecated: true
        name:
          type: string
          example: Hôtel Le Marais
        address:
          type: string
          example: 12 Rue de Rivoli
        city:
          type: string
          example: Paris
        country:
          type: string
          description: >-
            ISO 3166-1 alpha-2 country code, LOWER case as the platform sends
            it.
          example: fr
        star_rating:
          type: number
          example: 4
        category:
          type: string
          description: >-
            The provider's own category wording, which `star_rating` cannot
            express. Free text.
          example: 4 KEYS
        lodging_type:
          type: string
          example: Aparthotel
        rating:
          type: number
          description: Guest score out of 10.
          example: 8.6
        review_count:
          type: number
          description: Number of guest reviews behind `rating`.
          example: 1243
        main_photo:
          type: string
          description: Full-size hero image URL.
          example: https://images.example.com/hotels/main.jpg
        thumbnail:
          type: string
          description: Small preview image URL.
          example: https://images.example.com/hotels/thumb.jpg
        latitude:
          type: number
          example: 48.8566
        longitude:
          type: number
          example: 2.3522
        distance_km:
          type: number
          minimum: 0
          description: Straight-line distance from the search center, in kilometers.
        recommendation_score:
          type: number
          minimum: 0
          maximum: 1
          description: >-
            How well the hotel fits `intent.user_intent`, from 0 to 1, present
            when the intent re-ranked the results, which are then ordered by it.
            Without an intent the results keep the order `sort_by` names. Not a
            guest rating.
        rooms:
          type: array
          items:
            $ref: '#/components/schemas/HotelRoom'
        offers:
          type: array
          items:
            $ref: '#/components/schemas/HotelOffer'
          description: >-
            Bookable whole-stay offers. Choose one and add its `trip_item_token`
            to the trip exactly once.
      description: >-
        A hotel and its available rooms. Until v0.2.0 this schema declared
        `images`, `thumbnail_url` and `country_code`, none of which hotel search
        has ever sent; the real names are `main_photo`, `thumbnail` and
        `country`.
    HotelSearchContext:
      type: object
      properties:
        checkin:
          type: string
          pattern: ^\d{4}-\d{2}-\d{2}$
        checkout:
          type: string
          pattern: ^\d{4}-\d{2}-\d{2}$
        occupancies:
          type: array
          items:
            $ref: '#/components/schemas/Occupancy'
          minItems: 1
        currency:
          type: string
        guest_nationality:
          type: string
          minLength: 2
          maxLength: 2
        trip_id:
          type: string
      required:
        - checkin
        - checkout
        - occupancies
        - currency
      description: >-
        Normalized first-request stay and occupancy frozen by the search session
        and repeated on every page. trip_id only associates the search with a
        trip for display.
    DestinationResolution:
      type: object
      properties:
        shape:
          type: string
          enum:
            - city
            - coordinates
            - query
            - hotel_name
            - hotel_ids
          description: >-
            Which destination selector the request used. It says which of the
            other fields are present: the city fields on `city`,
            `hotel_id`/`hotel_name`/`hotel_city` on `hotel_name`, `hotel_ids` on
            `hotel_ids`.
          example: city
        match:
          type: string
          enum:
            - exact
            - fuzzy
            - provider_matched
            - fallback_string
          description: >-
            `exact` — the destination was found verbatim: a city catalog group,
            a place located under the name asked for (`resolved_place`),
            coordinates, hotel ids, or a hotel name scoring 1.0. `fuzzy` — a
            close-but-different label was auto-picked: on the city shape, a
            single candidate scoring ≥ 0.85 with no runner-up ≥ 0.6, or a place
            located under another name (`resolved_place`); on hotel_name, a
            lookup scoring < 1.0 — the response also carries a warning naming
            the substitution. `provider_matched` — a `query` selector was
            forwarded as-is and the supplier chose the place. `fallback_string`
            — `city_name` could not be resolved at all, so the raw string was
            forwarded to the supplier unchanged; `status` says why.
          example: exact
        status:
          type: string
          enum:
            - resolved
            - unknown_city
            - implausible_spread
            - unsupported_shape
            - resolver_unavailable
            - not_attempted
          description: >-
            City shape ONLY. Absent for coordinates, query, hotel_name and
            hotel_ids.
          example: resolved
        requested_city:
          type: string
          example: Sain Malo
        requested_country:
          type: string
          example: FR
        resolved_city:
          type: string
          example: Saint Malo
        resolved_country:
          type: string
          example: FR
        latitude:
          type: number
          example: 48.649
        longitude:
          type: number
          example: -2.0257
        radius_km:
          type: number
          description: >-
            Half the side, in km, of the square searched around
            `latitude`/`longitude` (a hotel near a corner can be up to 1.414 ×
            max(`radius_km`, 1) km away; under 1, the search ran at 1 km);
            `radius_source` says where it came from. City and query shapes:
            present when the destination resolved to a centre (a catalog city
            group or a located place). Coordinates shape: absent when the
            supplier default was used and is unknown to the platform.
        radius_source:
          type: string
          enum:
            - caller
            - city
            - default
            - place
          description: >-
            Where `radius_km` came from. `caller` — the request’s own
            `radius_km`. `city` — the resolved city’s extent (its catalog
            spread, or the located city’s size when `resolution_source` is
            `geocoder`), floored at the platform minimum. `default` — the
            platform default, for coordinates sent without a radius. `place` —
            the size of the located place for its `place_type` (a district,
            landmark, station, address, airport, island or region). A `city` or
            `default` radius may be widened: once when the first search finds
            too little, and on a next page when the area has no hotel left
            (doubling, up to 50 km); `radius_km` is then the radius searched for
            that page. Absent on the hotel_name and hotel_ids shapes.
          example: city
        catalog_hotel_count:
          type: integer
          description: >-
            How many properties the matched city catalog group holds. Absent
            when the search centre did not come from a catalog group
            (`resolution_source` `geocoder`).
          example: 41
        place_type:
          type: string
          enum:
            - city
            - district
            - poi
            - station
            - address
            - airport
            - island
            - region
          description: >-
            city and query shapes, when the platform located the destination
            itself: the kind of place searched. `poi` is a landmark or venue.
            More values may be added. Absent when the destination was not
            located this way.
          example: island
        resolution_source:
          type: string
          enum:
            - catalog
            - geocoder
          description: >-
            With `place_type`: where the search centre came from. `catalog` —
            the platform’s city catalog group, used only when it agrees with the
            located place (`resolved_city` and `catalog_hotel_count` are then
            present). `geocoder` — the located place itself.
          example: geocoder
        resolved_place:
          type: string
          description: >-
            With `place_type`: the name of the place searched, the one to quote
            back to the user.
          example: Fuerteventura, Las Palmas, Spain
        search_bounds:
          type: object
          properties:
            south:
              type: number
            west:
              type: number
            north:
              type: number
            east:
              type: number
          required:
            - south
            - west
            - north
            - east
          description: >-
            Island and region searches only: the box, in degrees, of the place
            searched. The search covers the circle that reaches its corners and
            does not cut the hotels to the box, so a hotel near the place but
            outside the box can be returned.
          example:
            south: 28.0439
            west: -14.51
            north: 28.757
            east: -13.8224
        alternatives:
          type: array
          items:
            type: object
            properties:
              resolved_place:
                type: string
              place_type:
                type: string
                enum:
                  - city
                  - district
                  - poi
                  - station
                  - address
                  - airport
                  - island
                  - region
              resolved_country:
                type: string
              latitude:
                type: number
              longitude:
                type: number
              radius_km:
                type: number
                minimum: 0
                exclusiveMinimum: true
                maximum: 50
            required:
              - resolved_place
              - place_type
              - latitude
              - longitude
              - radius_km
          maxItems: 3
          description: >-
            With `place_type`: up to three other places the destination may name
            — the same name in another country or state, the island or region
            around the town searched when an island or region was asked for, or
            another place the text names. To search one of them instead, send
            its `latitude`, `longitude` and `radius_km` (at most 50, the limit
            the request accepts). Absent when the destination names one place.
          example:
            - resolved_place: Lexington, MA, USA
              place_type: city
              resolved_country: US
              latitude: 42.4473497
              longitude: -71.2271531
              radius_km: 6.1
        score:
          type: number
          minimum: 0
          maximum: 1
          description: >-
            Only present when `match` is `fuzzy` (the city shape’s auto-pick
            similarity) or on the hotel_name shape (the name lookup’s own
            score).
          example: 0.9
        query:
          type: string
        hotel_id:
          type: string
          example: lp1d2c3
        hotel_name:
          type: string
        hotel_city:
          type: string
        nearby_alternatives_included:
          type: boolean
          description: 'hotel_name shape only: true when nearby hotels were also priced.'
        hotel_ids:
          type: array
          items:
            type: string
          description: 'hotel_ids shape only: the ids that were rate-shopped.'
        hotel_ids_without_rates:
          type: array
          items:
            type: string
          description: >-
            hotel_name shape: present when the matched hotel priced nothing.
            hotel_ids shape: the requested ids that priced nothing.
      description: >-
        How the request’s destination resolved into these hotels. Present on
        every successful search. Rendering rule for an agent or tool: say
        something ONLY when there is something to say — `match` is `fuzzy` or
        `fallback_string`, `resolved_city` differs from `requested_city`, or the
        platform located a place that is not a city (`place_type` other than
        `city`), or `alternatives` is present. `exact` and `provider_matched`
        otherwise need no header line of their own. When `resolved_place` is
        present, name it as the place searched, with `place_type` when it is not
        a city, instead of `resolved_city`. When `alternatives` is present, name
        them too and let the user pick before booking.
    EmptyReason:
      type: string
      enum:
        - no_availability_for_dates
        - destination_not_found
        - catalog_exhausted
        - all_dropped_by_budget
        - no_catalog_match
        - all_dropped_by_star_filter
        - all_dropped_by_rating_filter
        - search_in_progress
      description: >-
        Why `hotels` is empty. Absent whenever `hotels` is non-empty.
        `search_in_progress`: no hotel yet, and the search has not finished;
        `has_more` is true, so send `next_handle` to continue it, without
        changing the search. Every other value means the search is over:
        `has_more` is false.
      example: no_availability_for_dates
    HotelNameCandidate:
      type: object
      properties:
        hotel_id:
          type: string
          example: lp1a2b3c
        name:
          type: string
          example: Hotel Le Marais
        city:
          type: string
          example: Paris
        score:
          type: number
          minimum: 0
          maximum: 1
          example: 0.82
      required:
        - hotel_id
        - name
        - score
    LowConfidenceSuggestedRetry:
      type: object
      properties:
        destination:
          type: object
          additionalProperties:
            nullable: true
          description: >-
            The exact fields to retry the search with — merge into the failed
            request unchanged for an exact match.
          example:
            city_name: Saint Malo
            country_code: FR
        rationale:
          type: string
          example: >-
            the closest catalog city to the requested name; retry with it, or
            ask the user when the candidates differ
      required:
        - destination
      description: >-
        The one-shot fix, when the top candidate is confident enough to name
        one.
    DestinationCityCandidate:
      type: object
      properties:
        city:
          type: string
          example: Saint Malo
        country_code:
          type: string
          example: FR
        hotel_count:
          type: integer
          example: 326
        score:
          type: number
          minimum: 0
          maximum: 1
          example: 0.75
      required:
        - city
        - country_code
        - hotel_count
        - score
    HotelRoom:
      type: object
      properties:
        room_id:
          type: string
          example: rm_1
        room_name:
          type: string
          example: Superior Double
        description:
          type: string
          description: Free-text room description, when the provider supplied one.
        requested_occupancy:
          type: integer
          description: >-
            The occupancy these rates were priced for — an echo of what you
            searched, not a property of the room. Pricing a different party size
            means searching again.
          example: 2
        room_capacity:
          type: integer
          description: >-
            How many the room sleeps, from the provider’s content catalogue.
            Absent when the catalogue carries no figure — absent means unknown,
            never zero. Same field as on hotel_details and on a hotel trip item.
          example: 2
        max_occupancy:
          type: integer
          description: >-
            Deprecated: an alias of `requested_occupancy` (same value), never
            the room’s capacity. Read `requested_occupancy` for the priced party
            size and `room_capacity` for how many the room sleeps.
          deprecated: true
          example: 2
        images:
          type: array
          items:
            type: string
        amenities:
          type: array
          items:
            type: string
        beds:
          type: array
          items:
            $ref: '#/components/schemas/HotelBed'
        rates:
          type: array
          items:
            $ref: '#/components/schemas/HotelRate'
          description: >-
            DEPRECATED compatibility projection. Read the hotel-level `offers[]`
            list for new integrations and add an offer’s `trip_item_token` to
            the trip. Multi-room searches return this as an empty array.
          deprecated: true
    HotelOffer:
      type: object
      properties:
        offer_id:
          type: string
          description: 'Deprecated: use `trip_item_token` instead. Same value.'
          example: htl_2d67a7441c60e5de
          deprecated: true
        board_type:
          type: string
          example: RO
        board_name:
          type: string
          example: Room Only
        total_amount:
          type: number
          description: >-
            Deprecated: use `total_amount_money` instead. Price for the whole
            stay in `currency`, in MAJOR units at the currency’s own precision.
          example: 1818.4
          deprecated: true
        total_amount_display:
          type: string
          description: >-
            Deprecated: use `total_amount_money` instead. The rate total as a
            string ready to show: the ISO 4217 code, a space, then
            `total_amount` at the currency’s ISO digits, e.g. "EUR 606.13".
          example: EUR 606.13
          deprecated: true
        currency:
          type: string
          description: >-
            Deprecated: use `total_amount_money` instead. The currency of
            `total_amount`.
          example: EUR
          deprecated: true
        total_amount_money:
          allOf:
            - $ref: '#/components/schemas/MoneyValue'
            - description: Price for the whole stay.
        is_refundable:
          type: boolean
        free_cancellation_until:
          type: string
          description: >-
            Last instant the stay can be cancelled at no charge. RFC 3339 with
            the supplier’s declared UTC offset. Absent when the supplier
            declared no timezone — the platform never invents an offset, so a
            deadline it cannot place on the clock is withheld rather than
            published ambiguously — and absent when the rate is non-refundable
            or the provider named no deadline.
          example: '2026-08-18T10:00:00+02:00'
        cancellation_schedule:
          type: array
          items:
            $ref: '#/components/schemas/CancellationStep'
          description: >-
            The full penalty ladder, chronological. Absent when the provider
            published none — which is not a statement that cancelling is free.
        taxes_breakdown:
          type: array
          items:
            $ref: '#/components/schemas/TaxLine'
        payment_types:
          type: array
          items:
            $ref: '#/components/schemas/HotelPaymentType'
          description: How the rate can be settled. Each value appears at most once.
          example:
            - pay_now
        promotions:
          type: array
          items:
            $ref: '#/components/schemas/HotelOfferPromotion'
        trip_item_token:
          type: string
          description: >-
            The token `trip(add_item)` takes as `trip_item_token`. Add it once
            even when `room_rates` contains several occupancies.
          example: htl_2d67a7441c60e5de
        room_rates:
          type: array
          items:
            $ref: '#/components/schemas/HotelRoomRate'
          description: >-
            One entry per requested occupancy. One occupancy means one room;
            multiple occupancies mean a multi-room offer.
      required:
        - offer_id
        - total_amount
        - currency
        - is_refundable
        - taxes_breakdown
        - trip_item_token
        - room_rates
    HotelBed:
      type: object
      properties:
        bed_type:
          type: string
        count:
          type: integer
          minimum: 1
      required:
        - bed_type
        - count
    HotelRate:
      type: object
      properties:
        offer_id:
          type: string
          description: >-
            Legacy rooms[].rates[] compatibility token. New integrations use the
            hotel-level `offers[].trip_item_token`; add that token to the trip
            exactly once.
          example: htl_2d67a7441c60e5de
        board_type:
          type: string
          example: RO
        board_name:
          type: string
          example: Room Only
        total_amount:
          type: number
          description: >-
            Deprecated: use `total_amount_money` instead. Price for the whole
            stay in `currency`, in MAJOR units at the currency’s own precision.
          example: 1818.4
          deprecated: true
        total_amount_display:
          type: string
          description: >-
            Deprecated: use `total_amount_money` instead. The rate total as a
            string ready to show: the ISO 4217 code, a space, then
            `total_amount` at the currency’s ISO digits, e.g. "EUR 606.13".
          example: EUR 606.13
          deprecated: true
        currency:
          type: string
          description: >-
            Deprecated: use `total_amount_money` instead. The currency of
            `total_amount`.
          example: EUR
          deprecated: true
        total_amount_money:
          allOf:
            - $ref: '#/components/schemas/MoneyValue'
            - description: Price for the whole stay.
        is_refundable:
          type: boolean
          example: false
        free_cancellation_until:
          type: string
          description: >-
            Last instant the stay can be cancelled at no charge. RFC 3339 with
            the supplier’s declared UTC offset. Absent when the supplier
            declared no timezone — the platform never invents an offset, so a
            deadline it cannot place on the clock is withheld rather than
            published ambiguously — and absent when the rate is non-refundable
            or the provider named no deadline.
          example: '2026-08-18T10:00:00+02:00'
        cancellation_schedule:
          type: array
          items:
            $ref: '#/components/schemas/CancellationStep'
          description: >-
            The full penalty ladder, chronological. Absent when the provider
            published none — which is not a statement that cancelling is free.
        taxes_breakdown:
          type: array
          items:
            $ref: '#/components/schemas/TaxLine'
          description: >-
            Taxes and fees on this rate. ALWAYS present, so an empty array means
            "no tax is known" and can be shown as such; check `included` per
            line before adding anything to `total_amount_money`.
        payment_types:
          type: array
          items:
            $ref: '#/components/schemas/HotelPaymentType'
          description: How the rate can be settled. Each value appears at most once.
          example:
            - pay_now
        promotions:
          type: array
          items:
            $ref: '#/components/schemas/HotelRatePromotion'
        booking_scope:
          type: string
          description: >-
            LEGACY-ONLY compatibility metadata. Current canonical `offers[]`
            never returns `booking_scope`; use `room_rates.length` to determine
            how many rooms an offer covers.
          example: room_bundle
        num_rooms:
          type: integer
          minimum: 1
          description: >-
            LEGACY-ONLY compatibility metadata. Current canonical `offers[]`
            represents room count through `room_rates.length` and never returns
            `num_rooms`.
          example: 2
        rooms:
          type: array
          items:
            $ref: '#/components/schemas/HotelBundleRoom'
          description: >-
            LEGACY-ONLY compatibility room details. Current canonical `offers[]`
            returns `room_rates[]` and never returns this `rooms` field.
      description: >-
        Deprecated compatibility shape under `rooms[].rates[]`. Current
        canonical `offers[]` does not return `booking_scope`, `num_rooms`, or
        `rooms`; use `room_rates[]` instead.
    MoneyValue:
      type: object
      properties:
        value:
          type: integer
          description: >-
            Integer amount in MINOR units at the ISO 4217 digits of `currency`:
            divide by 10 ** decimal_places to get the amount. Signed where the
            field says so (a price change delta).
          example: 41250
        currency:
          type: string
          pattern: ^[A-Z]{3}$
          description: ISO 4217 currency code.
          example: USD
        decimal_places:
          type: integer
          description: >-
            The ISO 4217 digits of `currency` (2 for USD/EUR, 0 for JPY/KRW, 3
            for BHD/KWD), and the scale of `value`.
          example: 2
        display:
          type: string
          description: >-
            The same figure as a string ready to show: the ISO 4217 code, a
            space, then the amount at `decimal_places`, e.g. "USD 412.50". Show
            this; compute with `value`.
          example: USD 412.50
      required:
        - value
        - currency
        - decimal_places
        - display
      description: >-
        Money as every new field carries it: `value` is an INTEGER in minor
        units at the ISO 4217 digits of `currency` (`decimal_places`), and
        `display` is the same figure ready to show. All four members are always
        present; a figure the platform does not know is absent, never `{value:
        0}`. New integrations read the `*_money` fields (and `value` on the
        objects that carry it); the two-scale rule described on `Money` applies
        only to the deprecated fields.
    CancellationStep:
      type: object
      properties:
        cancel_time:
          type: string
          description: >-
            Deadline after which this tier applies. RFC 3339 with the supplier’s
            declared UTC offset. Steps whose deadline has no declared timezone
            are omitted from the ladder — the platform never invents an offset —
            so a schedule can be shorter than the supplier’s own. Tiers are
            chronological, earliest first, so the first entry is the deadline
            that matters.
          example: '2026-08-18T10:00:00+02:00'
        amount:
          type: number
          description: >-
            Deprecated: use `amount_money` instead. Read `amount_money`,
            `percent` or `nights`, whichever this step carries. What the guest
            is charged on or after `cancel_time`: a sum in MAJOR units of
            `currency`, a percentage or a number of nights, as `type` says.
          example: 606.13
          deprecated: true
        currency:
          type: string
          description: 'Deprecated: use `amount_money` instead. The currency of `amount`.'
          example: EUR
          deprecated: true
        type:
          type: string
          description: >-
            How the charge is expressed — a sum ("amount", "flat_fee"; read
            `amount_money`), a percentage ("percent", "percentage"; read
            `percent`) or a number of nights ("nights"; read `nights`).
          example: amount
        display:
          type: string
          description: >-
            Deprecated: use `amount_money` instead. The same figure as a string
            ready to show: the ISO 4217 code, a space, then the amount, e.g.
            "USD 159.77". With decimal_places it is written at exactly that
            scale (value 1561500, JPY, decimal_places 2 is "JPY 15615.00");
            without, at the ISO digits of the currency. Show this; compute with
            the number. Absent when the figure is not money (a cancellation step
            expressed as a percent or a number of nights) or could not be read
            unambiguously.
          example: EUR 606.13
          deprecated: true
        amount_money:
          allOf:
            - $ref: '#/components/schemas/MoneyValue'
            - description: >-
                What the guest is charged on or after `cancel_time`, when this
                step is a sum. Absent on a percentage or nights step, and when
                the supplier named no currency.
        percent:
          type: number
          description: >-
            The charge as a percentage of the stay price, when this step is a
            percentage, on the 0–100 scale the supplier states it in: 50 is half
            the stay price, 100 the whole of it. Never a 0–1 fraction. Absent
            otherwise.
          example: 50
        nights:
          type: number
          description: >-
            The charge as a number of nights of the stay, when this step is
            expressed in nights. Absent otherwise.
          example: 1
    TaxLine:
      type: object
      properties:
        amount:
          type: number
          description: >-
            Deprecated: use `amount_money` instead. The tax in MAJOR units of
            `currency`.
          example: 164.49
          deprecated: true
        currency:
          type: string
          description: 'Deprecated: use `amount_money` instead. The currency of `amount`.'
          example: EUR
          deprecated: true
        amount_money:
          allOf:
            - $ref: '#/components/schemas/MoneyValue'
            - description: >-
                The tax. When the supplier named no currency for the line, it is
                the currency the rate is priced in.
        description:
          type: string
          description: The provider’s own wording for the tax. Free text, not a code.
          example: 19, VAT National taxes on accommodation
        included:
          type: boolean
          description: >-
            True when the amount is ALREADY inside `total_amount_money`; false
            when the guest pays it at the property on top. Getting this
            backwards misquotes the trip.
          example: true
        display:
          type: string
          description: >-
            Deprecated: use `amount_money` instead. The same figure as a string
            ready to show: the ISO 4217 code, a space, then the amount, e.g.
            "USD 159.77". With decimal_places it is written at exactly that
            scale (value 1561500, JPY, decimal_places 2 is "JPY 15615.00");
            without, at the ISO digits of the currency. Show this; compute with
            the number. Absent when the figure is not money (a cancellation step
            expressed as a percent or a number of nights) or could not be read
            unambiguously.
          example: EUR 164.49
          deprecated: true
    HotelPaymentType:
      type: string
      enum:
        - pay_now
        - pay_at_property
        - deposit
      description: >-
        How the rate can be settled. `pay_now` — paid when the booking is made.
        `pay_at_property` — paid to the hotel at the property. `deposit` — a
        deposit is taken.
    HotelOfferPromotion:
      type: object
      properties:
        name:
          type: string
        remark:
          type: string
      description: >-
        A provider promotion applied to the offer, as it is to be shown to the
        guest: its name and the remark that goes with it.
    HotelRoomRate:
      type: object
      properties:
        room_id:
          type: string
          description: References one entry in this hotel’s `rooms[]` metadata.
        occupancy_number:
          type: integer
          minimum: 1
          description: Stable one-based occupancy slot from the search request.
        occupancy:
          $ref: '#/components/schemas/Occupancy'
        room_name:
          type: string
        board_type:
          type: string
        board_name:
          type: string
        max_occupancy:
          type: integer
        taxes_and_fees:
          type: array
          items:
            $ref: '#/components/schemas/TaxLine'
        policies:
          type: array
          items:
            $ref: '#/components/schemas/HotelBundleRoomPolicy'
        is_refundable:
          type: boolean
        cancellation_policy:
          type: array
          items:
            $ref: '#/components/schemas/CancellationStep'
        free_cancellation_until:
          type: string
        payment_types:
          type: array
          items:
            $ref: '#/components/schemas/HotelPaymentType'
          description: How the rate can be settled. Each value appears at most once.
          example:
            - pay_now
        remarks:
          type: string
      required:
        - room_id
        - occupancy_number
        - occupancy
        - taxes_and_fees
        - is_refundable
      description: >-
        Display and policy details for one requested room occupancy. It carries
        no customer price allocation; the containing offer owns the
        authoritative whole-stay total.
    HotelRatePromotion:
      type: object
      properties:
        code:
          type: string
        name:
          type: string
        remark:
          type: string
    HotelBundleRoom:
      type: object
      properties:
        occupancy_number:
          type: integer
          minimum: 1
          description: Stable one-based room slot within this bundle.
          example: 1
        room_id:
          type: string
        mapped_room_id:
          type: integer
        room_name:
          type: string
          example: Superior Double
        rate_id:
          type: string
        occupancy:
          $ref: '#/components/schemas/Occupancy'
        board_type:
          type: string
          example: BB
        board_name:
          type: string
          example: Breakfast Included
        max_occupancy:
          type: integer
        taxes_and_fees:
          type: array
          items:
            $ref: '#/components/schemas/TaxLine'
        policies:
          type: array
          items:
            $ref: '#/components/schemas/HotelBundleRoomPolicy'
        is_refundable:
          type: boolean
        cancellation_policy:
          type: array
          items:
            $ref: '#/components/schemas/CancellationStep'
        free_cancellation_until:
          type: string
        payment_types:
          type: array
          items:
            $ref: '#/components/schemas/HotelPaymentType'
          description: How the rate can be settled. Each value appears at most once.
          example:
            - pay_now
        remarks:
          type: string
      required:
        - occupancy_number
        - occupancy
      description: >-
        One room of a hotel item — the single room a one-room item books, or one
        slot of a room-bundle rate — with the party it was priced for
        (`occupancy`) and its display and policy details. The containing item
        owns the customer-facing total; supplier net, suggested retail,
        commission and room-local supplier price figures are intentionally not
        part of this public shape.
    HotelBundleRoomPolicy:
      type: object
      properties:
        type:
          type: string
        description:
          type: string
        fee_amount:
          type: number
          description: >-
            Deprecated: use `fee_amount_money` instead. Customer policy fee in
            MAJOR units of `fee_currency`.
          deprecated: true
        fee_currency:
          type: string
          description: >-
            Deprecated: use `fee_amount_money` instead. The currency of
            `fee_amount`.
          deprecated: true
        fee_amount_money:
          allOf:
            - $ref: '#/components/schemas/MoneyValue'
            - description: >-
                Customer cancellation or policy fee, with exact minor units and
                currency precision.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
    BearerAuth:
      type: http
      scheme: bearer

````

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