{
  "openapi": "3.0.3",
  "x-release": {
    "version": "0.68",
    "x-changelog": [
      {
        "version": "0.68",
        "date": "2026-11-03",
        "changes": [
          {
            "type": "docs",
            "description": "Documented pay-later rates in payment_schedule: for partners enabled for pay-later, shop can return rates whose stay is paid at the property. For these, owed_at_check_in.base carries the room price, all taxes and fees are counted under owed_at_check_in, and owed_now is zero. Quote does not return this split yet, and booking pay-later rates is not supported yet: book returns rate_unavailable (409)."
          }
        ]
      },
      {
        "version": "0.67",
        "date": "2026-10-27",
        "changes": [
          {
            "type": "feat",
            "description": "Added optional emails field to hotel_content, listing the contact email addresses the property publishes. Absent when the property publishes none. Hotels only; vacation rentals do not carry lodging contact details."
          }
        ]
      },
      {
        "version": "0.66",
        "date": "2026-10-27",
        "changes": [
          {
            "type": "feat",
            "description": "Added an optional accessibility_features array to RoomInfo listing the room's accessibility features (e.g. wheelchair_accessible, roll_in_shower), using the new RoomAccessibilityFeature enum. The field is omitted when the room's accessibility is unknown; omission does not mean the room is inaccessible. New feature values may be added; clients should ignore unknown values."
          }
        ]
      },
      {
        "version": "0.65",
        "date": "2026-10-27",
        "changes": [
          {
            "type": "feat",
            "description": "Added an optional code to the hotel content chain and brand objects, carrying a stable Hopper identifier in lowercase snake case (e.g. marriott, jw_marriott). These are not GDS chain codes. The field is omitted when the chain or brand is unknown."
          }
        ]
      },
      {
        "version": "0.64",
        "date": "2026-10-26",
        "changes": [
          {
            "type": "feat",
            "description": "Added an optional smoking_policy to RoomInfo with smoking, non_smoking, and smoking_and_non_smoking values. The field is omitted when the smoking policy is unknown; omission does not mean the room is non-smoking."
          }
        ]
      },
      {
        "version": "0.63",
        "date": "2026-10-16",
        "changes": [
          {
            "type": "feat",
            "description": "Added an optional views array to RoomInfo listing the views available from the room (e.g. ocean, city, garden), using the new RoomView enum."
          }
        ]
      },
      {
        "version": "0.62",
        "date": "2026-10-08",
        "changes": [
          {
            "type": "feat",
            "description": "Added payment_declined to the book error_code enum, returned with 422 when the payment for a booking is declined. Previously these bookings failed with 500 internal_server_error. No reservation is created and no charge is made; the book_token cannot be reused, so call /quote again and book with corrected payment details or a different payment method."
          }
        ]
      },
      {
        "version": "0.61",
        "date": "2026-10-01",
        "changes": [
          {
            "type": "docs",
            "description": "The catalog endpoint is listed once, under the catalog tag, instead of appearing under both content and catalog."
          }
        ]
      },
      {
        "version": "0.60",
        "date": "2026-09-22",
        "changes": [
          {
            "type": "feat",
            "description": "Loyalty wording and the quote-side transmission field are revised following review. On the rate, eligibility now reports whether the supplier has indicated the rate plan may participate in the property's loyalty program, rather than asserting that the rate earns points: we relay a supplier claim and do not guarantee an outcome. On the quote, delivery_method is renamed loyalty_transmission and says whether a booking with this rate can transmit the guest's loyalty number to the supplier. Its values change from through_api and at_check_in to eligible, ineligible and unknown, separating the case where we know a booking path cannot carry a loyalty number from the case where we simply do not know; for both of the latter the guest should verify at check-in that their loyalty number has been added. Eligibility and transmission remain independent, and loyalty_transmission remains advisory: primary_guest.hotel_loyalty is always accepted on the book request whatever it says. Note that eligibility deliberately has no ineligible value, unlike loyalty_transmission — a supplier that says nothing about a rate is not saying the rate cannot participate, so that absence is reported as unknown and must never be presented to a guest as \"no points on this rate\"."
          }
        ]
      },
      {
        "version": "0.59",
        "date": "2026-09-17",
        "changes": [
          {
            "type": "feat",
            "description": "Hotel loyalty, expanded. The shop product now carries a loyalty object in place of the bare program code: eligibility is eligible when the rate earns points, and unknown when we have no claim either way — unknown is never a statement that the rate is ineligible and must not be presented as one, and program_code is present whenever eligibility is eligible. The quote response carries the same object with an added delivery_method, which says how a membership reaches the guest's account for this booking: through_api when we can transmit a membership number with the booking, at_check_in when we cannot and the guest presents their membership at the property. Eligibility and delivery are independent: a rate can earn points with no way for us to transmit a number, and a number is often transmittable for a rate we have no eligibility claim about. delivery_method is advisory and never gates the book request, which always accepts primary_guest.hotel_loyalty. That field is now a list, so a guest's memberships in several programs can be sent and we forward the one matching the rate being booked. The book response gains booking_warnings, a list of non-fatal issues that never mean the booking failed: loyalty_not_applied reports that a supplied membership was rejected, with a reason of not_supported_for_rate, id_not_found, invalid_format or unspecified. It is only emitted where the outcome is known — pass-through is best effort and most supply sources never confirm either way, so the absence of a warning means we have nothing to report, not that the stay was credited. New warning types may be added, so treat an unrecognised type as one you do not yet handle."
          },
          {
            "type": "docs",
            "description": "loyalty_program_code no longer lists the individual programs. Codes are added as more programs are supported, so treat an unrecognised code as a program you do not yet know about rather than as invalid."
          }
        ]
      },
      {
        "version": "0.58",
        "date": "2026-09-13",
        "changes": [
          {
            "type": "feat",
            "description": "Hotel loyalty rates. Rates that earn loyalty points now carry loyalty_program_code on product, a 3-character program code (e.g. MAR, HIL, WYN); its absence means the rate makes no loyalty claim and must not be presented as loyalty ineligible. The quote response carries the same loyalty_program_code for the quoted rate, so the program is known at the point the rate is confirmed. The primary guest on a book request accepts an optional hotel_loyalty membership (program_code and loyalty_number), forwarded so the stay can be credited. Pass-through is best effort: where a rejected membership can be dropped and the booking completed without it the reservation is still confirmed, and a membership is never required to book a loyalty-eligible rate. Added loyalty_number_failure to the book error_code enum for the cases where the booking cannot be completed without the membership."
          }
        ]
      },
      {
        "version": "0.57",
        "date": "2026-09-01",
        "changes": [
          {
            "type": "feat",
            "description": "Opaque tokens are now bound to the application that obtained them. A funnel must be completed by the application that started it: use the API key of that same application for shop, quote and book, and for precancel and cancel. Presenting a token obtained by another application is rejected with 403 token_application_mismatch, added to the quote, book and cancel error_code enums. A request whose calling application cannot be determined is rejected with the same error."
          }
        ]
      },
      {
        "version": "0.56",
        "date": "2026-08-13",
        "changes": [
          {
            "type": "feat",
            "description": "Geo query response gains a lodgings array: one entry per matching lodging, in result order, carrying the straight-line distance (value plus unit, returned in meters) from the search's resolved reference location when known. lodging_ids is deprecated in favor of lodgings, which has the same membership and order."
          }
        ]
      },
      {
        "version": "0.55",
        "date": "2026-08-11",
        "changes": [
          {
            "type": "feat",
            "description": "Added hotel support to geo endpoint, combining hotel and vacation_rental in one place_id request remains invalid_input."
          }
        ]
      },
      {
        "version": "0.54",
        "date": "2026-07-15",
        "changes": [
          {
            "type": "feat",
            "description": "Cancel endpoint now returns 409 cannot_be_cancelled (instead of an opaque 500) when a reservation cannot be cancelled; the description conveys the specific reason (requires_agent_cancellation, past_cancellation_deadline, cancellation_not_allowed). Added cannot_be_cancelled to the cancel error_code enum."
          }
        ]
      },
      {
        "version": "0.53",
        "date": "2026-06-15",
        "changes": [
          {
            "type": "fix",
            "description": "payment_schedule.owed_at_check_in amounts may be returned in the property's local currency, which can differ from owed_now. Read the currency on each amount."
          }
        ]
      },
      {
        "version": "0.52",
        "date": "2026-06-15",
        "changes": [
          {
            "type": "feat",
            "description": "Added rollaway_or_extra_beds_available to the RoomAmenityType enum."
          }
        ]
      },
      {
        "version": "0.51",
        "date": "2026-05-12",
        "changes": [
          {
            "type": "feat",
            "description": "Limited catalog endpoint access to authorized tenants. Unauthorized tenants receive an unauthorized error response."
          }
        ]
      },
      {
        "version": "0.50",
        "date": "2026-05-12",
        "changes": [
          {
            "type": "fix",
            "description": "Made session_token optional in riskified_fraud_prevention schema. Only customer_ip_address is now required."
          }
        ]
      },
      {
        "version": "0.49",
        "date": "2026-05-07",
        "changes": [
          {
            "type": "fix",
            "description": "Added missing type discriminator to cancellation_info example in order_status_cancelled."
          }
        ]
      },
      {
        "version": "0.48",
        "date": "2026-05-04",
        "changes": [
          {
            "type": "feat",
            "description": "Add explicit discriminators to oneOfs"
          }
        ]
      },
      {
        "version": "0.47",
        "date": "2026-04-30",
        "changes": [
          {
            "type": "breaking",
            "description": "Geo endpoint only: changed lodging_type on geo_request_initial from a string enum (hotels/vacation_rentals/all) to an array of shared LodgingType values (hotel/vacation_rental). Extracted shared LodgingType enum used by both geo and content endpoints."
          },
          {
            "type": "feat",
            "description": "Added GeoFilters and AmenityFilter schemas to geo_request_initial for filtering geo search results by property attributes (occupancy, bedrooms, amenities, ratings, price, availability dates)."
          }
        ]
      },
      {
        "version": "0.46",
        "date": "2026-04-28",
        "changes": [
          {
            "type": "feat",
            "description": "Added optional locale field to the content request to control the language tag of text content in the response. Defaults to en-US when not provided."
          }
        ]
      },
      {
        "version": "0.45",
        "date": "2026-04-21",
        "changes": [
          {
            "type": "feat",
            "description": "Added order_already_cancelled error code to PreCancel endpoint to handle already-cancelled reservations without triggering quote orchestrator calls."
          }
        ]
      },
      {
        "version": "0.44",
        "date": "2026-04-20",
        "changes": [
          {
            "type": "feat",
            "description": "Added homes (vacation rentals) support to geo endpoint, enabling combined hotel and homes results with unified cursor-based pagination."
          }
        ]
      },
      {
        "version": "0.43",
        "date": "2026-04-10",
        "changes": [
          {
            "type": "feat",
            "description": "Added unauthorized error code to all failure responses (Shop, Quote, Book, GetOrder, PreCancel, Cancel, ShopFeed, Content, Catalog, AvailabilityCalendar, Events, Geo) for consistent authorization error handling"
          },
          {
            "type": "feat",
            "description": "Added lodging_type field to geo_request_initial."
          }
        ]
      },
      {
        "version": "0.42",
        "date": "2026-04-06",
        "changes": [
          {
            "type": "feat",
            "description": "Added fraud_prevention field to book request for partner-managed fraud prevention (Riskified)."
          }
        ]
      },
      {
        "version": "0.41",
        "date": "2026-03-23",
        "changes": [
          {
            "type": "feat",
            "description": "Add validation to prevent book_token reuse with mismatched booking details"
          }
        ]
      },
      {
        "version": "0.40",
        "date": "2026-03-20",
        "changes": [
          {
            "type": "feat",
            "description": "Added experience to the Product type. Experience is a free-form field describing the experience a user can expect for the given rate (detailed meal plan, bath type, view, etc.)"
          }
        ]
      },
      {
        "version": "0.39",
        "date": "2026-03-19",
        "changes": [
          {
            "type": "feat",
            "description": "Added Reviews endpoint with review scores, category breakdowns, and guest reviews."
          },
          {
            "type": "feat",
            "description": "Added invalid_input error code to Reviews failure response."
          },
          {
            "type": "feat",
            "description": "Made lodgings field required in Reviews response."
          }
        ]
      },
      {
        "version": "0.38",
        "date": "2026-03-19",
        "changes": [
          {
            "type": "docs",
            "description": "Clarify book_token uniqueness and proper usage across quote/book workflow to prevent duplicate bookings"
          }
        ]
      },
      {
        "version": "0.37",
        "date": "2026-03-17",
        "changes": [
          {
            "type": "docs",
            "description": "Update API description to clarify forward compatibility expectations"
          }
        ]
      },
      {
        "version": "0.36",
        "date": "2026-03-13",
        "changes": [
          {
            "type": "feat",
            "description": "Added Reviews endpoint."
          }
        ]
      },
      {
        "version": "0.35",
        "date": "2026-03-11",
        "changes": [
          {
            "type": "feat",
            "description": "Added timezone to LodgingContent."
          }
        ]
      },
      {
        "version": "0.34",
        "date": "2026-03-05",
        "changes": [
          {
            "type": "docs",
            "description": "Added description to GeoLocation."
          }
        ]
      },
      {
        "version": "0.33",
        "date": "2026-01-28",
        "changes": [
          {
            "type": "feat",
            "description": "Vended initial_price for hotels in shop and quote responses."
          }
        ]
      },
      {
        "version": "0.32",
        "date": "2026-01-26",
        "changes": [
          {
            "type": "feat",
            "description": "Added Merchandising object to RoomRate in shop and quote responses."
          }
        ]
      },
      {
        "version": "0.31",
        "date": "2026-01-22",
        "changes": [
          {
            "type": "feat",
            "description": "Added sourceMappings field to LodgingContent."
          },
          {
            "type": "feat",
            "description": "Added new BedType enum values (Crib, Rollaway, Trundle)."
          }
        ]
      },
      {
        "version": "0.30",
        "date": "2025-12-18",
        "changes": [
          {
            "type": "fix",
            "description": "Made guest_refund_amount optional in vacation rental cancellation info."
          }
        ]
      },
      {
        "version": "0.29",
        "date": "2025-11-26",
        "changes": [
          {
            "type": "feat",
            "description": "Added Media to RoomInfo."
          },
          {
            "type": "feat",
            "description": "Added Video to Media."
          }
        ]
      },
      {
        "version": "0.28",
        "date": "2025-11-12",
        "changes": [
          {
            "type": "feat",
            "description": "Added Unknown to CardType."
          }
        ]
      },
      {
        "version": "0.27",
        "date": "2025-10-22",
        "changes": [
          {
            "type": "feat",
            "description": "Added ClientClosedRequestError."
          }
        ]
      },
      {
        "version": "0.26",
        "date": "2025-10-15",
        "changes": [
          {
            "type": "breaking",
            "description": "Rerouted content endpoint to PUT /api/lodging_content/v1/content/."
          }
        ]
      },
      {
        "version": "0.25",
        "date": "2025-10-10",
        "changes": [
          {
            "type": "breaking",
            "description": "Rerouted content endpoint to PUT /api/content/v1/content/."
          },
          {
            "type": "breaking",
            "description": "Limited content endpoint access to authorized tenants."
          }
        ]
      },
      {
        "version": "0.24",
        "date": "2025-10-09",
        "changes": [
          {
            "type": "feat",
            "description": "Added initial_price to the quote response."
          }
        ]
      },
      {
        "version": "0.23",
        "date": "2025-10-08",
        "changes": [
          {
            "type": "breaking",
            "description": "Removed recommended_sell from payment schedule."
          }
        ]
      },
      {
        "version": "0.22",
        "date": "2025-10-07",
        "changes": [
          {
            "type": "feat",
            "description": "Added initial_price to the shop response."
          },
          {
            "type": "feat",
            "description": "Duplicated recommended_sell at rate level to simplify integration."
          }
        ]
      },
      {
        "version": "0.21",
        "date": "2025-09-17",
        "changes": [
          {
            "type": "feat",
            "description": "Added payment clauses to the shop response."
          }
        ]
      },
      {
        "version": "0.20",
        "date": "2025-09-16",
        "changes": [
          {
            "type": "feat",
            "description": "Added name and description to tax and fee types."
          }
        ]
      },
      {
        "version": "0.19",
        "date": "2025-09-16",
        "changes": [
          {
            "type": "feat",
            "description": "Added unavailability reasons to the shop response."
          }
        ]
      },
      {
        "version": "0.18",
        "date": "2025-09-12",
        "changes": [
          {
            "type": "feat",
            "description": "Added content endpoint PUT /api/lodging/v1/content/."
          }
        ]
      },
      {
        "version": "0.17",
        "date": "2025-09-11",
        "changes": [
          {
            "type": "feat",
            "description": "Added availability calendar endpoint PUT /api/lodging/v1/calendars/availability."
          }
        ]
      },
      {
        "version": "0.16",
        "date": "2025-09-10",
        "changes": [
          {
            "type": "breaking",
            "description": "Removed unknown order status."
          }
        ]
      },
      {
        "version": "0.15",
        "date": "2025-09-04",
        "changes": [
          {
            "type": "feat",
            "description": "Added field for included commission."
          }
        ]
      },
      {
        "version": "0.14",
        "date": "2025-09-03",
        "changes": [
          {
            "type": "feat",
            "description": "Added corporate to the RateOption enum in the shop request."
          }
        ]
      },
      {
        "version": "0.12",
        "date": "2025-08-26",
        "changes": [
          {
            "type": "feat",
            "description": "Added sales_environment parameter to shop request."
          }
        ]
      },
      {
        "version": "0.11",
        "date": "2025-08-26",
        "changes": [
          {
            "type": "feat",
            "description": "Added cleaning_fee and pet_fee fee types in the shop response."
          }
        ]
      },
      {
        "version": "0.13",
        "date": "2025-08-22",
        "changes": [
          {
            "type": "feat",
            "description": "Added pets to occupancy in the shop request."
          }
        ]
      },
      {
        "version": "0.10",
        "date": "2025-08-13",
        "changes": [
          {
            "type": "feat",
            "description": "Added ShopFeed endpoint."
          }
        ]
      },
      {
        "version": "0.9",
        "date": "2025-06-05",
        "changes": [
          {
            "type": "breaking",
            "description": "Removed date of birth from primary guest in book request."
          },
          {
            "type": "fix",
            "description": "Enforced request IDs to be UUIDs."
          }
        ]
      },
      {
        "version": "0.8",
        "date": "2025-06-03",
        "changes": [
          {
            "type": "fix",
            "description": "Limited requested currency to USD in shop request."
          },
          {
            "type": "fix",
            "description": "Added constraints to occupancy in shop request."
          },
          {
            "type": "fix",
            "description": "Added constraints on check-in and check-out dates in shop request."
          },
          {
            "type": "fix",
            "description": "Added constraints on primary guest in book request."
          }
        ]
      },
      {
        "version": "0.7",
        "date": "2025-05-26",
        "changes": [
          {
            "type": "fix",
            "description": "Updated endpoint failure error codes."
          }
        ]
      },
      {
        "version": "0.6",
        "date": "2025-05-21",
        "changes": [
          {
            "type": "breaking",
            "description": "Removed cancelledBy in cancelled order status."
          }
        ]
      },
      {
        "version": "0.5",
        "date": "2025-05-08",
        "changes": [
          {
            "type": "feat",
            "description": "Added partner_reference_id to book requests."
          }
        ]
      },
      {
        "version": "0.4",
        "date": "2025-05-06",
        "changes": [
          {
            "type": "breaking",
            "description": "Removed PaymentScheduleTotal from PaymentSchedule."
          }
        ]
      },
      {
        "version": "0.3",
        "date": "2025-04-16",
        "changes": [
          {
            "type": "breaking",
            "description": "Changed Quote and PreCancel from POST to PUT because they do not change state."
          },
          {
            "type": "breaking",
            "description": "Changed order_status oneOf discriminator from order_status to type."
          }
        ]
      },
      {
        "version": "0.1",
        "date": "2025-04-13",
        "changes": [
          {
            "type": "feat",
            "description": "Added request_id to all path requests to aid incident response and debugging."
          },
          {
            "type": "breaking",
            "description": "Restructured shop response to group room rates by lodging_id."
          },
          {
            "type": "feat",
            "description": "Changed book response model to support multi-room bookings."
          },
          {
            "type": "feat",
            "description": "Added structure to orders order_state to include additional cancellation info."
          }
        ]
      },
      {
        "version": "0.2",
        "date": "2025-04-02",
        "changes": [
          {
            "type": "breaking",
            "description": "Changed book response to only return order_id and response_id."
          },
          {
            "type": "feat",
            "description": "Added date_of_birth to book request primary guest."
          }
        ]
      }
    ]
  },
  "info": {
    "title": "HTS Lodging API",
    "description": "REST API for lodging shopping, availability, and booking. Supports both hotels and vacation rentals with a consistent workflow for searching rates, getting quotes, and completing reservations.\n\n## Getting Started\n\nThe API is organized around a few main workflows. The core **booking flow** is:\n\n1. **Shop** (`PUT /api/lodging/v1/shop`) — Request room rates for one or more lodgings for given dates and occupancy. Returns available rates with `quote_token` and `valid_until` per rate.\n2. **Quote** (`PUT /api/lodging/v1/quote`) — Send the selected rate (quote token) to get a detailed quote: final pricing, payment schedule, cancellation policy, and a **book token**.\n3. **Book** (`POST /api/lodging/v1/book`) — Submit the book token plus primary guest details to confirm the reservation. Returns order details and an **order ID**.\n\nAfter booking you can:\n\n- **Get order** (`PUT /api/lodging/v1/getOrder`) — Retrieve full order details by order ID.\n- **Pre-cancel** (`PUT /api/lodging/v1/preCancel`) — Get a cancellation quote and a **cancellation token**.\n- **Cancel** (`POST /api/lodging/v1/cancel`) — Complete cancellation using the cancellation token.\n\nTokens (quote token, book token, cancellation token) are short-lived and tie each step to the previous one, so the endpoints connect in a clear sequence.\n\n## Other Capabilities\n\n- **Content** — Lodging details (property info, amenities, rooms, media) via `PUT /api/lodging/v1/content` or under `/api/lodging_content/v1/content`.\n- **Catalog** — Stream of lodging changes (added/updated/delisted) for sync use cases.\n- **Availability calendar** — Per-day availability for a set of lodgings over a date range.\n- **Events** — Notification events for reservation and transaction changes (e.g. cancellations, transaction appends).\n- **Geo** — Find lodgings by geographic area (bounding box, circle, or polygon).\n\nAll read/query operations use **PUT** with a JSON body; state-changing operations (book, cancel) use **POST**. Authentication is via API key in the `HTS-API-KEY` header.\n\n## Forward Compatibility\n\nThis API may add new enum values, new `oneOf` variants, and new optional fields to existing\nresponse schemas at any time. These additions are **non-breaking changes**.\n\nClients **must** handle unrecognized enum values and `oneOf` discriminator values gracefully\n(e.g. log a warning and skip) rather than failing with a hard decoding error. Designing for\nunknown values ensures your integration is resilient to API evolution.\n\nFor example, if you use [OpenAPI Generator](https://openapi-generator.tech), enable the\n`enumUnknownDefaultCase` option to generate a fallback case for unknown enum values.\n\n<details>\n<summary><strong>Changelog (latest: 0.68 — 2026-11-03)</strong></summary>\n\n### 0.68 (2026-11-03)\n- **docs**: Documented pay-later rates in payment_schedule: for partners enabled for pay-later, shop can return rates whose stay is paid at the property. For these, owed_at_check_in.base carries the room price, all taxes and fees are counted under owed_at_check_in, and owed_now is zero. Quote does not return this split yet, and booking pay-later rates is not supported yet: book returns rate_unavailable (409).\n\n### 0.67 (2026-10-27)\n- **feat**: Added optional emails field to hotel_content, listing the contact email addresses the property publishes. Absent when the property publishes none. Hotels only; vacation rentals do not carry lodging contact details.\n\n### 0.66 (2026-10-27)\n- **feat**: Added an optional accessibility_features array to RoomInfo listing the room's accessibility features (e.g. wheelchair_accessible, roll_in_shower), using the new RoomAccessibilityFeature enum. The field is omitted when the room's accessibility is unknown; omission does not mean the room is inaccessible. New feature values may be added; clients should ignore unknown values.\n\n### 0.65 (2026-10-27)\n- **feat**: Added an optional code to the hotel content chain and brand objects, carrying a stable Hopper identifier in lowercase snake case (e.g. marriott, jw_marriott). These are not GDS chain codes. The field is omitted when the chain or brand is unknown.\n\n### 0.64 (2026-10-26)\n- **feat**: Added an optional smoking_policy to RoomInfo with smoking, non_smoking, and smoking_and_non_smoking values. The field is omitted when the smoking policy is unknown; omission does not mean the room is non-smoking.\n\n### 0.63 (2026-10-16)\n- **feat**: Added an optional views array to RoomInfo listing the views available from the room (e.g. ocean, city, garden), using the new RoomView enum.\n\n### 0.62 (2026-10-08)\n- **feat**: Added payment_declined to the book error_code enum, returned with 422 when the payment for a booking is declined. Previously these bookings failed with 500 internal_server_error. No reservation is created and no charge is made; the book_token cannot be reused, so call /quote again and book with corrected payment details or a different payment method.\n\n### 0.61 (2026-10-01)\n- **docs**: The catalog endpoint is listed once, under the catalog tag, instead of appearing under both content and catalog.\n\n### 0.60 (2026-09-22)\n- **feat**: Loyalty wording and the quote-side transmission field are revised following review. On the rate, eligibility now reports whether the supplier has indicated the rate plan may participate in the property's loyalty program, rather than asserting that the rate earns points: we relay a supplier claim and do not guarantee an outcome. On the quote, delivery_method is renamed loyalty_transmission and says whether a booking with this rate can transmit the guest's loyalty number to the supplier. Its values change from through_api and at_check_in to eligible, ineligible and unknown, separating the case where we know a booking path cannot carry a loyalty number from the case where we simply do not know; for both of the latter the guest should verify at check-in that their loyalty number has been added. Eligibility and transmission remain independent, and loyalty_transmission remains advisory: primary_guest.hotel_loyalty is always accepted on the book request whatever it says. Note that eligibility deliberately has no ineligible value, unlike loyalty_transmission — a supplier that says nothing about a rate is not saying the rate cannot participate, so that absence is reported as unknown and must never be presented to a guest as \"no points on this rate\".\n\n### 0.59 (2026-09-17)\n- **feat**: Hotel loyalty, expanded. The shop product now carries a loyalty object in place of the bare program code: eligibility is eligible when the rate earns points, and unknown when we have no claim either way — unknown is never a statement that the rate is ineligible and must not be presented as one, and program_code is present whenever eligibility is eligible. The quote response carries the same object with an added delivery_method, which says how a membership reaches the guest's account for this booking: through_api when we can transmit a membership number with the booking, at_check_in when we cannot and the guest presents their membership at the property. Eligibility and delivery are independent: a rate can earn points with no way for us to transmit a number, and a number is often transmittable for a rate we have no eligibility claim about. delivery_method is advisory and never gates the book request, which always accepts primary_guest.hotel_loyalty. That field is now a list, so a guest's memberships in several programs can be sent and we forward the one matching the rate being booked. The book response gains booking_warnings, a list of non-fatal issues that never mean the booking failed: loyalty_not_applied reports that a supplied membership was rejected, with a reason of not_supported_for_rate, id_not_found, invalid_format or unspecified. It is only emitted where the outcome is known — pass-through is best effort and most supply sources never confirm either way, so the absence of a warning means we have nothing to report, not that the stay was credited. New warning types may be added, so treat an unrecognised type as one you do not yet handle.\n- **docs**: loyalty_program_code no longer lists the individual programs. Codes are added as more programs are supported, so treat an unrecognised code as a program you do not yet know about rather than as invalid.\n\n### 0.58 (2026-09-13)\n- **feat**: Hotel loyalty rates. Rates that earn loyalty points now carry loyalty_program_code on product, a 3-character program code (e.g. MAR, HIL, WYN); its absence means the rate makes no loyalty claim and must not be presented as loyalty ineligible. The quote response carries the same loyalty_program_code for the quoted rate, so the program is known at the point the rate is confirmed. The primary guest on a book request accepts an optional hotel_loyalty membership (program_code and loyalty_number), forwarded so the stay can be credited. Pass-through is best effort: where a rejected membership can be dropped and the booking completed without it the reservation is still confirmed, and a membership is never required to book a loyalty-eligible rate. Added loyalty_number_failure to the book error_code enum for the cases where the booking cannot be completed without the membership.\n\n### 0.57 (2026-09-01)\n- **feat**: Opaque tokens are now bound to the application that obtained them. A funnel must be completed by the application that started it: use the API key of that same application for shop, quote and book, and for precancel and cancel. Presenting a token obtained by another application is rejected with 403 token_application_mismatch, added to the quote, book and cancel error_code enums. A request whose calling application cannot be determined is rejected with the same error.\n\n### 0.56 (2026-08-13)\n- **feat**: Geo query response gains a lodgings array: one entry per matching lodging, in result order, carrying the straight-line distance (value plus unit, returned in meters) from the search's resolved reference location when known. lodging_ids is deprecated in favor of lodgings, which has the same membership and order.\n\n### 0.55 (2026-08-11)\n- **feat**: Added hotel support to geo endpoint, combining hotel and vacation_rental in one place_id request remains invalid_input.\n\n### 0.54 (2026-07-15)\n- **feat**: Cancel endpoint now returns 409 cannot_be_cancelled (instead of an opaque 500) when a reservation cannot be cancelled; the description conveys the specific reason (requires_agent_cancellation, past_cancellation_deadline, cancellation_not_allowed). Added cannot_be_cancelled to the cancel error_code enum.\n\n### 0.53 (2026-06-15)\n- **fix**: payment_schedule.owed_at_check_in amounts may be returned in the property's local currency, which can differ from owed_now. Read the currency on each amount.\n\n### 0.52 (2026-06-15)\n- **feat**: Added rollaway_or_extra_beds_available to the RoomAmenityType enum.\n\n### 0.51 (2026-05-12)\n- **feat**: Limited catalog endpoint access to authorized tenants. Unauthorized tenants receive an unauthorized error response.\n\n### 0.50 (2026-05-12)\n- **fix**: Made session_token optional in riskified_fraud_prevention schema. Only customer_ip_address is now required.\n\n### 0.49 (2026-05-07)\n- **fix**: Added missing type discriminator to cancellation_info example in order_status_cancelled.\n\n### 0.48 (2026-05-04)\n- **feat**: Add explicit discriminators to oneOfs\n\n### 0.47 (2026-04-30)\n- **breaking**: Geo endpoint only: changed lodging_type on geo_request_initial from a string enum (hotels/vacation_rentals/all) to an array of shared LodgingType values (hotel/vacation_rental). Extracted shared LodgingType enum used by both geo and content endpoints.\n- **feat**: Added GeoFilters and AmenityFilter schemas to geo_request_initial for filtering geo search results by property attributes (occupancy, bedrooms, amenities, ratings, price, availability dates).\n\n### 0.46 (2026-04-28)\n- **feat**: Added optional locale field to the content request to control the language tag of text content in the response. Defaults to en-US when not provided.\n\n### 0.45 (2026-04-21)\n- **feat**: Added order_already_cancelled error code to PreCancel endpoint to handle already-cancelled reservations without triggering quote orchestrator calls.\n\n### 0.44 (2026-04-20)\n- **feat**: Added homes (vacation rentals) support to geo endpoint, enabling combined hotel and homes results with unified cursor-based pagination.\n\n### 0.43 (2026-04-10)\n- **feat**: Added unauthorized error code to all failure responses (Shop, Quote, Book, GetOrder, PreCancel, Cancel, ShopFeed, Content, Catalog, AvailabilityCalendar, Events, Geo) for consistent authorization error handling\n- **feat**: Added lodging_type field to geo_request_initial.\n\n### 0.42 (2026-04-06)\n- **feat**: Added fraud_prevention field to book request for partner-managed fraud prevention (Riskified).\n\n### 0.41 (2026-03-23)\n- **feat**: Add validation to prevent book_token reuse with mismatched booking details\n\n### 0.40 (2026-03-20)\n- **feat**: Added experience to the Product type. Experience is a free-form field describing the experience a user can expect for the given rate (detailed meal plan, bath type, view, etc.)\n\n### 0.39 (2026-03-19)\n- **feat**: Added Reviews endpoint with review scores, category breakdowns, and guest reviews.\n- **feat**: Added invalid_input error code to Reviews failure response.\n- **feat**: Made lodgings field required in Reviews response.\n\n### 0.38 (2026-03-19)\n- **docs**: Clarify book_token uniqueness and proper usage across quote/book workflow to prevent duplicate bookings\n\n### 0.37 (2026-03-17)\n- **docs**: Update API description to clarify forward compatibility expectations\n\n### 0.36 (2026-03-13)\n- **feat**: Added Reviews endpoint.\n\n### 0.35 (2026-03-11)\n- **feat**: Added timezone to LodgingContent.\n\n### 0.34 (2026-03-05)\n- **docs**: Added description to GeoLocation.\n\n### 0.33 (2026-01-28)\n- **feat**: Vended initial_price for hotels in shop and quote responses.\n\n### 0.32 (2026-01-26)\n- **feat**: Added Merchandising object to RoomRate in shop and quote responses.\n\n### 0.31 (2026-01-22)\n- **feat**: Added sourceMappings field to LodgingContent.\n- **feat**: Added new BedType enum values (Crib, Rollaway, Trundle).\n\n### 0.30 (2025-12-18)\n- **fix**: Made guest_refund_amount optional in vacation rental cancellation info.\n\n### 0.29 (2025-11-26)\n- **feat**: Added Media to RoomInfo.\n- **feat**: Added Video to Media.\n\n### 0.28 (2025-11-12)\n- **feat**: Added Unknown to CardType.\n\n### 0.27 (2025-10-22)\n- **feat**: Added ClientClosedRequestError.\n\n### 0.26 (2025-10-15)\n- **breaking**: Rerouted content endpoint to PUT /api/lodging_content/v1/content/.\n\n### 0.25 (2025-10-10)\n- **breaking**: Rerouted content endpoint to PUT /api/content/v1/content/.\n- **breaking**: Limited content endpoint access to authorized tenants.\n\n### 0.24 (2025-10-09)\n- **feat**: Added initial_price to the quote response.\n\n### 0.23 (2025-10-08)\n- **breaking**: Removed recommended_sell from payment schedule.\n\n### 0.22 (2025-10-07)\n- **feat**: Added initial_price to the shop response.\n- **feat**: Duplicated recommended_sell at rate level to simplify integration.\n\n### 0.21 (2025-09-17)\n- **feat**: Added payment clauses to the shop response.\n\n### 0.20 (2025-09-16)\n- **feat**: Added name and description to tax and fee types.\n\n### 0.19 (2025-09-16)\n- **feat**: Added unavailability reasons to the shop response.\n\n### 0.18 (2025-09-12)\n- **feat**: Added content endpoint PUT /api/lodging/v1/content/.\n\n### 0.17 (2025-09-11)\n- **feat**: Added availability calendar endpoint PUT /api/lodging/v1/calendars/availability.\n\n### 0.16 (2025-09-10)\n- **breaking**: Removed unknown order status.\n\n### 0.15 (2025-09-04)\n- **feat**: Added field for included commission.\n\n### 0.14 (2025-09-03)\n- **feat**: Added corporate to the RateOption enum in the shop request.\n\n### 0.12 (2025-08-26)\n- **feat**: Added sales_environment parameter to shop request.\n\n### 0.11 (2025-08-26)\n- **feat**: Added cleaning_fee and pet_fee fee types in the shop response.\n\n### 0.13 (2025-08-22)\n- **feat**: Added pets to occupancy in the shop request.\n\n### 0.10 (2025-08-13)\n- **feat**: Added ShopFeed endpoint.\n\n### 0.9 (2025-06-05)\n- **breaking**: Removed date of birth from primary guest in book request.\n- **fix**: Enforced request IDs to be UUIDs.\n\n### 0.8 (2025-06-03)\n- **fix**: Limited requested currency to USD in shop request.\n- **fix**: Added constraints to occupancy in shop request.\n- **fix**: Added constraints on check-in and check-out dates in shop request.\n- **fix**: Added constraints on primary guest in book request.\n\n### 0.7 (2025-05-26)\n- **fix**: Updated endpoint failure error codes.\n\n### 0.6 (2025-05-21)\n- **breaking**: Removed cancelledBy in cancelled order status.\n\n### 0.5 (2025-05-08)\n- **feat**: Added partner_reference_id to book requests.\n\n### 0.4 (2025-05-06)\n- **breaking**: Removed PaymentScheduleTotal from PaymentSchedule.\n\n### 0.3 (2025-04-16)\n- **breaking**: Changed Quote and PreCancel from POST to PUT because they do not change state.\n- **breaking**: Changed order_status oneOf discriminator from order_status to type.\n\n### 0.1 (2025-04-13)\n- **feat**: Added request_id to all path requests to aid incident response and debugging.\n- **breaking**: Restructured shop response to group room rates by lodging_id.\n- **feat**: Changed book response model to support multi-room bookings.\n- **feat**: Added structure to orders order_state to include additional cancellation info.\n\n### 0.2 (2025-04-02)\n- **breaking**: Changed book response to only return order_id and response_id.\n- **feat**: Added date_of_birth to book request primary guest.\n\n</details>",
    "version": "0.68",
    "x-changelog": [
      {
        "version": "0.68",
        "date": "2026-11-03",
        "changes": [
          {
            "type": "docs",
            "description": "Documented pay-later rates in payment_schedule: for partners enabled for pay-later, shop can return rates whose stay is paid at the property. For these, owed_at_check_in.base carries the room price, all taxes and fees are counted under owed_at_check_in, and owed_now is zero. Quote does not return this split yet, and booking pay-later rates is not supported yet: book returns rate_unavailable (409)."
          }
        ]
      },
      {
        "version": "0.67",
        "date": "2026-10-27",
        "changes": [
          {
            "type": "feat",
            "description": "Added optional emails field to hotel_content, listing the contact email addresses the property publishes. Absent when the property publishes none. Hotels only; vacation rentals do not carry lodging contact details."
          }
        ]
      },
      {
        "version": "0.66",
        "date": "2026-10-27",
        "changes": [
          {
            "type": "feat",
            "description": "Added an optional accessibility_features array to RoomInfo listing the room's accessibility features (e.g. wheelchair_accessible, roll_in_shower), using the new RoomAccessibilityFeature enum. The field is omitted when the room's accessibility is unknown; omission does not mean the room is inaccessible. New feature values may be added; clients should ignore unknown values."
          }
        ]
      },
      {
        "version": "0.65",
        "date": "2026-10-27",
        "changes": [
          {
            "type": "feat",
            "description": "Added an optional code to the hotel content chain and brand objects, carrying a stable Hopper identifier in lowercase snake case (e.g. marriott, jw_marriott). These are not GDS chain codes. The field is omitted when the chain or brand is unknown."
          }
        ]
      },
      {
        "version": "0.64",
        "date": "2026-10-26",
        "changes": [
          {
            "type": "feat",
            "description": "Added an optional smoking_policy to RoomInfo with smoking, non_smoking, and smoking_and_non_smoking values. The field is omitted when the smoking policy is unknown; omission does not mean the room is non-smoking."
          }
        ]
      },
      {
        "version": "0.63",
        "date": "2026-10-16",
        "changes": [
          {
            "type": "feat",
            "description": "Added an optional views array to RoomInfo listing the views available from the room (e.g. ocean, city, garden), using the new RoomView enum."
          }
        ]
      },
      {
        "version": "0.62",
        "date": "2026-10-08",
        "changes": [
          {
            "type": "feat",
            "description": "Added payment_declined to the book error_code enum, returned with 422 when the payment for a booking is declined. Previously these bookings failed with 500 internal_server_error. No reservation is created and no charge is made; the book_token cannot be reused, so call /quote again and book with corrected payment details or a different payment method."
          }
        ]
      },
      {
        "version": "0.61",
        "date": "2026-10-01",
        "changes": [
          {
            "type": "docs",
            "description": "The catalog endpoint is listed once, under the catalog tag, instead of appearing under both content and catalog."
          }
        ]
      },
      {
        "version": "0.60",
        "date": "2026-09-22",
        "changes": [
          {
            "type": "feat",
            "description": "Loyalty wording and the quote-side transmission field are revised following review. On the rate, eligibility now reports whether the supplier has indicated the rate plan may participate in the property's loyalty program, rather than asserting that the rate earns points: we relay a supplier claim and do not guarantee an outcome. On the quote, delivery_method is renamed loyalty_transmission and says whether a booking with this rate can transmit the guest's loyalty number to the supplier. Its values change from through_api and at_check_in to eligible, ineligible and unknown, separating the case where we know a booking path cannot carry a loyalty number from the case where we simply do not know; for both of the latter the guest should verify at check-in that their loyalty number has been added. Eligibility and transmission remain independent, and loyalty_transmission remains advisory: primary_guest.hotel_loyalty is always accepted on the book request whatever it says. Note that eligibility deliberately has no ineligible value, unlike loyalty_transmission — a supplier that says nothing about a rate is not saying the rate cannot participate, so that absence is reported as unknown and must never be presented to a guest as \"no points on this rate\"."
          }
        ]
      },
      {
        "version": "0.59",
        "date": "2026-09-17",
        "changes": [
          {
            "type": "feat",
            "description": "Hotel loyalty, expanded. The shop product now carries a loyalty object in place of the bare program code: eligibility is eligible when the rate earns points, and unknown when we have no claim either way — unknown is never a statement that the rate is ineligible and must not be presented as one, and program_code is present whenever eligibility is eligible. The quote response carries the same object with an added delivery_method, which says how a membership reaches the guest's account for this booking: through_api when we can transmit a membership number with the booking, at_check_in when we cannot and the guest presents their membership at the property. Eligibility and delivery are independent: a rate can earn points with no way for us to transmit a number, and a number is often transmittable for a rate we have no eligibility claim about. delivery_method is advisory and never gates the book request, which always accepts primary_guest.hotel_loyalty. That field is now a list, so a guest's memberships in several programs can be sent and we forward the one matching the rate being booked. The book response gains booking_warnings, a list of non-fatal issues that never mean the booking failed: loyalty_not_applied reports that a supplied membership was rejected, with a reason of not_supported_for_rate, id_not_found, invalid_format or unspecified. It is only emitted where the outcome is known — pass-through is best effort and most supply sources never confirm either way, so the absence of a warning means we have nothing to report, not that the stay was credited. New warning types may be added, so treat an unrecognised type as one you do not yet handle."
          },
          {
            "type": "docs",
            "description": "loyalty_program_code no longer lists the individual programs. Codes are added as more programs are supported, so treat an unrecognised code as a program you do not yet know about rather than as invalid."
          }
        ]
      },
      {
        "version": "0.58",
        "date": "2026-09-13",
        "changes": [
          {
            "type": "feat",
            "description": "Hotel loyalty rates. Rates that earn loyalty points now carry loyalty_program_code on product, a 3-character program code (e.g. MAR, HIL, WYN); its absence means the rate makes no loyalty claim and must not be presented as loyalty ineligible. The quote response carries the same loyalty_program_code for the quoted rate, so the program is known at the point the rate is confirmed. The primary guest on a book request accepts an optional hotel_loyalty membership (program_code and loyalty_number), forwarded so the stay can be credited. Pass-through is best effort: where a rejected membership can be dropped and the booking completed without it the reservation is still confirmed, and a membership is never required to book a loyalty-eligible rate. Added loyalty_number_failure to the book error_code enum for the cases where the booking cannot be completed without the membership."
          }
        ]
      },
      {
        "version": "0.57",
        "date": "2026-09-01",
        "changes": [
          {
            "type": "feat",
            "description": "Opaque tokens are now bound to the application that obtained them. A funnel must be completed by the application that started it: use the API key of that same application for shop, quote and book, and for precancel and cancel. Presenting a token obtained by another application is rejected with 403 token_application_mismatch, added to the quote, book and cancel error_code enums. A request whose calling application cannot be determined is rejected with the same error."
          }
        ]
      },
      {
        "version": "0.56",
        "date": "2026-08-13",
        "changes": [
          {
            "type": "feat",
            "description": "Geo query response gains a lodgings array: one entry per matching lodging, in result order, carrying the straight-line distance (value plus unit, returned in meters) from the search's resolved reference location when known. lodging_ids is deprecated in favor of lodgings, which has the same membership and order."
          }
        ]
      },
      {
        "version": "0.55",
        "date": "2026-08-11",
        "changes": [
          {
            "type": "feat",
            "description": "Added hotel support to geo endpoint, combining hotel and vacation_rental in one place_id request remains invalid_input."
          }
        ]
      },
      {
        "version": "0.54",
        "date": "2026-07-15",
        "changes": [
          {
            "type": "feat",
            "description": "Cancel endpoint now returns 409 cannot_be_cancelled (instead of an opaque 500) when a reservation cannot be cancelled; the description conveys the specific reason (requires_agent_cancellation, past_cancellation_deadline, cancellation_not_allowed). Added cannot_be_cancelled to the cancel error_code enum."
          }
        ]
      },
      {
        "version": "0.53",
        "date": "2026-06-15",
        "changes": [
          {
            "type": "fix",
            "description": "payment_schedule.owed_at_check_in amounts may be returned in the property's local currency, which can differ from owed_now. Read the currency on each amount."
          }
        ]
      },
      {
        "version": "0.52",
        "date": "2026-06-15",
        "changes": [
          {
            "type": "feat",
            "description": "Added rollaway_or_extra_beds_available to the RoomAmenityType enum."
          }
        ]
      },
      {
        "version": "0.51",
        "date": "2026-05-12",
        "changes": [
          {
            "type": "feat",
            "description": "Limited catalog endpoint access to authorized tenants. Unauthorized tenants receive an unauthorized error response."
          }
        ]
      },
      {
        "version": "0.50",
        "date": "2026-05-12",
        "changes": [
          {
            "type": "fix",
            "description": "Made session_token optional in riskified_fraud_prevention schema. Only customer_ip_address is now required."
          }
        ]
      },
      {
        "version": "0.49",
        "date": "2026-05-07",
        "changes": [
          {
            "type": "fix",
            "description": "Added missing type discriminator to cancellation_info example in order_status_cancelled."
          }
        ]
      },
      {
        "version": "0.48",
        "date": "2026-05-04",
        "changes": [
          {
            "type": "feat",
            "description": "Add explicit discriminators to oneOfs"
          }
        ]
      },
      {
        "version": "0.47",
        "date": "2026-04-30",
        "changes": [
          {
            "type": "breaking",
            "description": "Geo endpoint only: changed lodging_type on geo_request_initial from a string enum (hotels/vacation_rentals/all) to an array of shared LodgingType values (hotel/vacation_rental). Extracted shared LodgingType enum used by both geo and content endpoints."
          },
          {
            "type": "feat",
            "description": "Added GeoFilters and AmenityFilter schemas to geo_request_initial for filtering geo search results by property attributes (occupancy, bedrooms, amenities, ratings, price, availability dates)."
          }
        ]
      },
      {
        "version": "0.46",
        "date": "2026-04-28",
        "changes": [
          {
            "type": "feat",
            "description": "Added optional locale field to the content request to control the language tag of text content in the response. Defaults to en-US when not provided."
          }
        ]
      },
      {
        "version": "0.45",
        "date": "2026-04-21",
        "changes": [
          {
            "type": "feat",
            "description": "Added order_already_cancelled error code to PreCancel endpoint to handle already-cancelled reservations without triggering quote orchestrator calls."
          }
        ]
      },
      {
        "version": "0.44",
        "date": "2026-04-20",
        "changes": [
          {
            "type": "feat",
            "description": "Added homes (vacation rentals) support to geo endpoint, enabling combined hotel and homes results with unified cursor-based pagination."
          }
        ]
      },
      {
        "version": "0.43",
        "date": "2026-04-10",
        "changes": [
          {
            "type": "feat",
            "description": "Added unauthorized error code to all failure responses (Shop, Quote, Book, GetOrder, PreCancel, Cancel, ShopFeed, Content, Catalog, AvailabilityCalendar, Events, Geo) for consistent authorization error handling"
          },
          {
            "type": "feat",
            "description": "Added lodging_type field to geo_request_initial."
          }
        ]
      },
      {
        "version": "0.42",
        "date": "2026-04-06",
        "changes": [
          {
            "type": "feat",
            "description": "Added fraud_prevention field to book request for partner-managed fraud prevention (Riskified)."
          }
        ]
      },
      {
        "version": "0.41",
        "date": "2026-03-23",
        "changes": [
          {
            "type": "feat",
            "description": "Add validation to prevent book_token reuse with mismatched booking details"
          }
        ]
      },
      {
        "version": "0.40",
        "date": "2026-03-20",
        "changes": [
          {
            "type": "feat",
            "description": "Added experience to the Product type. Experience is a free-form field describing the experience a user can expect for the given rate (detailed meal plan, bath type, view, etc.)"
          }
        ]
      },
      {
        "version": "0.39",
        "date": "2026-03-19",
        "changes": [
          {
            "type": "feat",
            "description": "Added Reviews endpoint with review scores, category breakdowns, and guest reviews."
          },
          {
            "type": "feat",
            "description": "Added invalid_input error code to Reviews failure response."
          },
          {
            "type": "feat",
            "description": "Made lodgings field required in Reviews response."
          }
        ]
      },
      {
        "version": "0.38",
        "date": "2026-03-19",
        "changes": [
          {
            "type": "docs",
            "description": "Clarify book_token uniqueness and proper usage across quote/book workflow to prevent duplicate bookings"
          }
        ]
      },
      {
        "version": "0.37",
        "date": "2026-03-17",
        "changes": [
          {
            "type": "docs",
            "description": "Update API description to clarify forward compatibility expectations"
          }
        ]
      },
      {
        "version": "0.36",
        "date": "2026-03-13",
        "changes": [
          {
            "type": "feat",
            "description": "Added Reviews endpoint."
          }
        ]
      },
      {
        "version": "0.35",
        "date": "2026-03-11",
        "changes": [
          {
            "type": "feat",
            "description": "Added timezone to LodgingContent."
          }
        ]
      },
      {
        "version": "0.34",
        "date": "2026-03-05",
        "changes": [
          {
            "type": "docs",
            "description": "Added description to GeoLocation."
          }
        ]
      },
      {
        "version": "0.33",
        "date": "2026-01-28",
        "changes": [
          {
            "type": "feat",
            "description": "Vended initial_price for hotels in shop and quote responses."
          }
        ]
      },
      {
        "version": "0.32",
        "date": "2026-01-26",
        "changes": [
          {
            "type": "feat",
            "description": "Added Merchandising object to RoomRate in shop and quote responses."
          }
        ]
      },
      {
        "version": "0.31",
        "date": "2026-01-22",
        "changes": [
          {
            "type": "feat",
            "description": "Added sourceMappings field to LodgingContent."
          },
          {
            "type": "feat",
            "description": "Added new BedType enum values (Crib, Rollaway, Trundle)."
          }
        ]
      },
      {
        "version": "0.30",
        "date": "2025-12-18",
        "changes": [
          {
            "type": "fix",
            "description": "Made guest_refund_amount optional in vacation rental cancellation info."
          }
        ]
      },
      {
        "version": "0.29",
        "date": "2025-11-26",
        "changes": [
          {
            "type": "feat",
            "description": "Added Media to RoomInfo."
          },
          {
            "type": "feat",
            "description": "Added Video to Media."
          }
        ]
      },
      {
        "version": "0.28",
        "date": "2025-11-12",
        "changes": [
          {
            "type": "feat",
            "description": "Added Unknown to CardType."
          }
        ]
      },
      {
        "version": "0.27",
        "date": "2025-10-22",
        "changes": [
          {
            "type": "feat",
            "description": "Added ClientClosedRequestError."
          }
        ]
      },
      {
        "version": "0.26",
        "date": "2025-10-15",
        "changes": [
          {
            "type": "breaking",
            "description": "Rerouted content endpoint to PUT /api/lodging_content/v1/content/."
          }
        ]
      },
      {
        "version": "0.25",
        "date": "2025-10-10",
        "changes": [
          {
            "type": "breaking",
            "description": "Rerouted content endpoint to PUT /api/content/v1/content/."
          },
          {
            "type": "breaking",
            "description": "Limited content endpoint access to authorized tenants."
          }
        ]
      },
      {
        "version": "0.24",
        "date": "2025-10-09",
        "changes": [
          {
            "type": "feat",
            "description": "Added initial_price to the quote response."
          }
        ]
      },
      {
        "version": "0.23",
        "date": "2025-10-08",
        "changes": [
          {
            "type": "breaking",
            "description": "Removed recommended_sell from payment schedule."
          }
        ]
      },
      {
        "version": "0.22",
        "date": "2025-10-07",
        "changes": [
          {
            "type": "feat",
            "description": "Added initial_price to the shop response."
          },
          {
            "type": "feat",
            "description": "Duplicated recommended_sell at rate level to simplify integration."
          }
        ]
      },
      {
        "version": "0.21",
        "date": "2025-09-17",
        "changes": [
          {
            "type": "feat",
            "description": "Added payment clauses to the shop response."
          }
        ]
      },
      {
        "version": "0.20",
        "date": "2025-09-16",
        "changes": [
          {
            "type": "feat",
            "description": "Added name and description to tax and fee types."
          }
        ]
      },
      {
        "version": "0.19",
        "date": "2025-09-16",
        "changes": [
          {
            "type": "feat",
            "description": "Added unavailability reasons to the shop response."
          }
        ]
      },
      {
        "version": "0.18",
        "date": "2025-09-12",
        "changes": [
          {
            "type": "feat",
            "description": "Added content endpoint PUT /api/lodging/v1/content/."
          }
        ]
      },
      {
        "version": "0.17",
        "date": "2025-09-11",
        "changes": [
          {
            "type": "feat",
            "description": "Added availability calendar endpoint PUT /api/lodging/v1/calendars/availability."
          }
        ]
      },
      {
        "version": "0.16",
        "date": "2025-09-10",
        "changes": [
          {
            "type": "breaking",
            "description": "Removed unknown order status."
          }
        ]
      },
      {
        "version": "0.15",
        "date": "2025-09-04",
        "changes": [
          {
            "type": "feat",
            "description": "Added field for included commission."
          }
        ]
      },
      {
        "version": "0.14",
        "date": "2025-09-03",
        "changes": [
          {
            "type": "feat",
            "description": "Added corporate to the RateOption enum in the shop request."
          }
        ]
      },
      {
        "version": "0.12",
        "date": "2025-08-26",
        "changes": [
          {
            "type": "feat",
            "description": "Added sales_environment parameter to shop request."
          }
        ]
      },
      {
        "version": "0.11",
        "date": "2025-08-26",
        "changes": [
          {
            "type": "feat",
            "description": "Added cleaning_fee and pet_fee fee types in the shop response."
          }
        ]
      },
      {
        "version": "0.13",
        "date": "2025-08-22",
        "changes": [
          {
            "type": "feat",
            "description": "Added pets to occupancy in the shop request."
          }
        ]
      },
      {
        "version": "0.10",
        "date": "2025-08-13",
        "changes": [
          {
            "type": "feat",
            "description": "Added ShopFeed endpoint."
          }
        ]
      },
      {
        "version": "0.9",
        "date": "2025-06-05",
        "changes": [
          {
            "type": "breaking",
            "description": "Removed date of birth from primary guest in book request."
          },
          {
            "type": "fix",
            "description": "Enforced request IDs to be UUIDs."
          }
        ]
      },
      {
        "version": "0.8",
        "date": "2025-06-03",
        "changes": [
          {
            "type": "fix",
            "description": "Limited requested currency to USD in shop request."
          },
          {
            "type": "fix",
            "description": "Added constraints to occupancy in shop request."
          },
          {
            "type": "fix",
            "description": "Added constraints on check-in and check-out dates in shop request."
          },
          {
            "type": "fix",
            "description": "Added constraints on primary guest in book request."
          }
        ]
      },
      {
        "version": "0.7",
        "date": "2025-05-26",
        "changes": [
          {
            "type": "fix",
            "description": "Updated endpoint failure error codes."
          }
        ]
      },
      {
        "version": "0.6",
        "date": "2025-05-21",
        "changes": [
          {
            "type": "breaking",
            "description": "Removed cancelledBy in cancelled order status."
          }
        ]
      },
      {
        "version": "0.5",
        "date": "2025-05-08",
        "changes": [
          {
            "type": "feat",
            "description": "Added partner_reference_id to book requests."
          }
        ]
      },
      {
        "version": "0.4",
        "date": "2025-05-06",
        "changes": [
          {
            "type": "breaking",
            "description": "Removed PaymentScheduleTotal from PaymentSchedule."
          }
        ]
      },
      {
        "version": "0.3",
        "date": "2025-04-16",
        "changes": [
          {
            "type": "breaking",
            "description": "Changed Quote and PreCancel from POST to PUT because they do not change state."
          },
          {
            "type": "breaking",
            "description": "Changed order_status oneOf discriminator from order_status to type."
          }
        ]
      },
      {
        "version": "0.1",
        "date": "2025-04-13",
        "changes": [
          {
            "type": "feat",
            "description": "Added request_id to all path requests to aid incident response and debugging."
          },
          {
            "type": "breaking",
            "description": "Restructured shop response to group room rates by lodging_id."
          },
          {
            "type": "feat",
            "description": "Changed book response model to support multi-room bookings."
          },
          {
            "type": "feat",
            "description": "Added structure to orders order_state to include additional cancellation info."
          }
        ]
      },
      {
        "version": "0.2",
        "date": "2025-04-02",
        "changes": [
          {
            "type": "breaking",
            "description": "Changed book response to only return order_id and response_id."
          },
          {
            "type": "feat",
            "description": "Added date_of_birth to book request primary guest."
          }
        ]
      }
    ],
    "contact": {
      "name": "HTS API Team",
      "url": "https://hts.hopper.com/contact-us"
    },
    "license": {
      "name": "Hopper 2.0",
      "url": "https://www.hopper.com"
    }
  },
  "servers": [
    {
      "url": "https://travel-distribution.htsapis.com",
      "description": "Production"
    },
    {
      "url": "https://travel-distribution.staging.htsapis.com",
      "description": "Staging"
    }
  ],
  "tags": [
    {
      "name": "booking",
      "description": "Operations for booking a rate"
    },
    {
      "name": "rates",
      "description": "Operations returning rates"
    },
    {
      "name": "content",
      "description": "Lodging content and catalog operations"
    },
    {
      "name": "reviews",
      "description": "Lodging review scores and guest reviews"
    },
    {
      "name": "catalog",
      "description": "Catalog of lodging changes"
    },
    {
      "name": "geo",
      "description": "Geographic query operations"
    }
  ],
  "paths": {
    "/api/lodging_content/v1/content": {
      "put": {
        "operationId": "content",
        "tags": [
          "content"
        ],
        "summary": "Get lodgings content",
        "description": "Get lodging content information including property details, amenities, policies, and room types. Usage of this endpoint is limited to authorized tenants only, contact Hopper to get access.\n\n**Locale support:** The `locale` field in the request controls the language of translatable text fields (descriptions, policies, check-in information) and defaults to `en-US`. Locale is only applied to hotel content — for vacation homes it is ignored and content is returned in the provider's default language.\n",
        "requestBody": {
          "description": "Search criteria for retrieving lodging content",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/content_request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "List of lodging content matching the search criteria",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/content_response"
                }
              }
            }
          },
          "400": {
            "description": "Invalid Request. There will be an error code in the response detailing the issue.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/content_failure"
                }
              }
            }
          },
          "499": {
            "description": "Client closed the connection before the response could be sent (HTTP 499). This occurs when clients timeout or cancel requests while the server is still processing. The client will not receive this response. This means a quote, a booking or any other long running process may have been processed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/client_closed_request_error"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/internal_server_error"
                }
              }
            }
          }
        }
      }
    },
    "/api/lodging_content/v1/catalog": {
      "put": {
        "operationId": "catalog",
        "tags": [
          "content",
          "catalog"
        ],
        "summary": "Get catalog of lodging changes",
        "description": "Retrieve a catalog of lodging IDs that have been added, updated, or delisted since a given timestamp.\n\nThis endpoint supports pagination through two request types:\n\n**Initial Request:**\n- Specify a starting timestamp (`after`), event type (`event_type`), and page size\n- Returns the first page of lodging IDs matching the criteria\n- If more results are available, the response includes a `next_cursor`\n- The `total_results` field indicates the total number of lodgings at the time of the initial request\n\n**Follow-up Request:**\n- Use the `cursor` from a previous response (send the value of `next_cursor`) to fetch the next page\n- Continue making follow-up requests until `next_cursor` is null/empty\n- Each response returns the next batch of lodging IDs\n\n## Data Consistency Guarantees\n\n**Live Data and Concurrent Changes:**\n\nThe catalog endpoint returns a live view of lodging changes, which has important implications for data consistency:\n\n- **Changes During Pagination:** While you are paginating through results for a specific `event_type`, lodgings may\n  undergo changes (added, updated, or delisted) in real-time. If a lodging experiences a change that matches your\n  query criteria during the pagination process, it will be automatically appended to the result set and returned in\n  subsequent pages.\n\n- **Dynamic Total Count:** The `total_results` value from the initial response represents the count at that moment.\n  As new matching changes occur during pagination, the actual number of results returned across all pages may exceed\n  this initial count. Always continue paginating until `next_cursor` is null rather than relying on `total_results`\n  to determine when to stop.\n\n**Consistency and Replay Guarantees:**\n\nThe catalog endpoint provides the following guarantees for reliable change tracking:\n\n- **Completeness Guarantee:** You will never miss a change. Any lodging that experienced a matching change at or\n  after your `after` timestamp will eventually be returned, even if the change occurred while you were paginating\n  through results.\n\n- **Monotonic Consistency:** Using the same `after` timestamp in multiple requests will always return at least the\n  same set of changes. If new changes occurred between requests, the result set will grow to include them. This\n  allows safe replay without data loss.\n\n- **Safe Retries and Catch-Up:** If you need to restart your synchronization process from a specific timestamp,\n  you can safely reuse the same `after` value. This ensures complete change coverage without gaps. Implement\n  deduplication in your client to handle lodgings that may appear in multiple synchronization runs.\n\n- **Ordering Guarantee:** Changes are always returned in ascending order by their change timestamp, ensuring\n  predictable and consistent ordering across all pagination sessions and replay attempts.\n\n## Complete Change Synchronization\n\n**IMPORTANT:** To obtain a complete snapshot of all catalog changes since a given timestamp, you must poll all three\nevent types separately.\n\n**Required Polling Cycles:**\n\nThe catalog endpoint filters changes by a single `event_type` per request. To retrieve all changes that occurred\nafter your `after` timestamp, you must perform three independent polling cycles:\n\n1. **Poll for Added Lodgings:**\n   - Set `event_type=added` and your desired `after` timestamp\n   - Paginate through all pages until `next_cursor` is null\n   - Collect all lodging IDs that were newly added to the catalog\n\n2. **Poll for Updated Lodgings:**\n   - Set `event_type=updated` and the same `after` timestamp\n   - Paginate through all pages until `next_cursor` is null\n   - Collect all lodging IDs that had content or metadata updates\n\n3. **Poll for Delisted Lodgings:**\n   - Set `event_type=delisted` and the same `after` timestamp\n   - Paginate through all pages until `next_cursor` is null\n   - Collect all lodging IDs that were removed from the catalog\n\n**Synchronization Pattern:**\n\n```\ntimestamp = get_last_sync_timestamp()\n\n// Poll all three event types with the same timestamp\nadded_response = poll_all_pages(after=timestamp, event_type=\"added\")\nupdated_response = poll_all_pages(after=timestamp, event_type=\"updated\")\ndelisted_response = poll_all_pages(after=timestamp, event_type=\"delisted\")\n\n// Now you have a complete snapshot of all changes\napply_changes(added_response.lodging_ids, updated_response.lodging_ids, delisted_response.lodging_ids)\n\n// Use next_after from any of the responses for your next sync cycle\n// All three responses will have the same or very similar next_after values\nsave_last_sync_timestamp(added_response.next_after)\n```\n\n**Understanding `next_after` vs `next_cursor`:**\n\n- **`next_cursor`**: Used for pagination **within a single poll cycle** for one event type. When present,\n  make another request with this token as the `cursor` to get the next page of results for the same event type. Continue until\n  `next_cursor` is null.\n\n- **`next_after`**: Indicates the timestamp to use for your **next synchronization cycle across all event types**.\n  This field is always present in every response. After completing pagination for all three event types (added,\n  updated, delisted), use the `next_after` value from the final page as your new `after` timestamp for the next\n  complete synchronization cycle.\n\nOnly after completing all three event type polls will you have a complete and accurate view of all catalog changes\nthat occurred since your `after` timestamp.\n\n## Integration Best Practices\n\n- **Persistence**: Always persist the `next_after` timestamp from your last completed synchronization cycle. This\n  ensures you can resume from the correct point if your synchronization process is interrupted.\n\n- **Event Type Processing**: You can execute the three event type polls (added, updated, delisted) either in\n  parallel or sequentially. While uncommon, a single lodging may appear in multiple event types if it underwent\n  multiple state changes during the polling window (e.g., a lodging could be added, then updated, then delisted).\n  This is an edge case but possible. Sequential processing (added → updated → delisted) may be preferable if\n  maintaining temporal ordering is important for your application. Parallel execution can minimize synchronization\n  time if you plan to fetch the latest content for each lodging ID regardless of the event type order.\n\n- **Continuation Point**: After completing all pagination for all three event types, use the `next_after` value\n  from any of the final responses as your `after` timestamp for the next synchronization cycle.\n\n- **Deduplication**: Implement deduplication logic in your client to handle lodgings that may appear in multiple\n  event types within the same synchronization cycle, or in multiple synchronization runs due to concurrent changes\n  occurring during pagination.\n\n- **Monitoring**: Monitor the difference between `total_results` and actual results received to detect high-velocity\n  change periods that may require more frequent synchronization.\n",
        "requestBody": {
          "description": "Catalog query criteria - either initial selection with timestamp and filters, or follow-up selection with cursor",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/catalog_request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "List of lodging IDs matching the catalog criteria",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/catalog_response"
                }
              }
            }
          },
          "400": {
            "description": "Invalid Request. There will be an error code in the response detailing the issue.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/catalog_failure"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/internal_server_error"
                }
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "hts_api_key": []
    }
  ],
  "components": {
    "securitySchemes": {
      "hts_api_key": {
        "type": "apiKey",
        "in": "header",
        "name": "HTS-API-KEY"
      }
    },
    "schemas": {
      "content_request": {
        "type": "object",
        "title": "ContentRequest",
        "description": "Request for the content operation",
        "required": [
          "request_id",
          "lodging_ids"
        ],
        "properties": {
          "request_id": {
            "$ref": "#/components/schemas/request_id"
          },
          "lodging_ids": {
            "description": "List of lodging IDs to get content for (up to 20)",
            "type": "array",
            "minItems": 1,
            "maxItems": 20,
            "items": {
              "$ref": "#/components/schemas/lodging_id"
            }
          },
          "locale": {
            "$ref": "#/components/schemas/locale"
          }
        }
      },
      "content_response": {
        "type": "object",
        "title": "ContentResponse",
        "description": "Response for the content operation",
        "required": [
          "response_id"
        ],
        "properties": {
          "response_id": {
            "$ref": "#/components/schemas/response_id"
          },
          "lodgings": {
            "description": "Lodgings list",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/lodging"
            }
          }
        }
      },
      "content_failure": {
        "type": "object",
        "title": "ContentFailure",
        "required": [
          "description",
          "error_code",
          "response_id"
        ],
        "properties": {
          "error_code": {
            "description": "Error codes for the content operation. This is a non-exhaustive list of enum values, which will be extended in the future.",
            "enum": [
              "unauthorized",
              "unknown_error"
            ],
            "type": "string"
          },
          "description": {
            "type": "string",
            "description": "A human-readable description of the error."
          },
          "response_id": {
            "$ref": "#/components/schemas/response_id"
          }
        }
      },
      "reviews_response": {
        "type": "object",
        "title": "ReviewsResponse",
        "description": "Response for the reviews operation",
        "required": [
          "response_id",
          "lodgings"
        ],
        "properties": {
          "response_id": {
            "$ref": "#/components/schemas/response_id"
          },
          "lodgings": {
            "description": "Reviews for each requested lodging",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/lodging_reviews"
            }
          }
        }
      },
      "reviews_failure": {
        "type": "object",
        "title": "ReviewsFailure",
        "required": [
          "description",
          "error_code",
          "response_id"
        ],
        "properties": {
          "error_code": {
            "description": "Error codes for the reviews operation. This is a non-exhaustive list of enum values, which will be extended in the future.",
            "enum": [
              "invalid_input",
              "unauthorized",
              "unknown_error"
            ],
            "type": "string"
          },
          "description": {
            "type": "string",
            "description": "A human-readable description of the error."
          },
          "response_id": {
            "$ref": "#/components/schemas/response_id"
          }
        }
      },
      "lodging_reviews": {
        "type": "object",
        "title": "LodgingReviews",
        "description": "Reviews and review summary for a single lodging",
        "required": [
          "lodging_id"
        ],
        "properties": {
          "lodging_id": {
            "$ref": "#/components/schemas/lodging_id"
          },
          "summary": {
            "$ref": "#/components/schemas/review_summary"
          },
          "category_scores": {
            "$ref": "#/components/schemas/review_category_scores"
          },
          "reviews": {
            "description": "Individual guest reviews for this lodging",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/review"
            }
          }
        }
      },
      "review_summary": {
        "type": "object",
        "title": "ReviewSummary",
        "description": "Aggregate review scores for a lodging",
        "required": [
          "score",
          "count"
        ],
        "properties": {
          "score": {
            "description": "Overall review score on a 5-star scale",
            "type": "number",
            "format": "double",
            "minimum": 0,
            "maximum": 5,
            "example": 4.2
          },
          "count": {
            "description": "Total number of reviews contributing to the score",
            "type": "integer",
            "format": "int32",
            "minimum": 0,
            "example": 342
          },
          "rating_image": {
            "description": "URI of the star-rating image for the overall score",
            "type": "string",
            "format": "uri",
            "example": "https://www.tripadvisor.com/img/cdsi/img2/ratings/traveler/4.0-12345-4.svg"
          }
        }
      },
      "review_category_scores": {
        "type": "object",
        "title": "ReviewCategoryScores",
        "description": "Per-category review score breakdowns, each on a 5-star scale",
        "properties": {
          "cleanliness": {
            "description": "Score for cleanliness",
            "type": "number",
            "format": "double",
            "minimum": 0,
            "maximum": 5,
            "example": 4.5
          },
          "service": {
            "description": "Score for service quality",
            "type": "number",
            "format": "double",
            "minimum": 0,
            "maximum": 5,
            "example": 4.3
          },
          "rooms": {
            "description": "Score for room quality",
            "type": "number",
            "format": "double",
            "minimum": 0,
            "maximum": 5,
            "example": 4.1
          },
          "sleep_quality": {
            "description": "Score for sleep quality",
            "type": "number",
            "format": "double",
            "minimum": 0,
            "maximum": 5,
            "example": 4
          },
          "location": {
            "description": "Score for location",
            "type": "number",
            "format": "double",
            "minimum": 0,
            "maximum": 5,
            "example": 4.7
          },
          "value_for_money": {
            "description": "Score for value for money",
            "type": "number",
            "format": "double",
            "minimum": 0,
            "maximum": 5,
            "example": 3.9
          }
        }
      },
      "review": {
        "type": "object",
        "title": "Review",
        "description": "An individual guest review for a lodging",
        "required": [
          "title",
          "text",
          "score",
          "author",
          "created"
        ],
        "properties": {
          "title": {
            "description": "Review title or headline",
            "type": "string",
            "example": "Great stay, friendly staff"
          },
          "text": {
            "description": "Full review text written by the guest",
            "type": "string",
            "example": "We had a wonderful time at this hotel. The staff was incredibly helpful and the rooms were clean and spacious."
          },
          "score": {
            "description": "Reviewer's overall score on a 5-star scale",
            "type": "integer",
            "format": "int32",
            "minimum": 0,
            "maximum": 5,
            "example": 4
          },
          "author": {
            "description": "Name of the review author",
            "type": "string",
            "example": "John D."
          },
          "created": {
            "description": "Date and time the review was submitted (ISO 8601)",
            "type": "string",
            "format": "date-time",
            "example": "2025-08-15T14:30:00Z"
          },
          "rating_image": {
            "description": "URI of the star-rating image for this review",
            "type": "string",
            "format": "uri",
            "example": "https://www.tripadvisor.com/img/cdsi/img2/ratings/traveler/4.0-12345-4.svg"
          }
        }
      },
      "catalog_request": {
        "title": "CatalogRequest",
        "oneOf": [
          {
            "$ref": "#/components/schemas/catalog_request_initial"
          },
          {
            "$ref": "#/components/schemas/catalog_request_follow_up"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "initial": "#/components/schemas/catalog_request_initial",
            "follow_up": "#/components/schemas/catalog_request_follow_up"
          }
        }
      },
      "catalog_request_initial": {
        "type": "object",
        "title": "CatalogRequestInitial",
        "description": "Initial request for catalog query",
        "required": [
          "request_id",
          "type",
          "after",
          "event_type",
          "page_size"
        ],
        "properties": {
          "request_id": {
            "$ref": "#/components/schemas/request_id"
          },
          "type": {
            "description": "Discriminator value for initial catalog request",
            "type": "string",
            "enum": [
              "initial"
            ],
            "example": "initial"
          },
          "after": {
            "type": "string",
            "format": "date-time",
            "description": "Return catalog changes that occurred after this timestamp (ISO 8601 format)",
            "example": "2025-01-01T00:00:00Z"
          },
          "event_type": {
            "$ref": "#/components/schemas/catalog_event_type"
          },
          "page_size": {
            "type": "integer",
            "description": "Number of results per page",
            "minimum": 1,
            "maximum": 200,
            "example": 10
          }
        }
      },
      "catalog_request_follow_up": {
        "type": "object",
        "title": "CatalogRequestFollowUp",
        "description": "Follow-up request for the next page of catalog results. Provide the pagination token (`next_cursor`) from the previous response as `cursor`.\n",
        "required": [
          "request_id",
          "type"
        ],
        "properties": {
          "request_id": {
            "$ref": "#/components/schemas/request_id"
          },
          "type": {
            "type": "string",
            "enum": [
              "follow_up"
            ],
            "example": "follow_up",
            "description": "Discriminator for follow-up selection"
          },
          "cursor": {
            "type": "string",
            "description": "The opaque pagination token from the previous CatalogResponse (`next_cursor`).\n",
            "example": "eyJvZmZzZXQiOjIwfQ=="
          }
        }
      },
      "catalog_response": {
        "type": "object",
        "title": "CatalogResponse",
        "description": "Response for the catalog operation",
        "required": [
          "lodging_ids",
          "total_results",
          "has_more",
          "next_after",
          "response_id"
        ],
        "properties": {
          "lodging_ids": {
            "type": "array",
            "description": "List of lodging IDs matching the catalog criteria",
            "items": {
              "$ref": "#/components/schemas/lodging_id"
            }
          },
          "total_results": {
            "type": "integer",
            "description": "Total number of results available across all pages",
            "example": 150
          },
          "has_more": {
            "type": "boolean",
            "description": "Indicates whether more results are available beyond the current page within the same poll cycle.",
            "example": true
          },
          "next_cursor": {
            "type": "string",
            "description": "Opaque token for retrieving the next page of results. Include this as `cursor` in a follow-up request to continue pagination within the same poll cycle.\nIf null or omitted, no further results are available for this cycle.\n",
            "example": "eyJvZmZzZXQiOjIwfQ=="
          },
          "next_after": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp to use as the 'after' parameter for the next synchronization cycle. This represents the continuation point after completing the current poll cycle. When pagination is complete (next_cursor is null), use this value for your next polling cycle to avoid gaps in change tracking. If no results were returned, this will match the 'after' timestamp from your request.",
            "example": "2025-01-15T10:30:00Z"
          },
          "response_id": {
            "$ref": "#/components/schemas/response_id"
          }
        }
      },
      "catalog_failure": {
        "type": "object",
        "title": "CatalogFailure",
        "description": "Failure response for the catalog operation",
        "required": [
          "error_code",
          "description",
          "response_id"
        ],
        "properties": {
          "error_code": {
            "description": "Error code for catalog operation failures",
            "type": "string",
            "enum": [
              "invalid_request",
              "internal_error",
              "unauthorized"
            ]
          },
          "description": {
            "type": "string",
            "description": "Human-readable description of the error"
          },
          "response_id": {
            "$ref": "#/components/schemas/response_id"
          }
        }
      },
      "shop_response": {
        "type": "object",
        "title": "ShopResponse",
        "description": "Request for the shop operation",
        "required": [
          "lodgings",
          "response_id"
        ],
        "properties": {
          "lodgings": {
            "type": "array",
            "description": "List of lodgings with room rates",
            "minItems": 1,
            "maxItems": 200,
            "items": {
              "$ref": "#/components/schemas/shopped_lodging"
            }
          },
          "response_id": {
            "$ref": "#/components/schemas/response_id"
          }
        }
      },
      "shop_failure": {
        "type": "object",
        "title": "ShopFailure",
        "required": [
          "error_code",
          "description",
          "response_id"
        ],
        "properties": {
          "error_code": {
            "description": "Error codes for the shop operation. This is a non-exhaustive list of enum values, which will be extended in the future.",
            "enum": [
              "invalid_input",
              "forbidden",
              "unauthorized"
            ],
            "type": "string"
          },
          "description": {
            "type": "string",
            "description": "A human-readable description of the error."
          },
          "response_id": {
            "$ref": "#/components/schemas/response_id"
          }
        }
      },
      "shopfeed_response": {
        "type": "object",
        "title": "ShopFeedResponse",
        "description": "Response for the shopfeed operation",
        "required": [
          "lodgings",
          "response_id"
        ],
        "properties": {
          "lodgings": {
            "type": "array",
            "description": "List of lodgings with room rates feed",
            "minItems": 1,
            "maxItems": 200,
            "items": {
              "$ref": "#/components/schemas/shopped_lodging"
            }
          },
          "response_id": {
            "$ref": "#/components/schemas/response_id"
          }
        }
      },
      "shopfeed_failure": {
        "type": "object",
        "title": "ShopFeedFailure",
        "required": [
          "error_code",
          "description",
          "response_id"
        ],
        "properties": {
          "error_code": {
            "description": "Error codes for the shopfeed operation.\nThis is a non-exhaustive list of enum values, which will be extended in the future.\n\nThe following error codes are currently supported:\n- invalid_input: A provided request parameter is invalid.\n- invalid_key_configuration: There is an issue with the api-key configuration. Contact Hopper to resolve.\n- unauthorized: The tenant is not authorized to access this API.\n",
            "enum": [
              "invalid_input",
              "invalid_key_configuration",
              "unauthorized"
            ],
            "type": "string"
          },
          "description": {
            "type": "string",
            "description": "A human-readable description of the error."
          },
          "response_id": {
            "$ref": "#/components/schemas/response_id"
          }
        }
      },
      "shopped_lodging": {
        "type": "object",
        "title": "ShoppedLodging",
        "description": "Lodging with room rates. The room rates can be empty if no rates are available.",
        "required": [
          "lodging_id",
          "room_rates",
          "unavailability_reasons"
        ],
        "properties": {
          "lodging_id": {
            "$ref": "#/components/schemas/lodging_id"
          },
          "room_rates": {
            "type": "array",
            "description": "List of rooms with its available rates",
            "items": {
              "$ref": "#/components/schemas/room_rate"
            }
          },
          "unavailability_reasons": {
            "type": "array",
            "description": "List of reasons why the lodging is unavailable. \nThis field is only present if there are no available room_rate.\nIf room_rate is empty and unavailability_reasons is also empty it means that the lodging is unavailable but the reason for the unavailability is unknown.\n",
            "items": {
              "$ref": "#/components/schemas/unavailability_reason"
            }
          }
        }
      },
      "quote_response": {
        "title": "QuoteResponse",
        "description": "Response payload containing a detailed quote breakdown for the lodging reservation.",
        "type": "object",
        "required": [
          "payment_schedule",
          "book_token",
          "valid_until",
          "cancellation_policy",
          "response_id",
          "merchandising"
        ],
        "properties": {
          "payment_schedule": {
            "$ref": "#/components/schemas/payment_schedule"
          },
          "payment_clauses": {
            "description": "List of payment clauses associated with the rate",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/payment_clause"
            }
          },
          "recommended_sell": {
            "$ref": "#/components/schemas/recommended_sell_price"
          },
          "commission": {
            "$ref": "#/components/schemas/commission"
          },
          "initial_price": {
            "description": "Initial sell price of a lodging before any price reductions were applied.",
            "title": "Price",
            "type": "object",
            "required": [
              "base",
              "total"
            ],
            "properties": {
              "base": {
                "$ref": "#/components/schemas/monetary_amount"
              },
              "total": {
                "$ref": "#/components/schemas/monetary_amount"
              }
            },
            "example": {
              "base": {
                "currency": "USD",
                "amount": "100.00"
              },
              "total": {
                "currency": "USD",
                "amount": "135.00"
              }
            }
          },
          "merchandising": {
            "$ref": "#/components/schemas/merchandising"
          },
          "loyalty": {
            "$ref": "#/components/schemas/quoted_loyalty"
          },
          "book_token": {
            "type": "string",
            "description": "An opaque token used to finalize the booking process via the `/book` endpoint.\n**Important:** This token is unique to this specific quote and booking flow. Each unique booking requires a new quote and therefore a new `book_token`. Never reuse a `book_token` from a different booking, even for the same hotel, dates, and room type.\nThe token may be safely reused only when retrying the same booking request (same guest, same `partner_reference_id`) due to network failures or timeouts.\n",
            "example": "string"
          },
          "valid_until": {
            "type": "string",
            "format": "date-time",
            "description": "ISO 8601 timestamp until which the quote remains valid.",
            "example": "2024-01-01T12:00:00Z"
          },
          "cancellation_policy": {
            "$ref": "#/components/schemas/cancellation_penalty"
          },
          "response_id": {
            "$ref": "#/components/schemas/response_id"
          }
        }
      },
      "quote_failure": {
        "type": "object",
        "title": "QuoteFailure",
        "required": [
          "description",
          "error_code",
          "response_id"
        ],
        "properties": {
          "error_code": {
            "description": "Error codes for the quote operation. This is a non-exhaustive list of enum values, which will be extended in the future.\n * `token_application_mismatch` - the `quote_token` could not be shown to belong to the\n   calling application. A funnel must be completed by the application that started it:\n   shop, quote and book must all be called with the API key of that same application.\n   Returned when the token belongs to a different application, when it carries no\n   application binding, and when the calling application cannot be determined; the\n   `description` says which.\n",
            "enum": [
              "invalid_input",
              "invalid_quote_token",
              "quote_token_expired",
              "rate_unavailable",
              "unauthorized",
              "token_application_mismatch"
            ],
            "type": "string"
          },
          "description": {
            "type": "string",
            "description": "A human-readable description of the error."
          },
          "response_id": {
            "$ref": "#/components/schemas/response_id"
          }
        }
      },
      "book_response": {
        "title": "BookResponse",
        "description": "Response payload confirming the lodging reservation with detailed booking information.",
        "type": "object",
        "required": [
          "response_id",
          "order_id"
        ],
        "properties": {
          "response_id": {
            "$ref": "#/components/schemas/response_id"
          },
          "order_id": {
            "description": "Unique Hopper-generated order id corresponding to the booking order",
            "type": "string",
            "example": "L2J982VT3J28"
          },
          "booking_warnings": {
            "description": "Non-fatal issues encountered while creating this booking. The reservation is confirmed regardless; an empty or absent list means no issues. Warnings describe what happened at booking time and are not repeated on the order.\n",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/booking_warning"
            }
          }
        }
      },
      "book_failure": {
        "type": "object",
        "title": "BookFailure",
        "required": [
          "description",
          "error_code",
          "response_id"
        ],
        "properties": {
          "error_code": {
            "description": "Error codes for the book operation. This is a non-exhaustive list of enum values, which will be extended in the future.\n * `token_application_mismatch` - the `book_token` could not be shown to belong to the\n   calling application. A funnel must be completed by the application that started it:\n   shop, quote and book must all be called with the API key of that same application.\n   Returned when the token belongs to a different application, when it carries no\n   application binding, and when the calling application cannot be determined; the\n   `description` says which.\n * `loyalty_number_failure` - the booking was rejected by the provider over the guest's\n   hotel loyalty membership. Covers three underlying causes — the provider required a\n   loyalty number and none was supplied, the number was not recognised, or the number was\n   malformed for that provider; the `description` says which. Expected to be rare: where\n   the provider allows the booking to be retried without the membership it is, and the\n   reservation is confirmed instead, so this error is only returned where it cannot be.\n * `payment_declined` - the payment for the booking was declined. No reservation was created\n   and no charge was made. The `book_token` cannot be reused; call `/quote` again and book with\n   corrected payment details or a different payment method.\n",
            "enum": [
              "invalid_input",
              "invalid_book_token",
              "rate_unavailable",
              "duplicate_partner_reference_id",
              "payment_gateway_error",
              "book_token_already_used",
              "unauthorized",
              "token_application_mismatch",
              "loyalty_number_failure",
              "payment_declined"
            ],
            "type": "string"
          },
          "description": {
            "type": "string",
            "description": "A human-readable description of the error."
          },
          "response_id": {
            "$ref": "#/components/schemas/response_id"
          }
        }
      },
      "booking_warning": {
        "title": "BookingWarning",
        "description": "A non-fatal issue encountered while creating a booking. The reservation is confirmed\nregardless: a warning never means the booking failed.\n\nNew warning types are added over time, so treat an unrecognised `type` as a warning you do\nnot yet handle rather than as an error, and read the sub-field matching the type you know.\n",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "description": "Which warning this is, and therefore which sub-field below is populated.\n\n- `loyalty_not_applied`: a loyalty membership supplied on the book request was\n  rejected.\n",
            "type": "string",
            "enum": [
              "loyalty_not_applied"
            ],
            "example": "loyalty_not_applied"
          },
          "loyalty_not_applied": {
            "$ref": "#/components/schemas/loyalty_not_applied"
          }
        }
      },
      "loyalty_not_applied": {
        "title": "LoyaltyNotApplied",
        "description": "A loyalty membership supplied on the book request was rejected. The reservation is\nconfirmed; the stay will not be credited to that membership.\n\nThis warning is only emitted where the outcome is known. Pass-through is best effort: most\nsupply sources never confirm either way, and silence produces no warning — so the absence\nof one means we sent what we could and have nothing to report, not that the stay was\ncredited.\n",
        "type": "object",
        "required": [
          "reason"
        ],
        "properties": {
          "reason": {
            "description": "Why the membership was rejected. This is a non-exhaustive list of enum values, which\nwill be extended in the future.\n\n- `not_supported_for_rate`: the booking path for this rate cannot transmit a loyalty\n  membership. Known in advance when `loyalty.loyalty_transmission` on the quote was\n  `ineligible`; where it was `unknown` this may be the first confirmation.\n- `id_not_found`: the membership number was not recognised.\n- `invalid_format`: the membership number was malformed for this program.\n- `unspecified`: rejected for a reason that does not map to the values above.\n",
            "type": "string",
            "enum": [
              "not_supported_for_rate",
              "id_not_found",
              "invalid_format",
              "unspecified"
            ],
            "example": "id_not_found"
          }
        }
      },
      "book_payment_method": {
        "title": "BookPaymentMethod",
        "type": "object",
        "description": "Payment method for direct credit card payment. Required for tenants configured for direct payment processing; ignored for others. Use the provider-specific variant to supply the vault token. Contact Hopper to enable this feature for your tenant.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/spreedly_payment_method"
          }
        ],
        "discriminator": {
          "propertyName": "provider",
          "mapping": {
            "spreedly": "#/components/schemas/spreedly_payment_method"
          }
        }
      },
      "spreedly_payment_method": {
        "title": "SpreedlyPaymentMethod",
        "type": "object",
        "description": "A Spreedly vault payment method token for direct credit card payment processing.",
        "required": [
          "provider",
          "token"
        ],
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "spreedly"
            ],
            "description": "Identifies this as a Spreedly payment method.",
            "example": "spreedly"
          },
          "token": {
            "type": "string",
            "minLength": 1,
            "description": "Payment method token issued by the Spreedly vault.",
            "example": "LbDpERKx17Y8PGeR4EvnMVdB1bN"
          }
        }
      },
      "fraud_prevention": {
        "title": "FraudPrevention",
        "type": "object",
        "description": "Fraud prevention data collected by the partner. Required for tenants using partner-managed fraud prevention; ignored for others. Use the type-specific variant to supply session data. Contact Hopper to enable this feature for your tenant.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/riskified_fraud_prevention"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "riskified": "#/components/schemas/riskified_fraud_prevention"
          }
        }
      },
      "riskified_fraud_prevention": {
        "title": "RiskifiedFraudPrevention",
        "type": "object",
        "description": "Riskified fraud prevention session data for partner-managed Riskified integrations.",
        "required": [
          "type",
          "customer_ip_address"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "riskified"
            ],
            "description": "Identifies this as a Riskified fraud prevention payload.",
            "example": "riskified"
          },
          "session_token": {
            "type": "string",
            "description": "Session token from the fraud prevention provider (e.g. the Riskified Beacon session ID).",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "customer_ip_address": {
            "type": "string",
            "minLength": 1,
            "description": "The IP address of the customer making the booking.",
            "example": "203.0.113.42"
          },
          "user_agent": {
            "type": "string",
            "description": "The User-Agent string of the customer's browser or device.",
            "example": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)"
          }
        }
      },
      "get_order_response": {
        "type": "object",
        "title": "GetOrderResponse",
        "description": "Order details by order id",
        "required": [
          "booking_order",
          "response_id"
        ],
        "properties": {
          "booking_order": {
            "$ref": "#/components/schemas/booking_order"
          },
          "response_id": {
            "$ref": "#/components/schemas/response_id"
          },
          "partner_reference_id": {
            "type": "string",
            "description": "An client determined id for the given booking for potential reconciliation"
          }
        }
      },
      "get_order_failure": {
        "type": "object",
        "title": "GetOrderFailure",
        "required": [
          "description",
          "error_code",
          "response_id"
        ],
        "properties": {
          "error_code": {
            "description": "Error codes for the get_order operation. This is a non-exhaustive list of enum values, which will be extended in the future.",
            "enum": [
              "invalid_input",
              "order_not_found",
              "unauthorized"
            ],
            "type": "string"
          },
          "description": {
            "type": "string",
            "description": "A human-readable description of the error."
          },
          "response_id": {
            "$ref": "#/components/schemas/response_id"
          }
        }
      },
      "pre_cancel_response": {
        "type": "object",
        "title": "PreCancelResponse",
        "description": "Response for the cancellation quote operation",
        "required": [
          "cancellation_penalty",
          "refund_amount",
          "cancellation_token",
          "valid_until",
          "response_id"
        ],
        "properties": {
          "cancellation_penalty": {
            "$ref": "#/components/schemas/cancellation_penalty"
          },
          "refund_amount": {
            "$ref": "#/components/schemas/RefundAmount"
          },
          "cancellation_token": {
            "description": "Token to use to complete the cancellation, using the cancel operation",
            "type": "string",
            "example": "string"
          },
          "valid_until": {
            "description": "ISO 8601 timestamp until which the cancellation quote remains valid.",
            "type": "string",
            "format": "date-time",
            "example": "2025-01-13T13:45:15.523Z"
          },
          "response_id": {
            "$ref": "#/components/schemas/response_id"
          }
        }
      },
      "pre_cancel_failure": {
        "type": "object",
        "title": "PreCancelFailure",
        "required": [
          "description",
          "error_code",
          "response_id"
        ],
        "properties": {
          "error_code": {
            "description": "Error codes for the pre-cancel operation. This is a non-exhaustive list of enum values, which will be extended in the future.",
            "enum": [
              "invalid_input",
              "order_not_found",
              "order_already_cancelled",
              "unauthorized"
            ],
            "type": "string"
          },
          "description": {
            "type": "string",
            "description": "A human-readable description of the error."
          },
          "response_id": {
            "$ref": "#/components/schemas/response_id"
          }
        }
      },
      "cancellation_response": {
        "type": "object",
        "title": "CancellationResponse",
        "description": "Response for the cancellation operation",
        "required": [
          "order_status",
          "response_id"
        ],
        "properties": {
          "order_status": {
            "$ref": "#/components/schemas/order_status"
          },
          "response_id": {
            "$ref": "#/components/schemas/response_id"
          }
        }
      },
      "cancellation_failure": {
        "type": "object",
        "title": "CancellationFailure",
        "required": [
          "description",
          "error_code",
          "response_id"
        ],
        "properties": {
          "error_code": {
            "description": "Error codes for the cancel operation. This is a non-exhaustive list of enum values, which will be extended in the future.\n * `invalid_input` - the request was malformed.\n * `invalid_cancel_token` - the cancellation token is invalid or expired.\n * `order_already_cancelled` - the order has already been cancelled.\n * `unauthorized` - the caller is not authorized to cancel this order.\n * `cannot_be_cancelled` - the reservation cannot be cancelled (e.g. the provider rejected\n   the cancellation, the cancellation deadline has passed, or it is non-refundable). This is\n   a terminal outcome; the `description` field carries the specific reason.\n * `token_application_mismatch` - the `cancellation_token` could not be shown to belong\n   to the calling application. Precancel and cancel must be called with the API key of\n   the same application. Returned when the token belongs to a different application, when\n   it carries no application binding, and when the calling application cannot be\n   determined; the `description` says which.\n",
            "enum": [
              "invalid_input",
              "invalid_cancel_token",
              "order_already_cancelled",
              "unauthorized",
              "cannot_be_cancelled",
              "token_application_mismatch"
            ],
            "type": "string"
          },
          "description": {
            "type": "string",
            "description": "A human-readable description of the error. For `cannot_be_cancelled`, this conveys the specific reason (e.g. requires_agent_cancellation, past_cancellation_deadline, cancellation_not_allowed)."
          },
          "response_id": {
            "$ref": "#/components/schemas/response_id"
          }
        }
      },
      "availability_calendar_response": {
        "type": "object",
        "title": "AvailabilityCalendarResponse",
        "description": "Response for the availability calendar operation. Lodgings present in the response have complete calendar coverage for the requested date range. Missing lodgings from the response indicate the lodging itself is unknown.\n",
        "required": [
          "lodgings",
          "response_id"
        ],
        "properties": {
          "lodgings": {
            "type": "array",
            "description": "List of lodging calendars for which availability information is available.\n",
            "example": [
              {
                "lodging_id": "123e4567-e89b-12d3-a456-426614174000",
                "calendar_days": [
                  {
                    "kind": "known",
                    "date": "2022-01-01",
                    "available": "available"
                  },
                  {
                    "kind": "known",
                    "date": "2022-01-02",
                    "available": "available"
                  },
                  {
                    "kind": "known",
                    "date": "2022-01-03",
                    "available": "unavailable"
                  },
                  {
                    "kind": "unknown",
                    "date": "2022-01-04"
                  },
                  {
                    "kind": "known",
                    "date": "2022-01-05",
                    "available": "available"
                  }
                ]
              }
            ],
            "items": {
              "$ref": "#/components/schemas/lodging_availability_calendar"
            }
          },
          "response_id": {
            "description": "Unique identifier for this response",
            "type": "string",
            "format": "uuid",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          }
        }
      },
      "availability_calendar_failure": {
        "type": "object",
        "title": "AvailabilityCalendarFailure",
        "description": "Failure response for availability calendar requests",
        "required": [
          "error_code",
          "description",
          "response_id"
        ],
        "properties": {
          "error_code": {
            "type": "string",
            "description": "Error code indicating the type of failure",
            "enum": [
              "invalid_input",
              "unauthorized"
            ],
            "example": "invalid_input"
          },
          "description": {
            "description": "Human-readable error description",
            "type": "string",
            "example": "Invalid lodging IDs provided"
          },
          "response_id": {
            "description": "Unique identifier for this response",
            "type": "string",
            "format": "uuid",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          }
        }
      },
      "lodging_availability_calendar": {
        "type": "object",
        "title": "LodgingAvailabilityCalendar",
        "description": "Availability calendar for a single lodging. When present, provides availability information for the requested date range.\n",
        "required": [
          "lodging_id",
          "calendar_days"
        ],
        "properties": {
          "lodging_id": {
            "$ref": "#/components/schemas/lodging_id"
          },
          "calendar_days": {
            "type": "array",
            "description": "List of calendar days with availability information. Must contain an entry for every day in the requested date range. Days with unknown availability should use the Unknown availability day type.\n",
            "items": {
              "$ref": "#/components/schemas/availability_calendar_day"
            }
          }
        }
      },
      "availability_calendar_day": {
        "title": "AvailabilityCalendarDay",
        "description": "Availability information for a single day",
        "oneOf": [
          {
            "$ref": "#/components/schemas/known_availability_calendar_day"
          },
          {
            "$ref": "#/components/schemas/unknown_availability_calendar_day"
          }
        ],
        "discriminator": {
          "propertyName": "kind",
          "mapping": {
            "known": "#/components/schemas/known_availability_calendar_day",
            "unknown": "#/components/schemas/unknown_availability_calendar_day"
          }
        }
      },
      "availability_calendar_day_kind": {
        "title": "AvailabilityCalendarDayKind",
        "description": "Discriminator for calendar day type: 'known' (availability is known) or 'unknown' (availability is not known for this day)",
        "type": "string",
        "enum": [
          "known",
          "unknown"
        ],
        "example": "known"
      },
      "known_availability_calendar_day": {
        "type": "object",
        "title": "KnownAvailabilityCalendarDay",
        "description": "Availability information for a day where availability status is known",
        "properties": {
          "date": {
            "description": "The date (YYYY-MM-DD format) in the lodging's timezone",
            "type": "string",
            "format": "date",
            "example": "2022-01-01"
          },
          "kind": {
            "$ref": "#/components/schemas/availability_calendar_day_kind"
          },
          "available": {
            "$ref": "#/components/schemas/availability_status"
          }
        },
        "required": [
          "date",
          "kind",
          "available"
        ],
        "example": {
          "date": "2022-01-01",
          "kind": "known",
          "available": "available"
        }
      },
      "unknown_availability_calendar_day": {
        "type": "object",
        "title": "UnknownAvailabilityCalendarDay",
        "description": "Represents a day where availability status is unknown",
        "additionalProperties": false,
        "properties": {
          "date": {
            "description": "The date (YYYY-MM-DD format) in the lodging's timezone",
            "type": "string",
            "format": "date",
            "example": "2022-01-01"
          },
          "kind": {
            "$ref": "#/components/schemas/availability_calendar_day_kind"
          }
        },
        "required": [
          "date",
          "kind"
        ],
        "example": {
          "date": "2022-01-01",
          "kind": "unknown"
        }
      },
      "availability_status": {
        "title": "AvailabilityStatus",
        "type": "string",
        "description": "Whether the lodging is available or unavailable on a calendar day.\n(Formerly exposed as schema key `available_enum`; use `availability_status` for consistency with other enums such as property_type, meal_plan.)\n",
        "enum": [
          "available",
          "unavailable"
        ],
        "example": "available"
      },
      "events_response": {
        "type": "object",
        "title": "EventsResponse",
        "description": "Response for the events request",
        "required": [
          "events"
        ],
        "properties": {
          "events": {
            "description": "List of notification events.\nMay be empty if no events match the criteria or if all events have been retrieved.\n",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/event"
            }
          },
          "next_cursor": {
            "description": "Opaque cursor for fetching the next page of events.\nWhen present, more events are available - use this value in the next request's `pagination.cursor` field.\nWhen absent, no more events are available.\nDo not attempt to parse or modify this value.\n",
            "type": "string"
          }
        }
      },
      "events_failure": {
        "type": "object",
        "title": "EventsFailure",
        "required": [
          "description",
          "error_code"
        ],
        "properties": {
          "error_code": {
            "description": "Error codes for the events operation. This is a non-exhaustive list of enum values, which will be extended in the future.",
            "enum": [
              "invalid_input",
              "unauthorized"
            ],
            "type": "string"
          },
          "description": {
            "type": "string",
            "description": "A human-readable description of the error."
          }
        }
      },
      "event": {
        "type": "object",
        "title": "Event",
        "required": [
          "id",
          "event_timestamp",
          "write_timestamp",
          "order_id"
        ],
        "properties": {
          "id": {
            "description": "Unique identifier for this event.\nThis ID is stable across retrievals and should be used for deduplication.\n",
            "type": "string"
          },
          "event_timestamp": {
            "description": "Timestamp when this event occurred in UTC.\nUse this for business logic and reporting. For pagination and consumption tracking, use `write_timestamp` instead to ensure reliable ordering guarantees.\n",
            "type": "string",
            "format": "date-time"
          },
          "write_timestamp": {
            "description": "Timestamp when this event was written to storage.\nThis timestamp determines pagination order and provides an ordering guarantee: events are never inserted into past time periods, ensuring reliable consumption without re-fetching of time periods.\n",
            "type": "string",
            "format": "date-time"
          },
          "order_id": {
            "description": "The identifier of the order to which a transaction as been added.",
            "type": "string"
          }
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/reservation_cancelled_event"
          },
          {
            "$ref": "#/components/schemas/reservation_transaction_appended_event"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "reservation_cancelled": "#/components/schemas/reservation_cancelled_event",
            "reservation_transaction_appended": "#/components/schemas/reservation_transaction_appended_event"
          }
        }
      },
      "event_type": {
        "type": "string",
        "title": "EventType",
        "description": "Type of notification event.",
        "enum": [
          "reservation_cancelled",
          "reservation_transaction_appended"
        ],
        "example": "reservation_cancelled"
      },
      "reservation_cancelled_event": {
        "type": "object",
        "title": "ReservationCancelledEvent",
        "description": "Event indicating that an order has been cancelled.",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "description": "Type of the event.",
            "type": "string",
            "enum": [
              "reservation_cancelled"
            ]
          }
        }
      },
      "reservation_transaction_appended_event": {
        "type": "object",
        "title": "ReservationTransactionAppendedEvent",
        "description": "Event indicating that a transaction has been appended to an order.",
        "required": [
          "type",
          "transaction_id"
        ],
        "properties": {
          "type": {
            "description": "Type of the event.",
            "type": "string",
            "enum": [
              "reservation_transaction_appended"
            ]
          },
          "transaction_id": {
            "description": "Transaction identifier for the newly appended transaction.",
            "type": "string"
          }
        }
      },
      "event_pagination": {
        "title": "EventPagination",
        "description": "Pagination mode (mutually exclusive options)",
        "oneOf": [
          {
            "$ref": "#/components/schemas/event_pagination_after"
          },
          {
            "$ref": "#/components/schemas/event_pagination_cursor"
          }
        ]
      },
      "event_pagination_after": {
        "type": "object",
        "title": "EventPaginationAfter",
        "description": "Return events written to storage after this timestamp (oldest first, chronological order).\nUse this to fetch events starting from a specific point in time.\nFilters by storage write time, not when the event originally occurred.\n",
        "required": [
          "after"
        ],
        "properties": {
          "after": {
            "description": "ISO 8601 timestamp; return events written after this time (chronological order)",
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "event_pagination_cursor": {
        "type": "object",
        "title": "EventPaginationCursor",
        "description": "Use this to continue paginating after a previous request.\nThe cursor is an opaque token from the previous response's `next_cursor` field.\nDo not attempt to parse or modify cursor values.\n",
        "required": [
          "cursor"
        ],
        "properties": {
          "cursor": {
            "description": "Opaque pagination token from the previous response's next_cursor",
            "type": "string"
          }
        }
      },
      "geo_response": {
        "type": "object",
        "title": "GeoResponse",
        "description": "Paginated response containing matching lodging identifiers.",
        "required": [
          "lodging_ids",
          "total_results",
          "has_more",
          "response_id",
          "lodgings"
        ],
        "properties": {
          "lodging_ids": {
            "type": "array",
            "deprecated": true,
            "description": "Deprecated: use `lodgings` instead, which carries the same lodgings in the\nsame order plus per-lodging data. A list of unique identifiers for lodging\nproperties found within the geographic search area.\n",
            "items": {
              "$ref": "#/components/schemas/lodging_id"
            }
          },
          "total_results": {
            "type": "integer",
            "description": "The total count of all matching lodgings across all pages.",
            "example": 150
          },
          "has_more": {
            "type": "boolean",
            "description": "Indicates whether more results are available beyond the current page.",
            "example": true
          },
          "next_cursor": {
            "type": "string",
            "description": "An opaque string used to fetch the next set of results. \nIf null or omitted, no further results are available.\n",
            "example": "eyJvZmZzZXQiOjIwfQ=="
          },
          "response_id": {
            "$ref": "#/components/schemas/response_id"
          },
          "lodgings": {
            "type": "array",
            "description": "The lodgings found within the geographic search area, in result (sort)\norder. Always present, with exactly one entry per matching lodging on\nthis page — the same membership and order as the deprecated\n`lodging_ids`. An entry is never omitted because its distance is\nunknown; `distance` is simply absent in that case.\n",
            "items": {
              "$ref": "#/components/schemas/GeoResult"
            }
          }
        }
      },
      "geo_failure": {
        "type": "object",
        "title": "GeoFailure",
        "description": "Failure response for the geographic query operation",
        "required": [
          "error_code",
          "description",
          "response_id"
        ],
        "properties": {
          "error_code": {
            "description": "Error code for geographic query operation failures",
            "type": "string",
            "enum": [
              "invalid_request",
              "unauthorized"
            ]
          },
          "description": {
            "type": "string",
            "description": "Human-readable description of the error"
          },
          "response_id": {
            "$ref": "#/components/schemas/response_id"
          }
        }
      },
      "bounding_box": {
        "type": "object",
        "title": "BoundingBox",
        "description": "A rectangular geographic area defined by southwest and northeast corners.\n\n**Coordinate System:** WGS 84 (EPSG:4326).\nNote: This object uses Key-Value pairs, unlike GeoJSON arrays.\n\n**Constraints:**\n* **Orientation:** The `southwest.latitude` must be less than or equal to `northeast.latitude`.\n* **Size:** The total area (calculated as `(lat_diff * lon_diff)`) must not exceed **10 square degrees** (roughly 330km x 330km at the equator).\n* **Aspect Ratio:** To prevent extreme \"sliver\" queries, the ratio between the height and width (or vice-versa) should not exceed **100:1**.\n* **Anti-Meridian:** Wrapping across the 180th meridian is currently not supported; `southwest.longitude` must be less than or equal to `northeast.longitude`.\n",
        "required": [
          "type",
          "southwest",
          "northeast"
        ],
        "properties": {
          "type": {
            "type": "string",
            "title": "PolymorphicDiscriminator",
            "description": "Must be set to `bounding_box`. \nThis field identifies the selector as a rectangular area.\n",
            "enum": [
              "bounding_box"
            ],
            "example": "bounding_box"
          },
          "southwest": {
            "$ref": "#/components/schemas/coordinates"
          },
          "northeast": {
            "$ref": "#/components/schemas/coordinates"
          }
        }
      },
      "circle": {
        "type": "object",
        "title": "Circle",
        "description": "A circular geographic area defined by a center point and a radius.\n\n**Coordinate System:** WGS 84 (EPSG:4326) using {latitude, longitude} objects.\nNote: This object uses Key-Value pairs, unlike GeoJSON arrays.\n\n**Constraints:**\n* **Minimum Radius:** The radius when converted to meters must be at least **1000 m** (1 km).\n* **Maximum Radius:** The radius when converted to meters must not exceed **100 km** (100,000 m). Requests outside this range will be rejected.\n",
        "required": [
          "type",
          "center",
          "radius"
        ],
        "properties": {
          "type": {
            "type": "string",
            "title": "PolymorphicDiscriminator",
            "description": "Must be set to `circle`. \nThis field identifies the selector as a radial area.\n",
            "enum": [
              "circle"
            ],
            "example": "circle"
          },
          "center": {
            "$ref": "#/components/schemas/coordinates"
          },
          "radius": {
            "$ref": "#/components/schemas/Radius"
          }
        }
      },
      "geo_json_polygon": {
        "type": "object",
        "title": "GeoJsonPolygon",
        "description": "GeoJSON Polygon geometry strictly adhering to RFC 7946.\n\n**IMPORTANT:** Coordinates follow the GeoJSON standard: `[longitude, latitude]`. \nThis is the reverse of the other selectors in this API.\n",
        "required": [
          "type",
          "coordinates"
        ],
        "properties": {
          "type": {
            "type": "string",
            "title": "PolymorphicDiscriminator",
            "description": "Must be set to `polygon`. \nThis field identifies the selector as a GeoJSON geometry.\n",
            "enum": [
              "polygon"
            ],
            "example": "polygon"
          },
          "center": {
            "$ref": "#/components/schemas/coordinates"
          },
          "coordinates": {
            "$ref": "#/components/schemas/CoordinateRings"
          }
        }
      },
      "geo_query_location": {
        "title": "GeoQueryLocation",
        "description": "The geographic selector. \n\n**Best Practices for Efficiency:**\n* **Interactive Use:** For sub-second response times, utilize Circles < 50km or Bounding Boxes < 1 square degree.\n* **Asynchronous Crawling:** Larger areas (up to system limits) should be used with `page_size` >= 100 to minimize the number of round-trips.\n",
        "oneOf": [
          {
            "$ref": "#/components/schemas/iata_code"
          },
          {
            "$ref": "#/components/schemas/bounding_box"
          },
          {
            "$ref": "#/components/schemas/geo_json_polygon"
          },
          {
            "$ref": "#/components/schemas/circle"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "iata": "#/components/schemas/iata_code",
            "bounding_box": "#/components/schemas/bounding_box",
            "polygon": "#/components/schemas/geo_json_polygon",
            "circle": "#/components/schemas/circle",
            "place_id": "#/components/schemas/place_id"
          }
        }
      },
      "geo_request_follow_up": {
        "title": "GeoRequestFollowUp",
        "type": "object",
        "description": "A request object used to retrieve subsequent pages of results from an existing geographic search query.\n\n**Implementation Note:** This is a subtype of `GeoRequest`. This request must follow a successful 'initial' request that returned a 'next_cursor'.\n",
        "required": [
          "request_id",
          "type",
          "cursor"
        ],
        "properties": {
          "request_id": {
            "type": "string",
            "format": "uuid",
            "description": "A unique UUID (version 4) for this specific request. \nNote: This should be a new ID for the follow-up, distinct from the initial request ID, to allow for granular log tracking.\n",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          "type": {
            "type": "string",
            "title": "PolymorphicDiscriminator",
            "description": "Must be set to `follow_up`. \nThis field identifies the request as a pagination continuation and determines the schema of the remaining fields.\n",
            "enum": [
              "follow_up"
            ],
            "example": "follow_up"
          },
          "cursor": {
            "type": "string",
            "description": "The opaque pagination token received from the previous 'GeoResponse'.\n\n**Stability Guidelines:**\n* **Expiration:** Tokens are short-lived and may expire; clients must not rely on a fixed validity window. In practice, most tokens remain usable for up to 24 hours, but this is not guaranteed and may change without notice.\n* **Statelessness:** Tokens are strictly for sequential access; skipping pages is not supported.\n* **Result Shifts:** While the search area is locked in the token, the specific lodgings returned may vary slightly if inventory is updated between page requests.\n",
            "example": "eyJvZmZzZXQiOjIwfQ=="
          }
        }
      },
      "geo_request_initial": {
        "title": "GeoRequestInitial",
        "type": "object",
        "description": "Initial request to start a geographic search query.\n\n**Implementation Note:** This is a subtype of `GeoRequest`. Use this for the first page of results.\n",
        "required": [
          "request_id",
          "type",
          "selector",
          "page_size"
        ],
        "properties": {
          "request_id": {
            "type": "string",
            "format": "uuid",
            "description": "A client-generated V4 UUID to track the lifecycle of the request.",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          "type": {
            "type": "string",
            "title": "PolymorphicDiscriminator",
            "description": "Must be set to `initial`. \nThis field identifies the request as a new search query and determines the schema of the remaining fields.\n",
            "enum": [
              "initial"
            ],
            "example": "initial"
          },
          "selector": {
            "$ref": "#/components/schemas/geo_query_location"
          },
          "page_size": {
            "type": "integer",
            "description": "Maximum number of lodging results to return in a single response.\n**Guardrails:** * To prevent system degradation, a single query (including all subsequent pages) is limited to a maximum of 10,000 total results.",
            "minimum": 1,
            "maximum": 200,
            "example": 10
          },
          "filters": {
            "allOf": [
              {
                "$ref": "#/components/schemas/geo_filters"
              }
            ],
            "description": "Optional filters to narrow results by property attributes.\nFilters are embedded in the pagination cursor — follow-up requests\nautomatically apply the same filters without needing to re-send them.\n"
          },
          "lodging_type": {
            "type": "array",
            "minItems": 1,
            "uniqueItems": true,
            "description": "Types of lodgings to include in the search results. Defaults to `[\"hotel\"]` when omitted.\n- `hotel`: Hotel properties.\n- `vacation_rental`: Vacation rental properties.\n\nVacation rental inventory is not available for all tenants.\nRequesting `vacation_rental` for an unsupported tenant returns `InvalidRequest`.\n",
            "items": {
              "$ref": "#/components/schemas/lodging_type"
            },
            "example": [
              "hotel"
            ]
          }
        }
      },
      "geo_filters": {
        "title": "GeoFilters",
        "type": "object",
        "description": "Optional filters to narrow geo search results by property attributes.\nAll fields are optional — only specified filters are applied.\n\nCommon filters apply to all lodging types. Hotel-specific and vacation\nrental-specific filters are grouped into sub-objects and silently ignored\nwhen the corresponding lodging type is not active.\n",
        "properties": {
          "pet_friendly": {
            "type": "boolean",
            "description": "If true, only return pet-friendly properties. Applies to: hotels and vacation rentals.",
            "example": true
          },
          "min_star_rating": {
            "type": "integer",
            "minimum": 1,
            "maximum": 5,
            "description": "Minimum star rating (1-5). Applies to: hotels and vacation rentals.",
            "example": 3
          },
          "min_user_rating": {
            "type": "number",
            "minimum": 0,
            "maximum": 100,
            "description": "Minimum user/guest rating on a 0-100 scale. Applies to: hotels and vacation rentals.",
            "example": 80
          },
          "amenities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/amenity_filter"
            },
            "description": "Required amenities — all specified amenities must be present. Applies to: hotels and vacation rentals.",
            "example": [
              "pool",
              "wifi"
            ]
          },
          "stay_dates": {
            "allOf": [
              {
                "$ref": "#/components/schemas/stay_dates"
              }
            ],
            "description": "Check-in and check-out dates for filtering by availability. Applies to: hotels and vacation rentals."
          },
          "hotel": {
            "allOf": [
              {
                "$ref": "#/components/schemas/hotel_filters"
              }
            ],
            "description": "Filters that apply only to hotel properties. Ignored for vacation-rental-only searches."
          },
          "vacation_rental": {
            "allOf": [
              {
                "$ref": "#/components/schemas/vacation_rental_filters"
              }
            ],
            "description": "Filters that apply only to vacation rental properties. Ignored for hotel-only searches."
          }
        }
      },
      "amenity_filter": {
        "title": "AmenityFilter",
        "type": "string",
        "description": "Unified amenity identifier for filtering geo search results. Each amenity maps\nto the equivalent filter in the underlying backends (homes-browse and selection resolver).\nAmenities without a mapping in a particular backend are silently ignored for that backend.\n",
        "enum": [
          "wifi",
          "pool",
          "parking",
          "kitchen",
          "air_conditioning",
          "pet_friendly",
          "gym",
          "hot_tub",
          "washer_dryer",
          "fireplace",
          "balcony",
          "ocean_view",
          "lake_view",
          "elevator",
          "accessibility",
          "free_breakfast",
          "spa",
          "ev_charging"
        ],
        "example": "pool"
      },
      "stay_dates": {
        "title": "StayDates",
        "type": "object",
        "description": "Check-in and check-out dates for filtering by availability, in the property's local timezone. Both dates are required.",
        "required": [
          "check_in",
          "check_out"
        ],
        "properties": {
          "check_in": {
            "type": "string",
            "format": "date",
            "description": "Check-in date (YYYY-MM-DD). Must be before check_out.",
            "example": "2026-07-01"
          },
          "check_out": {
            "type": "string",
            "format": "date",
            "description": "Check-out date (YYYY-MM-DD). Must be after check_in.",
            "example": "2026-07-05"
          }
        }
      },
      "hotel_filters": {
        "title": "HotelFilters",
        "type": "object",
        "description": "Filters that apply only to hotel properties.",
        "properties": {
          "max_star_rating": {
            "type": "integer",
            "minimum": 1,
            "maximum": 5,
            "description": "Maximum star rating (1-5). Useful for budget searches.",
            "example": 4
          },
          "price_range": {
            "allOf": [
              {
                "$ref": "#/components/schemas/price_range"
              }
            ],
            "description": "Nightly price range filter. Both min and max are required when present. Assumed USD."
          }
        }
      },
      "price_range": {
        "title": "PriceRange",
        "type": "object",
        "description": "Nightly price range. Both min and max are required. Assumed USD.",
        "required": [
          "min",
          "max"
        ],
        "properties": {
          "min": {
            "type": "number",
            "minimum": 0,
            "description": "Minimum nightly price.",
            "example": 50
          },
          "max": {
            "type": "number",
            "minimum": 0,
            "description": "Maximum nightly price.",
            "example": 300
          }
        }
      },
      "vacation_rental_filters": {
        "title": "VacationRentalFilters",
        "type": "object",
        "description": "Filters that apply only to vacation rental properties.",
        "properties": {
          "num_adults": {
            "type": "integer",
            "minimum": 1,
            "description": "Number of adults.",
            "example": 2
          },
          "num_children": {
            "type": "integer",
            "minimum": 0,
            "description": "Number of children.",
            "example": 1
          },
          "min_bedrooms": {
            "type": "integer",
            "minimum": 1,
            "description": "Minimum number of bedrooms.",
            "example": 2
          },
          "min_bathrooms": {
            "type": "number",
            "minimum": 0.5,
            "description": "Minimum number of bathrooms (supports half-baths, e.g. 1.5).",
            "example": 1.5
          },
          "min_beds": {
            "type": "integer",
            "minimum": 1,
            "description": "Minimum number of beds.",
            "example": 2
          }
        }
      },
      "iata_code": {
        "type": "object",
        "title": "IataCode",
        "description": "Represents an IATA-assigned 3-letter airport code for geographic selection.\n\n**Validation:**\n* The `airport_code` must follow the IATA standard: exactly 3 alphabetic characters.\n* Matches must be exact and uppercase.\n",
        "required": [
          "type",
          "airport_code"
        ],
        "properties": {
          "type": {
            "type": "string",
            "title": "PolymorphicDiscriminator",
            "description": "Must be set to `iata`. \nThis field identifies the selector as an airport code and determines the schema requirements.\n",
            "enum": [
              "iata"
            ],
            "example": "iata"
          },
          "airport_code": {
            "$ref": "#/components/schemas/IATAAirportCode"
          }
        }
      },
      "internal_server_error": {
        "type": "object",
        "title": "InternalServerError",
        "required": [
          "description",
          "error_code",
          "response_id"
        ],
        "properties": {
          "error_code": {
            "description": "Error returned when an internal server error occurs.",
            "enum": [
              "internal_server_error"
            ],
            "type": "string"
          },
          "description": {
            "type": "string",
            "description": "A human-readable description of the error."
          },
          "response_id": {
            "$ref": "#/components/schemas/response_id"
          }
        }
      },
      "client_closed_request_error": {
        "type": "object",
        "title": "ClientClosedRequestError",
        "required": [
          "description",
          "error_code",
          "response_id"
        ],
        "properties": {
          "error_code": {
            "description": "Error returned when a client closes the connection before the response could be sent.",
            "enum": [
              "client_closed_request"
            ],
            "type": "string"
          },
          "description": {
            "type": "string",
            "description": "A human-readable description of what happened. For booking requests, this may include the partner reference ID for tracking."
          },
          "response_id": {
            "$ref": "#/components/schemas/response_id"
          },
          "additional_context": {
            "type": "object",
            "description": "Additional context about the error. For booking requests, includes partner_reference_id for tracking in BigQuery.",
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      },
      "currency": {
        "description": "Currency code, in ISO 4217 format.",
        "title": "Currency",
        "type": "string",
        "pattern": "^[A-Z]{3}$",
        "example": "USD"
      },
      "RequestedCurrency": {
        "description": "Requested currency code for the owed now portion of the rates, in ISO 4217 format.",
        "title": "RequestedCurrency",
        "type": "string",
        "enum": [
          "USD"
        ],
        "example": "USD"
      },
      "amount": {
        "type": "string",
        "title": "Amount",
        "description": "Monetary amount value Serialized BigDecimal value",
        "example": "123.45"
      },
      "fee": {
        "type": "object",
        "title": "Fee",
        "required": [
          "category",
          "currency",
          "amount"
        ],
        "properties": {
          "category": {
            "$ref": "#/components/schemas/FeeCategory"
          },
          "currency": {
            "$ref": "#/components/schemas/currency"
          },
          "amount": {
            "$ref": "#/components/schemas/amount"
          },
          "name": {
            "type": "string",
            "description": "Free form name of the fee in the property manager specified language"
          },
          "description": {
            "type": "string",
            "description": "Free form detailed description of the fee in the property manager specified language"
          }
        },
        "example": {
          "category": "property_fee",
          "currency": "USD",
          "amount": "20.00",
          "name": "Heating fee",
          "description": "Fee for heating during winter months"
        }
      },
      "tax": {
        "type": "object",
        "title": "Tax",
        "required": [
          "category",
          "currency",
          "amount"
        ],
        "properties": {
          "category": {
            "$ref": "#/components/schemas/TaxCategory"
          },
          "currency": {
            "$ref": "#/components/schemas/currency"
          },
          "amount": {
            "$ref": "#/components/schemas/amount"
          },
          "name": {
            "type": "string",
            "description": "Free form name of the tax in the property manager specified language"
          },
          "description": {
            "type": "string",
            "description": "Free form detailed description of the tax in the property manager specified language"
          }
        },
        "example": {
          "category": "city_tax",
          "currency": "USD",
          "amount": "10.00",
          "name": "Tourism Tax",
          "description": "Tax imposed by the city of Miami for tourism purposes"
        }
      },
      "lodging_id": {
        "title": "LodgingId",
        "description": "Unique identifier for the lodging",
        "type": "string",
        "example": "123e4567-e89b-12d3-a456-426614174000"
      },
      "hotel_loyalty": {
        "title": "HotelLoyalty",
        "description": "A guest's membership in a hotel loyalty program, supplied so the provider can credit the\nstay to their account.\n\nThe membership is passed to the provider on a best-effort basis. It is never validated by\nthis API beyond the format constraints below, and a number the provider does not recognise\ndoes not prevent the reservation from being confirmed. Supplying a membership is optional:\na loyalty-eligible rate can be booked without one.\n",
        "type": "object",
        "required": [
          "program_code",
          "loyalty_number"
        ],
        "properties": {
          "program_code": {
            "$ref": "#/components/schemas/loyalty_program_code"
          },
          "loyalty_number": {
            "description": "The guest's membership number for this loyalty program.",
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "example": "123456789"
          }
        }
      },
      "loyalty_program_code": {
        "title": "LoyaltyProgramCode",
        "description": "The 3-character code identifying a hotel loyalty program.\n\nCodes are added as more programs are supported, so treat an unrecognised code as a program\nyou do not yet know about rather than as invalid.\n\nEligibility is determined by the provider from the rate plan; it is never derived from the\ntraveller, and no loyalty membership is required to shop or book a loyalty-eligible rate.\n",
        "type": "string",
        "pattern": "^[A-Z0-9]{3}$",
        "minLength": 3,
        "maxLength": 3
      },
      "loyalty": {
        "title": "Loyalty",
        "description": "Whether this rate may participate in the property's loyalty program, and which program.\n\nAbsent when we have nothing to say about loyalty for the rate. Where present with\n`eligibility` of `unknown`, we are reporting that we have no claim either way — never that\nthe rate is ineligible.\n",
        "type": "object",
        "required": [
          "eligibility"
        ],
        "properties": {
          "eligibility": {
            "$ref": "#/components/schemas/loyalty_eligibility"
          },
          "program_code": {
            "description": "The program the rate may earn points in. Present whenever `eligibility` is `eligible`; absent when we have no claim, since there is no program to name.\n",
            "allOf": [
              {
                "$ref": "#/components/schemas/loyalty_program_code"
              }
            ]
          }
        }
      },
      "loyalty_eligibility": {
        "title": "LoyaltyEligibility",
        "description": "Whether the supplier has indicated this rate plan may participate in the property's\nloyalty program.\n\n- `eligible`: the rate may participate in the property's loyalty program.\n- `unknown`: no claim either way. Never present this to a guest as \"no points on this\n  rate\" — a supplier that says nothing is not saying the rate is ineligible.\n",
        "type": "string",
        "enum": [
          "eligible",
          "unknown"
        ],
        "example": "eligible"
      },
      "loyalty_transmission": {
        "title": "LoyaltyTransmission",
        "description": "Whether a booking with this rate can transmit the guest's loyalty number to the supplier.\n\n- `eligible`: this booking can transmit the guest's loyalty number.\n- `ineligible`: this booking cannot. The guest should verify at check-in that their\n  loyalty number has been added.\n- `unknown`: the supplier may not be able to receive the loyalty number at time of\n  booking. The guest should verify at check-in that it has been added.\n\nIndependent of `eligibility`, which describes the rate rather than the booking path.\n\nAdvisory only: `hotel_loyalty` is always accepted on the book request whatever this says.\n",
        "type": "string",
        "enum": [
          "eligible",
          "ineligible",
          "unknown"
        ],
        "example": "eligible"
      },
      "quoted_loyalty": {
        "title": "QuotedLoyalty",
        "description": "Whether the quoted rate may participate in the property's loyalty program, and whether this\nbooking can transmit the guest's loyalty number to the supplier.\n\nExtends the shop-time loyalty object with `loyalty_transmission`, which is only meaningful\nonce a rate is quoted: the booking path is settled at that point, and collecting a loyalty\nnumber is a decision the caller faces on the way to book rather than while rendering search\nresults.\n\nEligibility and transmission are independent. A rate may participate in the program with no\nway for us to transmit a number, and we can often transmit a number while having no\neligibility claim for the rate.\n",
        "type": "object",
        "required": [
          "eligibility",
          "loyalty_transmission"
        ],
        "properties": {
          "eligibility": {
            "$ref": "#/components/schemas/loyalty_eligibility"
          },
          "program_code": {
            "description": "The program the quoted rate may earn points in. Present whenever `eligibility` is `eligible`. Supply the guest's membership for this program as `primary_guest.hotel_loyalty` on the book request.\n",
            "allOf": [
              {
                "$ref": "#/components/schemas/loyalty_program_code"
              }
            ]
          },
          "loyalty_transmission": {
            "$ref": "#/components/schemas/loyalty_transmission"
          }
        }
      },
      "meal_plan": {
        "description": "Describes a meal plan. Also known as board. This is a non-exhaustive list of enum values, which will be extended in the future.\n\n- room_only: No meals are included\n- all_inclusive: Includes Breakfast, Lunch, Dinner, Snacks and Drinks\n- full_board: Includes Breakfast, Lunch, Dinner. Snacks and Drinks are usually not included\n- half_board: Includes 2 of the following: Breakfast, Lunch, Dinner. Usually Breakfast and another meal. Drinks are usually not included.\n- breakfast: Includes Breakfast\n- lunch: Includes Lunch\n- dinner: Includes Dinner\n- breakfast_for_one: Includes Breakfast for one guest\n- breakfast_for_two: Includes Breakfast for two guests\n",
        "title": "MealPlan",
        "type": "string",
        "enum": [
          "room_only",
          "all_inclusive",
          "full_board",
          "half_board",
          "breakfast",
          "lunch",
          "dinner",
          "breakfast_for_one",
          "breakfast_for_two"
        ],
        "example": "room_only"
      },
      "occupancy": {
        "description": "Number of guests that want to stay in the lodging",
        "title": "Occupancy",
        "type": "object",
        "required": [
          "adults",
          "children"
        ],
        "properties": {
          "adults": {
            "description": "Number of adult guests",
            "type": "integer",
            "minimum": 1,
            "maximum": 24,
            "example": 2
          },
          "children": {
            "description": "List of children guest ages",
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 18,
              "example": 5
            }
          },
          "pets": {
            "description": "Number of pets accompanying the guests",
            "type": "integer",
            "minimum": 0,
            "maximum": 10,
            "example": 1
          }
        },
        "example": {
          "adults": 2,
          "children": [
            3,
            5,
            9
          ],
          "pets": 1
        }
      },
      "refundability": {
        "title": "Refundability",
        "description": "Whether the rate is refundable or not. This is a non-exhaustive list of enum values, which will be extended in the future.\n\n- fully_refundable: The rate is fully refundable from the time of the booking until the check-in time.\n- non_refundable: The rate is not refundable.\n- partially_refundable: The rate is either refundable for a period of time or partially refunds the amount or both.\n",
        "type": "string",
        "enum": [
          "fully_refundable",
          "non_refundable",
          "partially_refundable"
        ],
        "example": "fully_refundable"
      },
      "sales_channel": {
        "title": "SalesChannel",
        "description": "Defines the type of device the user is using. This is a non-exhaustive list of enum values, which will be extended in the future.\n\n- web: User is using a web browser on a desktop or laptop\n- mobile_web: User is using a web browser on a mobile device\n- mobile_app: User is using a mobile app\n",
        "type": "string",
        "enum": [
          "web",
          "mobile_web",
          "mobile_app"
        ],
        "example": "mobile_app"
      },
      "sales_environment": {
        "title": "SalesEnvironment",
        "description": "Defines the sales environment in which rates will be sold.\nThis determines the type of inventory and rates to be returned.\nThis is a non-exhaustive list of enum values, which will be extended in the future.\n\n- lodging_only: Use when selling the lodging as an individual product.\n- lodging_package: Use when selling the lodging with another travel product (e.g. flight, car rental, etc.)\n",
        "type": "string",
        "enum": [
          "lodging_only",
          "lodging_package"
        ],
        "example": "lodging_only"
      },
      "rate_option": {
        "title": "RateOption",
        "type": "string",
        "description": "Defines the type of rate options to enable for rates returned in the response. This is a non-exhaustive list of enum values, which will be extended in the future.\n\n- default: Return rates that are available to all users.\n- member: Return rates that are available to users that are authenticated and logged in.\n- corporate: Return rates that are available to corporate users. Restricted to authorized tenants only.\n",
        "enum": [
          "default",
          "member",
          "corporate"
        ],
        "example": "member"
      },
      "country": {
        "type": "string",
        "description": "Country code (ISO 3166-1 alpha-2)",
        "title": "Country",
        "pattern": "^[A-Z]{2}$",
        "example": "US"
      },
      "product": {
        "description": "Describes a bookable rate. Differentiates between two rates for the same room.",
        "title": "Product",
        "type": "object",
        "required": [
          "meal_plan",
          "refundability"
        ],
        "properties": {
          "meal_plan": {
            "$ref": "#/components/schemas/meal_plan"
          },
          "refundability": {
            "$ref": "#/components/schemas/refundability"
          },
          "experience": {
            "$ref": "#/components/schemas/localizable_string"
          },
          "loyalty": {
            "$ref": "#/components/schemas/loyalty"
          }
        }
      },
      "cancellation_penalty": {
        "type": "object",
        "title": "CancellationPenalty",
        "description": "Cancellation penalty for a lodging.\n\nThis object will contain an ordered sequence of gapless penalty ranges starting from the booking time and ending at the check-in time.\n\nThe penalty amount will be withheld if the cancellation time falls within the range of the start time (inclusive) and end time (exclusive).\n\nA penalty range with 0 amount indicates that the rate if fully refundable on that range. On the other hand, if the penalty amount equals the booking amount, the rate is non-refundable on that range.\n",
        "required": [
          "penalty_ranges"
        ],
        "properties": {
          "penalty_ranges": {
            "description": "Ordered sequence of gapless penalty ranges from booking time to check-in",
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/PenaltyRange"
            }
          }
        },
        "example": {
          "penalty_ranges": [
            {
              "start_time": "2020-01-01T00:00:00Z",
              "end_time": "2020-01-02T00:00:00Z",
              "penalty": {
                "currency": "USD",
                "amount": "0.00"
              }
            },
            {
              "start_time": "2020-01-02T00:00:00Z",
              "end_time": "2020-01-03T00:00:00Z",
              "penalty": {
                "currency": "USD",
                "amount": "75.00"
              }
            },
            {
              "start_time": "2020-01-03T00:00:00Z",
              "end_time": "2020-01-05T00:00:00Z",
              "penalty": {
                "currency": "USD",
                "amount": "135.00"
              }
            }
          ]
        }
      },
      "cancellation_info": {
        "title": "CancellationInfo",
        "description": "Information on a cancelled order",
        "required": [
          "cancellation_datetime"
        ],
        "properties": {
          "cancellation_datetime": {
            "description": "The ISO 8601 datetime of when this order is cancelled.",
            "type": "string",
            "format": "date-time",
            "example": "2017-08-17T13:31:15.523Z"
          }
        },
        "example": {
          "type": "hotel",
          "cancellation_datetime": "2025-02-17T18:31:15.523Z"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/cancellation_info_hotel"
          },
          {
            "$ref": "#/components/schemas/cancellation_info_vacation_rental"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "hotel": "#/components/schemas/cancellation_info_hotel",
            "vacation_rental": "#/components/schemas/cancellation_info_vacation_rental"
          }
        }
      },
      "cancellation_info_hotel": {
        "type": "object",
        "title": "CancellationInfoHotel",
        "description": "Hotel cancellation info",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "description": "Discriminator value identifying this cancellation info type.",
            "type": "string",
            "enum": [
              "hotel"
            ]
          }
        }
      },
      "cancellation_info_vacation_rental": {
        "type": "object",
        "title": "CancellationInfoVacationRental",
        "description": "Vacation rental cancellation info",
        "required": [
          "type",
          "instigator"
        ],
        "properties": {
          "type": {
            "description": "Discriminator value identifying this cancellation info type.",
            "type": "string",
            "enum": [
              "vacation_rental"
            ]
          },
          "instigator": {
            "type": "string",
            "description": "Indicates who initiated the cancellation.",
            "enum": [
              "guest",
              "host"
            ],
            "example": "guest"
          },
          "guest_refund_amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/monetary_amount"
              }
            ],
            "description": "The amount refunded to the guest for the cancelled vacation rental"
          }
        }
      },
      "payment_schedule": {
        "description": "Pricing breakdown of a rate. Includes the amounts owed at book time and the amounts owed at check-in.",
        "type": "object",
        "title": "PaymentSchedule",
        "required": [
          "owed_now",
          "owed_at_check_in"
        ],
        "properties": {
          "owed_now": {
            "description": "Amounts due at time of booking",
            "type": "object",
            "allOf": [
              {
                "description": "Price of a lodging",
                "title": "Price",
                "type": "object",
                "required": [
                  "base",
                  "taxes",
                  "fees",
                  "total"
                ],
                "properties": {
                  "base": {
                    "description": "The base price of the lodging (product price excluding taxes and fees)",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/monetary_amount"
                      },
                      {
                        "type": "object",
                        "description": "The base price of the lodging represents the product price. This excludes taxes and fees"
                      }
                    ]
                  },
                  "taxes": {
                    "description": "List of taxes",
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/tax"
                    }
                  },
                  "fees": {
                    "description": "List of fees",
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/fee"
                    }
                  },
                  "total": {
                    "description": "Total price including base, taxes, and fees",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/monetary_amount"
                      },
                      {
                        "type": "object",
                        "description": "Total price including base, taxes, and fees"
                      }
                    ]
                  }
                },
                "example": {
                  "base": {
                    "currency": "USD",
                    "amount": "100.00"
                  },
                  "taxes": [
                    {
                      "category": "tax_recovery_charges",
                      "currency": "USD",
                      "amount": "10.00"
                    },
                    {
                      "category": "sales_tax",
                      "currency": "USD",
                      "amount": "5.00"
                    }
                  ],
                  "fees": [
                    {
                      "category": "hotel_fee",
                      "currency": "USD",
                      "amount": "20.00"
                    }
                  ],
                  "total": {
                    "currency": "USD",
                    "amount": "135.00"
                  }
                }
              }
            ]
          },
          "owed_at_check_in": {
            "description": "Amounts due at check-in (e.g. resort fees, remaining balance, local taxes).\n\nThese charges are collected at the property and may be denominated in the property's local\ncurrency, which can differ from the currency of `owed_now` (for example, a rate sold in USD with\na city tax collected at the hotel in EUR). Read the `currency` on each amount/tax/fee rather than\nassuming it matches `owed_now`.\n\nFor pay-later rates (only returned by shop to partners enabled for them), the stay itself is paid at the\nproperty: `owed_at_check_in.base` holds the room price, `owed_at_check_in.total` includes every tax and\nfee, and `owed_now` is zero. Taxes and fees without an API category are counted in the total but not\nitemized in the `taxes` or `fees` lists. `/quote` does not return this split yet, and booking pay-later\nrates is not supported yet: `/book` returns `rate_unavailable` (409).\n",
            "type": "object",
            "allOf": [
              {
                "description": "Price of a lodging",
                "title": "Price",
                "type": "object",
                "required": [
                  "base",
                  "taxes",
                  "fees",
                  "total"
                ],
                "properties": {
                  "base": {
                    "description": "The base price of the lodging (product price excluding taxes and fees)",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/monetary_amount"
                      },
                      {
                        "type": "object",
                        "description": "The base price of the lodging represents the product price. This excludes taxes and fees"
                      }
                    ]
                  },
                  "taxes": {
                    "description": "List of taxes",
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/tax"
                    }
                  },
                  "fees": {
                    "description": "List of fees",
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/fee"
                    }
                  },
                  "total": {
                    "description": "Total price including base, taxes, and fees",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/monetary_amount"
                      },
                      {
                        "type": "object",
                        "description": "Total price including base, taxes, and fees"
                      }
                    ]
                  }
                },
                "example": {
                  "base": {
                    "currency": "USD",
                    "amount": "100.00"
                  },
                  "taxes": [
                    {
                      "category": "tax_recovery_charges",
                      "currency": "USD",
                      "amount": "10.00"
                    },
                    {
                      "category": "sales_tax",
                      "currency": "USD",
                      "amount": "5.00"
                    }
                  ],
                  "fees": [
                    {
                      "category": "hotel_fee",
                      "currency": "USD",
                      "amount": "20.00"
                    }
                  ],
                  "total": {
                    "currency": "USD",
                    "amount": "135.00"
                  }
                }
              }
            ]
          }
        },
        "example": {
          "owed_now": {
            "base": {
              "currency": "USD",
              "amount": "100.00"
            },
            "taxes": [
              {
                "category": "tax_recovery_charges",
                "currency": "USD",
                "amount": "10.00"
              },
              {
                "category": "sales_tax",
                "currency": "USD",
                "amount": "5.00"
              }
            ],
            "fees": [],
            "total": {
              "currency": "USD",
              "amount": "115.00"
            }
          },
          "owed_at_check_in": {
            "base": {
              "currency": "EUR",
              "amount": "0.00"
            },
            "taxes": [
              {
                "category": "city_tax",
                "currency": "EUR",
                "amount": "18.00"
              }
            ],
            "fees": [],
            "total": {
              "currency": "EUR",
              "amount": "18.00"
            }
          }
        }
      },
      "rate": {
        "description": "Lodging Rate",
        "title": "Rate",
        "type": "object",
        "required": [
          "payment_schedule",
          "product",
          "cancellation_penalty",
          "quote_token",
          "valid_until",
          "merchandising"
        ],
        "properties": {
          "payment_schedule": {
            "$ref": "#/components/schemas/payment_schedule"
          },
          "payment_clauses": {
            "description": "List of payment clauses associated with the rate",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/payment_clause"
            }
          },
          "recommended_sell": {
            "$ref": "#/components/schemas/recommended_sell_price"
          },
          "commission": {
            "$ref": "#/components/schemas/commission"
          },
          "initial_price": {
            "description": "Initial sell price of a lodging before any price reductions were applied.",
            "title": "Price",
            "type": "object",
            "required": [
              "base",
              "total"
            ],
            "properties": {
              "base": {
                "$ref": "#/components/schemas/monetary_amount"
              },
              "total": {
                "$ref": "#/components/schemas/monetary_amount"
              }
            },
            "example": {
              "base": {
                "currency": "USD",
                "amount": "100.00"
              },
              "total": {
                "currency": "USD",
                "amount": "135.00"
              }
            }
          },
          "merchandising": {
            "$ref": "#/components/schemas/merchandising"
          },
          "product": {
            "$ref": "#/components/schemas/product"
          },
          "cancellation_penalty": {
            "$ref": "#/components/schemas/cancellation_penalty"
          },
          "quote_token": {
            "description": "Token to pass in the quote request. Only returned in shop responses.",
            "type": "string",
            "example": "string"
          },
          "valid_until": {
            "description": "ISO 8601 timestamp until which the quote token remains valid. Only returned in shop responses.",
            "type": "string",
            "format": "date-time",
            "example": "2025-01-13T13:45:15.523Z"
          }
        }
      },
      "room_rate": {
        "title": "RoomRate",
        "description": "Room and its available rates",
        "type": "object",
        "required": [
          "room_id",
          "name",
          "rates"
        ],
        "properties": {
          "room_id": {
            "description": "Unique identifier for the room",
            "type": "string",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          "name": {
            "description": "Name of the room",
            "type": "string",
            "example": "Standard Room"
          },
          "rates": {
            "description": "List of available rates for the room",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/rate"
            }
          }
        }
      },
      "booked_room": {
        "description": "Details of the type of room booked, including room information, occupancy and price breakdowns",
        "title": "BookedRoom",
        "type": "object",
        "required": [
          "room_info",
          "payment_schedule"
        ],
        "properties": {
          "room_info": {
            "$ref": "#/components/schemas/room_info"
          },
          "occupancy": {
            "$ref": "#/components/schemas/occupancy"
          },
          "payment_schedule": {
            "$ref": "#/components/schemas/payment_schedule"
          }
        }
      },
      "booking_order": {
        "description": "Details about the hotel booking order",
        "title": "BookingOrder",
        "type": "object",
        "required": [
          "order_id",
          "lodging_id",
          "check_in_date",
          "check_out_date",
          "order_status",
          "booked_rooms",
          "cancellation_penalty",
          "creation_datetime"
        ],
        "properties": {
          "order_id": {
            "description": "Unique order id for this reservation record",
            "type": "string",
            "example": "L2J982VT3J28"
          },
          "lodging_id": {
            "$ref": "#/components/schemas/lodging_id"
          },
          "check_in_date": {
            "description": "Check-in date in hotel timezone for this reservation, in ISO 8601 format (YYYY-MM-DD).",
            "type": "string",
            "format": "date",
            "example": "2022-01-01"
          },
          "check_out_date": {
            "description": "Check-out date in hotel timezone for this reservation, in ISO 8601 format (YYYY-MM-DD).",
            "type": "string",
            "format": "date",
            "example": "2022-01-01"
          },
          "order_status": {
            "$ref": "#/components/schemas/order_status"
          },
          "booked_rooms": {
            "description": "The details about the room booked in the order.",
            "type": "array",
            "minItems": 1,
            "maxItems": 1,
            "items": {
              "$ref": "#/components/schemas/booked_room"
            }
          },
          "cancellation_penalty": {
            "$ref": "#/components/schemas/cancellation_penalty"
          },
          "creation_datetime": {
            "description": "The creation datetime of the booking in UTC of format ISO 8601 date-time string.",
            "type": "string",
            "format": "date-time",
            "example": "2017-08-17T13:31:15.523Z"
          },
          "lodging_details": {
            "$ref": "#/components/schemas/lodging_details"
          },
          "additional_information": {
            "$ref": "#/components/schemas/additional_information"
          }
        }
      },
      "order_status": {
        "title": "OrderStatus",
        "description": "Describes the status of a order.\n* `confirmed` - order was booked successfully\n* `cancelled` - order was cancelled successfully\n\nThis is a non-exhaustive list of enum values, which may be extended in the future.\"\n",
        "oneOf": [
          {
            "$ref": "#/components/schemas/order_status_cancelled"
          },
          {
            "$ref": "#/components/schemas/order_status_confirmed"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "cancelled": "#/components/schemas/order_status_cancelled",
            "confirmed": "#/components/schemas/order_status_confirmed"
          }
        }
      },
      "room_info": {
        "description": "The details about a room including the id, the name, and allowed occupancy",
        "title": "RoomInfo",
        "type": "object",
        "required": [
          "room_id",
          "name",
          "max_adults",
          "max_children",
          "media"
        ],
        "properties": {
          "room_id": {
            "description": "The Id for a room in a lodging.",
            "type": "string",
            "example": "123456"
          },
          "name": {
            "description": "Room name",
            "type": "string",
            "example": "Standard King room"
          },
          "description": {
            "description": "Room description",
            "type": "string",
            "example": "Comfortable room with king-size bed, city view, and modern amenities"
          },
          "max_adults": {
            "description": "The number adults that are able to stay in this room.",
            "type": "integer",
            "example": 2
          },
          "max_children": {
            "description": "The number children that are able to stay in this room.",
            "type": "integer",
            "example": 2
          },
          "media": {
            "description": "List of media assets with their associated room media types",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/room_media"
            }
          },
          "size_sq_ft": {
            "description": "Room size in square feet",
            "type": "integer",
            "example": 350
          },
          "bed_configurations": {
            "description": "List of bed configurations in the room",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/bed_configuration"
            }
          },
          "room_amenities": {
            "description": "List of amenities available in the room",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/room_amenity"
            }
          },
          "views": {
            "description": "List of views available from the room (e.g. ocean, city, garden). Omitted or empty when the room's views are unknown.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/room_view"
            }
          },
          "smoking_policy": {
            "$ref": "#/components/schemas/smoking_policy"
          },
          "accessibility_features": {
            "description": "Accessibility features available in the room. Omitted when unknown; absence does not mean the room is inaccessible.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/room_accessibility_feature"
            }
          }
        },
        "example": {
          "room_id": "123456",
          "name": "Standard King room",
          "max_adults": 2,
          "max_children": 0,
          "size_sq_ft": 350,
          "bed_configurations": [
            {
              "quantity": 1,
              "bed_type": "king"
            }
          ],
          "room_amenities": [
            {
              "amenity_type": "free_wifi",
              "name": "Free WiFi"
            },
            {
              "amenity_type": "hair_dryer",
              "name": "Hair dryer"
            }
          ],
          "views": [
            "city",
            "partial_ocean"
          ],
          "smoking_policy": "non_smoking",
          "accessibility_features": [
            "wheelchair_accessible",
            "roll_in_shower"
          ],
          "media": [
            {
              "type": "image",
              "url": "https://example.com/images/standard-king-room.jpg",
              "links": {
                "1440px": {
                  "url": "https://i.travelapi.com/hotels/1000000/20000/15300/15237/bef1b976_t.jpg"
                }
              },
              "category": "guest_room",
              "caption": "Spacious king room with city view",
              "is_primary": true,
              "media_type": "exact_room"
            },
            {
              "type": "video",
              "url": "https://example.com/videos/standard-king-room-tour.mp4",
              "thumbnail_url": "https://example.com/videos/standard-king-room-tour-thumbnail.jpg",
              "media_type": "exact_room"
            }
          ]
        }
      },
      "request_id": {
        "title": "RequestId",
        "description": "Unique value used to identify this request.\nIf provided to us during operational questions, it will help us provide better support.\n",
        "type": "string",
        "format": "uuid",
        "example": "123e4567-e89b-12d3-a456-426614174000"
      },
      "response_id": {
        "title": "ResponseId",
        "description": "Unique identifier of the specific response.\nUse this identifier when you need to refer to a specific response, when requiring technical support.\n",
        "type": "string",
        "format": "uuid",
        "example": "123e4567-e89b-12d3-a456-426614174000"
      },
      "order_status_confirmed": {
        "type": "object",
        "title": "OrderStatusConfirmed",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "description": "Discriminator value for confirmed order status",
            "type": "string",
            "enum": [
              "confirmed"
            ],
            "example": "confirmed"
          }
        },
        "example": {
          "type": "confirmed"
        }
      },
      "order_status_cancelled": {
        "type": "object",
        "title": "OrderStatusCancelled",
        "required": [
          "type",
          "cancellation_info"
        ],
        "properties": {
          "type": {
            "description": "Discriminator value for cancelled order status",
            "type": "string",
            "enum": [
              "cancelled"
            ],
            "example": "cancelled"
          },
          "cancellation_info": {
            "$ref": "#/components/schemas/cancellation_info"
          }
        },
        "example": {
          "type": "cancelled",
          "cancellation_info": {
            "type": "hotel",
            "cancellation_datetime": "2025-02-17T18:31:15.523Z"
          }
        }
      },
      "address": {
        "type": "object",
        "title": "Address",
        "description": "Address information for a lodging",
        "required": [
          "line1",
          "city",
          "postal_code",
          "country",
          "state"
        ],
        "properties": {
          "line1": {
            "description": "First line of the address",
            "type": "string",
            "example": "123 Main Street"
          },
          "line2": {
            "description": "Second line of the address (optional)",
            "type": "string",
            "example": "Apt 4B"
          },
          "city": {
            "description": "City name",
            "type": "string",
            "example": "New York"
          },
          "postal_code": {
            "description": "Postal or ZIP code",
            "type": "string",
            "example": "10001"
          },
          "state": {
            "$ref": "#/components/schemas/state"
          },
          "country": {
            "$ref": "#/components/schemas/country"
          }
        }
      },
      "state": {
        "type": "object",
        "title": "State",
        "description": "State or province information",
        "required": [
          "name",
          "code"
        ],
        "properties": {
          "name": {
            "description": "Full name of the state or province",
            "type": "string",
            "example": "California"
          },
          "code": {
            "description": "2-letter or 3-letter state/province code for Australia, Canada and the USA.",
            "type": "string",
            "example": "CA"
          }
        }
      },
      "rating": {
        "type": "object",
        "title": "Rating",
        "description": "Rating information for a lodging",
        "properties": {
          "property_rating": {
            "$ref": "#/components/schemas/property_rating"
          }
        }
      },
      "property_rating": {
        "type": "object",
        "title": "PropertyRating",
        "description": "The property rating information",
        "oneOf": [
          {
            "$ref": "#/components/schemas/star_property_rating"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "star_rating": "#/components/schemas/star_property_rating"
          }
        }
      },
      "star_property_rating": {
        "type": "object",
        "title": "StarPropertyRating",
        "description": "Star-based property rating",
        "required": [
          "rating",
          "type"
        ],
        "properties": {
          "type": {
            "description": "Discriminator value for star-based rating",
            "type": "string",
            "enum": [
              "star"
            ],
            "example": "star"
          },
          "rating": {
            "description": "Star rating from 1 to 5",
            "type": "number",
            "minimum": 1,
            "maximum": 5,
            "example": 4
          }
        }
      },
      "check_in": {
        "type": "object",
        "title": "CheckIn",
        "description": "Check-in information for a lodging",
        "oneOf": [
          {
            "$ref": "#/components/schemas/check_in_restricted"
          },
          {
            "$ref": "#/components/schemas/check_in_anytime"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "restricted": "#/components/schemas/check_in_restricted",
            "anytime": "#/components/schemas/check_in_anytime"
          }
        },
        "properties": {
          "information": {
            "$ref": "#/components/schemas/localizable_string"
          },
          "minimum_age": {
            "description": "Minimum age required for check-in (optional)",
            "type": "integer",
            "format": "int32",
            "example": 18
          }
        }
      },
      "check_in_restricted": {
        "type": "object",
        "title": "CheckInRestricted",
        "description": "Restricted check-in information for a lodging",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "description": "Discriminator value for restricted check-in",
            "type": "string",
            "enum": [
              "restricted"
            ],
            "example": "restricted"
          },
          "begin_time": {
            "$ref": "#/components/schemas/Time"
          },
          "end_time": {
            "$ref": "#/components/schemas/Time"
          },
          "time_zone": {
            "description": "Time zone for the check-in/check-out times (optional)",
            "type": "string",
            "example": "America/New_York"
          }
        }
      },
      "check_in_anytime": {
        "type": "object",
        "title": "CheckInAnytime",
        "description": "Lodging with 24 hours check-in",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "description": "Discriminator value for 24-hour check-in",
            "type": "string",
            "enum": [
              "anytime"
            ],
            "example": "anytime"
          }
        }
      },
      "check_out": {
        "type": "object",
        "title": "CheckOut",
        "description": "Check-out information for a lodging",
        "properties": {
          "begin_time": {
            "$ref": "#/components/schemas/Time"
          },
          "end_time": {
            "$ref": "#/components/schemas/Time"
          },
          "time_zone": {
            "description": "Time zone for the check-in/check-out times (optional)",
            "type": "string",
            "example": "America/New_York"
          }
        }
      },
      "geo_location": {
        "type": "object",
        "title": "GeoLocation",
        "description": "Geo location information for a lodging",
        "required": [
          "coordinates"
        ],
        "properties": {
          "coordinates": {
            "$ref": "#/components/schemas/coordinates"
          },
          "description": {
            "$ref": "#/components/schemas/localizable_string"
          }
        }
      },
      "time_zone": {
        "type": "string",
        "title": "TimeZone",
        "description": "IANA timezone identifier (e.g. America/New_York, Europe/Paris)",
        "example": "America/New_York"
      },
      "coordinates": {
        "type": "object",
        "title": "Coordinates",
        "description": "Geographic coordinates",
        "required": [
          "latitude",
          "longitude"
        ],
        "properties": {
          "latitude": {
            "description": "Latitude coordinate. \n**Note:** Precision is capped at 6 decimal places (~11cm). Higher precision is truncated.\n",
            "type": "number",
            "minimum": -90,
            "maximum": 90,
            "example": 40.7128
          },
          "longitude": {
            "description": "Longitude coordinate. \n**Note:** Precision is capped at 6 decimal places (~11cm). Higher precision is truncated.\n",
            "type": "number",
            "minimum": -180,
            "maximum": 180,
            "example": -74.006
          }
        }
      },
      "brand": {
        "type": "object",
        "title": "Brand",
        "description": "Hotel brand information representing the commercial identity and service standards of a lodging property.\nBrands indicate specific service levels, amenities, and guest experience expectations. They are typically\npart of larger hotel chains and help guests identify properties that meet their preferences and standards.\n",
        "required": [
          "name"
        ],
        "properties": {
          "name": {
            "description": "Official name of the hotel brand as it appears in marketing materials and guest-facing communications.\nThis represents the specific service tier or product line within a hotel chain's portfolio.\n\nThe brand name helps guests understand the expected service level, amenities, and pricing tier.\n",
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "example": "Marriott Hotels & Resorts"
          },
          "code": {
            "description": "Stable Hopper identifier of the hotel brand, in lowercase snake case. Use this field rather than\n`name` to match properties to a brand.\n\nOmitted when the brand is unknown or has no Hopper identifier. New values may be added over time.\n",
            "type": "string",
            "pattern": "^[a-z0-9_]+$",
            "example": "jw_marriott"
          }
        }
      },
      "chain": {
        "type": "object",
        "title": "Chain",
        "description": "Hotel chain information representing the parent company or management organization that operates\nmultiple hotel properties and brands. Chains provide operational standards, loyalty programs,\ncentral reservations, and unified business practices across their portfolio of properties.\n\nThe chain is typically the highest level in the hotel ownership/management hierarchy:\nChain > Brand > Individual Property\n",
        "required": [
          "name"
        ],
        "properties": {
          "name": {
            "description": "Official name of the hotel chain or management company that operates the property.\nThis represents the corporate entity responsible for the property's operation and standards.\n",
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "example": "Marriott International"
          },
          "code": {
            "description": "Stable Hopper identifier of the hotel chain, in lowercase snake case. Use this field rather than\n`name` to match properties to a chain. This is not a GDS chain code.\n\nOmitted when the chain is unknown or has no Hopper identifier. New values may be added over time.\n",
            "type": "string",
            "pattern": "^[a-z0-9_]+$",
            "example": "marriott"
          }
        }
      },
      "amenity_type": {
        "type": "string",
        "title": "AmenityType",
        "description": "Type of amenity available at a lodging",
        "enum": [
          "accessible_bathroom",
          "accessible_facilities",
          "adults_only",
          "air_conditioning",
          "airport_transportation_available_general",
          "allergy_friendly",
          "atm_banking",
          "barbecue_grill",
          "bar_or_lounge",
          "bathtub",
          "beach_front",
          "beach_view",
          "bed_linens",
          "bicycle",
          "big_bath",
          "board_games",
          "braille_or_raised_signage",
          "business_center",
          "cable",
          "carbon_monoxide_alarm",
          "casino",
          "ceiling_fan",
          "city_view",
          "cleaning_products",
          "coffee",
          "coffee_maker",
          "coffee_tea",
          "computer_station",
          "concierge_services",
          "conference_space",
          "convenient_check_in_out",
          "cooking_basics",
          "crib",
          "dedicated_workspace",
          "dining_table",
          "dishes_and_silverware",
          "dishwasher",
          "doorman_entry",
          "dry_cleaning_laundry_service",
          "dryer",
          "electric_car_charging",
          "elevator",
          "entertainment",
          "essentials",
          "ev_charger",
          "express_check_in",
          "extra_pillows_and_blankets",
          "fire_extinguisher",
          "fire_pit",
          "fireplace",
          "first_aid_kit",
          "fitness_facilities",
          "free_airport_transportation",
          "free_breakfast",
          "free_self_parking",
          "free_wifi",
          "freezer",
          "front_desk",
          "full_service_spa",
          "gaming_console",
          "garden",
          "garden_or_backyard",
          "gym",
          "hair_dryer",
          "hair_salon",
          "hangers",
          "hdtv",
          "heating",
          "high_chair",
          "hiking_or_biking_nearby",
          "hot_spring",
          "hot_tub",
          "hot_water",
          "hot_water_kettle",
          "housekeeping",
          "in_room_accessibility",
          "indoor_pool",
          "internet_access",
          "iron",
          "kayak",
          "kid_friendly",
          "kitchen",
          "kitchenette",
          "laundry",
          "laundry_facilities",
          "luggage_storage",
          "meal_available",
          "meeting_rooms",
          "microwave",
          "mountain_view",
          "natural_spring",
          "nature_view",
          "number_of_bars_or_lounges",
          "number_of_restaurants",
          "on_demand_housekeeping",
          "open_air_bath",
          "outdoor_pool",
          "outdoor_seating",
          "outdoor_seasonal_pool",
          "outdoor_space",
          "oven",
          "paid_breakfast",
          "paid_parking",
          "paid_self_parking",
          "paid_valet_parking",
          "parking_available_general",
          "patio_or_balcony",
          "pet_friendly",
          "piano",
          "ping_pong_table",
          "pool_general",
          "pool_table",
          "poolside_bar",
          "porter_bellhop",
          "private_bath",
          "private_entrance",
          "property_view",
          "refrigerator",
          "restaurant",
          "roll_in_shower",
          "safe_deposit_box_front_desk",
          "sauna",
          "secure_entry",
          "secure_storage",
          "security_system",
          "shampoo",
          "ski_in_ski_out",
          "smoke_alarm",
          "smoking_allowed",
          "snack_or_deli",
          "some_accessibility_features_available_general",
          "sound_system",
          "spa_treatment_room",
          "steam_room",
          "stove",
          "street_parking",
          "swimming_pool",
          "terrace",
          "toaster",
          "tours_ticket_assistance",
          "twenty_four_hour_fitness_facilities",
          "twenty_four_hour_front_desk",
          "wardrobe_or_closet",
          "washer",
          "water_view",
          "waterfront",
          "wheelchair_accessible_parking",
          "wheelchair_accessible_path_of_travel"
        ],
        "example": "free_wifi"
      },
      "amenity": {
        "type": "object",
        "title": "Amenity",
        "description": "Lodging amenity information",
        "required": [
          "amenity_type",
          "name"
        ],
        "properties": {
          "amenity_type": {
            "$ref": "#/components/schemas/amenity_type"
          },
          "name": {
            "description": "Display name of the amenity",
            "type": "string",
            "example": "Free WiFi"
          },
          "value": {
            "description": "Optional numeric value associated with the amenity",
            "type": "integer",
            "example": 100
          }
        }
      },
      "bed_configuration": {
        "type": "object",
        "title": "BedConfiguration",
        "description": "Bed configuration information for a room",
        "required": [
          "quantity",
          "bed_type"
        ],
        "properties": {
          "quantity": {
            "description": "Number of beds of this type",
            "type": "integer",
            "minimum": 1,
            "example": 2
          },
          "bed_type": {
            "$ref": "#/components/schemas/bed_type"
          }
        }
      },
      "bed_type": {
        "type": "string",
        "title": "BedType",
        "description": "Type of bed available in a room",
        "enum": [
          "double",
          "futon",
          "king",
          "murphy",
          "queen",
          "sofa",
          "tatami",
          "twin",
          "single",
          "full",
          "run_of_the_house",
          "dorm",
          "water",
          "bunk",
          "crib",
          "rollaway",
          "trundle",
          "unspecified"
        ],
        "example": "king"
      },
      "media": {
        "title": "Media",
        "description": "Visual media content for lodging properties, including images and videos that showcase\nthe property's features, amenities, and ambiance to potential guests. \n\nMedia Types:\n- Images: High-quality photographs of rooms, amenities, exterior views, and local attractions\n- Videos: Video content showcasing property features, amenities, and ambiance\n",
        "oneOf": [
          {
            "$ref": "#/components/schemas/media_image"
          },
          {
            "$ref": "#/components/schemas/media_video"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "image": "#/components/schemas/media_image",
            "video": "#/components/schemas/media_video"
          }
        }
      },
      "media_image": {
        "type": "object",
        "title": "MediaImage",
        "description": "Image media content for a lodging",
        "required": [
          "type",
          "url",
          "links"
        ],
        "properties": {
          "type": {
            "$ref": "#/components/schemas/media_type"
          },
          "url": {
            "description": "URL to the original media content resource, this is not resized",
            "type": "string",
            "format": "uri",
            "example": "https://example.com/images/hotel-lobby.jpg"
          },
          "category": {
            "$ref": "#/components/schemas/media_category"
          },
          "caption": {
            "description": "Optional caption for the image",
            "type": "string",
            "example": "Spacious hotel lobby with modern decor"
          },
          "is_primary": {
            "description": "Indicates if this is the primary image for the lodging",
            "type": "boolean",
            "example": true
          },
          "links": {
            "description": "Links to the media content at different sizes.",
            "type": "object",
            "properties": {
              "1440px": {
                "$ref": "#/components/schemas/media_image_link"
              }
            },
            "example": {
              "1440px": {
                "url": "https://i.travelapi.com/hotels/1000000/20000/15300/15237/bef1b976_t.jpg"
              }
            }
          }
        }
      },
      "media_type": {
        "title": "MediaType",
        "description": "Type of media content",
        "type": "string",
        "enum": [
          "image",
          "video"
        ],
        "example": "image"
      },
      "media_video": {
        "type": "object",
        "title": "MediaVideo",
        "description": "Video media content for a lodging",
        "required": [
          "type",
          "url",
          "thumbnail_url"
        ],
        "properties": {
          "type": {
            "$ref": "#/components/schemas/media_type"
          },
          "url": {
            "description": "URL to the original media content resource",
            "type": "string",
            "format": "uri",
            "example": "https://example.com/videos/hotel-tour.mp4"
          },
          "thumbnail_url": {
            "description": "URL to the thumbnail image for the video",
            "type": "string",
            "format": "uri",
            "example": "https://example.com/videos/hotel-tour-thumbnail.jpg"
          }
        }
      },
      "media_image_link": {
        "type": "object",
        "title": "MediaImageLink",
        "description": "A link to a media image at a specific size",
        "required": [
          "url"
        ],
        "properties": {
          "url": {
            "description": "URL to the media content at this size",
            "type": "string",
            "format": "uri",
            "example": "https://i.travelapi.com/hotels/1000000/20000/15300/15237/bef1b976_t.jpg"
          }
        }
      },
      "media_category": {
        "type": "string",
        "title": "MediaCategory",
        "description": "Category of lodging media content",
        "enum": [
          "primary",
          "lobby",
          "guest_room",
          "pool",
          "fitness",
          "spa",
          "sports_facility",
          "amenity",
          "dining",
          "bar",
          "interior",
          "exterior",
          "view",
          "point_of_interest",
          "living_area",
          "kitchen",
          "bedroom",
          "bathroom",
          "uncategorized"
        ],
        "example": "primary"
      },
      "host_info": {
        "type": "object",
        "title": "HostInfo",
        "description": "Information about the host of a lodging property",
        "required": [
          "name"
        ],
        "properties": {
          "name": {
            "description": "Name of the host",
            "type": "string",
            "example": "Sarah Johnson"
          },
          "image_url": {
            "description": "URL to the host's profile image",
            "type": "string",
            "format": "uri",
            "example": "https://example.com/hosts/sarah-johnson-profile.jpg"
          },
          "description": {
            "$ref": "#/components/schemas/localizable_string"
          },
          "spoken_languages": {
            "description": "Spoken languages the host can speak",
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "spanish",
              "english"
            ]
          }
        }
      },
      "unit_configuration": {
        "type": "object",
        "title": "UnitConfiguration",
        "description": "Configuration information for a lodging unit",
        "required": [
          "beds",
          "bedrooms",
          "bathrooms",
          "room_configurations"
        ],
        "properties": {
          "beds": {
            "description": "Total number of beds in the house",
            "type": "integer",
            "example": 3
          },
          "bedrooms": {
            "description": "Number of bedrooms in the house",
            "type": "integer",
            "example": 2
          },
          "bathrooms": {
            "description": "Number of bathrooms in the house",
            "type": "number",
            "example": 2.5
          },
          "room_configurations": {
            "description": "List of rooms configurations in the unit",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/room_configuration"
            }
          },
          "max_occupancy": {
            "description": "Maximum occupancy of the unit",
            "type": "integer",
            "example": 6
          },
          "max_adults": {
            "description": "Maximum number of adults allowed in the unit",
            "type": "integer",
            "example": 4
          },
          "max_children": {
            "description": "Maximum number of children allowed in the unit",
            "type": "integer",
            "example": 2
          },
          "size_sq_ft": {
            "description": "Square footage of the unit",
            "type": "integer",
            "example": 350
          }
        }
      },
      "lodging_type": {
        "title": "LodgingType",
        "description": "Type of lodging property.",
        "type": "string",
        "enum": [
          "hotel",
          "vacation_rental"
        ],
        "example": "hotel"
      },
      "lodging_content": {
        "type": "object",
        "title": "LodgingContent",
        "description": "Comprehensive content information for a lodging property, including all details needed for\nguest discovery, evaluation, and booking decisions. This serves as the base schema for all\nlodging types and contains core information applicable to any accommodation property.\n\nThis schema uses discriminator patterns to support different lodging types (hotels, vacation rentals)\nwhile maintaining a consistent base structure. The content includes property details, location\ninformation, amenities, media assets, and operational information.\n",
        "required": [
          "address",
          "property_type",
          "name",
          "phone",
          "descriptions",
          "rating",
          "check_in",
          "geo_location",
          "media_list",
          "amenities",
          "policies",
          "source_mappings"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/hotel_content"
          },
          {
            "$ref": "#/components/schemas/vacation_rental_content"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "hotel": "#/components/schemas/hotel_content",
            "vacation_rental": "#/components/schemas/vacation_rental_content"
          }
        },
        "properties": {
          "property_type": {
            "$ref": "#/components/schemas/property_type"
          },
          "descriptions": {
            "$ref": "#/components/schemas/descriptions"
          },
          "name": {
            "description": "Lodging name",
            "type": "string"
          },
          "phone": {
            "description": "Lodging phone number",
            "type": "string"
          },
          "fax": {
            "description": "Lodging fax number",
            "type": "string"
          },
          "address": {
            "$ref": "#/components/schemas/address"
          },
          "rating": {
            "$ref": "#/components/schemas/rating"
          },
          "check_in": {
            "$ref": "#/components/schemas/check_in"
          },
          "check_out": {
            "$ref": "#/components/schemas/check_out"
          },
          "geo_location": {
            "$ref": "#/components/schemas/geo_location"
          },
          "media_list": {
            "type": "array",
            "description": "List of media items associated with the lodging",
            "items": {
              "$ref": "#/components/schemas/media"
            }
          },
          "registration_number": {
            "description": "Lodging registration number",
            "type": "string"
          },
          "amenities": {
            "description": "List of amenities available at the lodging",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/amenity"
            }
          },
          "policies": {
            "description": "Policies applicable to the lodging",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/policy"
            }
          },
          "time_zone": {
            "$ref": "#/components/schemas/time_zone"
          },
          "source_mappings": {
            "description": "Map of source -> list of property ids. Used to map our properties to other content sources.",
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        }
      },
      "vacation_rental_content": {
        "type": "object",
        "title": "VacationRentalContent",
        "description": "Content information specific to vacation rental properties, extending the base lodging content\nwith fields relevant to short-term rental accommodations. Vacation rentals are typically private\nresidences or units rented directly from property owners or managers, offering home-like amenities\nand more personalized, residential experiences compared to hotels.\n\nVacation Rental Specific Features:\n- House rules and property-specific policies set by individual owners\n- Host information for direct guest communication and local expertise\n- Unit configuration details for space planning and occupancy decisions\n- Multi-unit property indicators for complex or compound properties\n",
        "allOf": [
          {
            "$ref": "#/components/schemas/lodging_content"
          },
          {
            "type": "object",
            "required": [
              "type",
              "house_rules",
              "host_info",
              "unit_configuration"
            ],
            "properties": {
              "type": {
                "description": "Discriminator value for vacation rental content.",
                "type": "string",
                "enum": [
                  "vacation_rental"
                ],
                "example": "vacation_rental"
              },
              "house_rules": {
                "$ref": "#/components/schemas/localizable_string"
              },
              "host_info": {
                "$ref": "#/components/schemas/host_info"
              },
              "unit_configuration": {
                "$ref": "#/components/schemas/unit_configuration"
              },
              "multi_unit": {
                "description": "Indicates if the property is a multi-unit complex",
                "type": "boolean",
                "example": false
              }
            }
          }
        ]
      },
      "hotel_content": {
        "type": "object",
        "title": "HotelContent",
        "description": "Content information specific to hotel properties, extending the base lodging content with\nhotel-industry specific fields and business concepts. Hotels are typically commercial\naccommodations with daily housekeeping, front desk services, and standardized amenities.\n\nHotel-Specific Features:\n- Chain and brand affiliation indicating service standards and loyalty programs\n- Accepted payment methods for guest transactions\n- Corporate operational standards and guest service protocols\n",
        "allOf": [
          {
            "$ref": "#/components/schemas/lodging_content"
          },
          {
            "type": "object",
            "required": [
              "type",
              "chain",
              "brand",
              "on_site_payment_methods",
              "rooms"
            ],
            "properties": {
              "type": {
                "description": "Discriminator value for hotel content.",
                "type": "string",
                "enum": [
                  "hotel"
                ],
                "example": "hotel"
              },
              "chain": {
                "$ref": "#/components/schemas/chain"
              },
              "brand": {
                "$ref": "#/components/schemas/brand"
              },
              "rooms": {
                "description": "List of rooms available at the lodging",
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/room_info"
                }
              },
              "on_site_payment_methods": {
                "description": "List of payment methods accepted at the hotel",
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/payment_method"
                }
              },
              "emails": {
                "description": "Email addresses the property publishes for guest contact, such as a front desk or reservations mailbox. Absent when the property publishes none.",
                "type": "array",
                "items": {
                  "type": "string"
                },
                "example": [
                  "reservations@example-hotel.com",
                  "frontdesk@example-hotel.com"
                ]
              }
            }
          }
        ]
      },
      "lodging": {
        "type": "object",
        "title": "Lodging",
        "description": "Complete lodging entity representing a bookable accommodation property with all associated\ncontent and metadata. This is the top-level object that combines the unique property identifier\nwith comprehensive content information and discriminated content based on lodging type \n(hotel vs vacation rental).\n\nStructure:\n- Unique identifier for API operations and data consistency\n- Polymorphic content supporting different accommodation types\n",
        "required": [
          "lodging_id",
          "content"
        ],
        "properties": {
          "lodging_id": {
            "$ref": "#/components/schemas/lodging_id"
          },
          "content": {
            "$ref": "#/components/schemas/lodging_content"
          }
        }
      },
      "property_type": {
        "type": "string",
        "title": "PropertyType",
        "description": "Classification of lodging property types, indicating the style, amenities, and target market of the accommodation.\n",
        "enum": [
          "agritourism_property",
          "all_inclusive",
          "aparthotel",
          "apartment",
          "bed_and_breakfast",
          "cabin",
          "camper_rv",
          "campsite",
          "capsule_hotel",
          "castle",
          "chalet",
          "condo",
          "condominium_resort",
          "cottage",
          "country_house",
          "cruise",
          "guesthouse",
          "holiday_park",
          "hostal",
          "hostel",
          "hotel",
          "houseboat",
          "inn",
          "lodge",
          "motel",
          "nature_lodge",
          "palace",
          "pension",
          "pousada",
          "ranch",
          "residence",
          "resort",
          "riad",
          "ryokan",
          "safari",
          "serviced_apartment",
          "town_house",
          "tree_house",
          "vacation_home",
          "villa"
        ],
        "example": "resort"
      },
      "descriptions": {
        "type": "object",
        "title": "Descriptions",
        "description": "Collection of descriptive content for a lodging property, used to provide guests with detailed information\nabout the property's features, amenities, location, and unique characteristics.\n",
        "required": [
          "general"
        ],
        "properties": {
          "general": {
            "$ref": "#/components/schemas/localizable_string"
          }
        }
      },
      "card_type": {
        "type": "string",
        "title": "CardType",
        "description": "Type of credit/debit card",
        "enum": [
          "visa",
          "master",
          "american_express",
          "diners_club",
          "discover",
          "jcb",
          "dankort",
          "maestro",
          "unknown"
        ],
        "example": "visa"
      },
      "payment_method": {
        "type": "object",
        "title": "PaymentMethod",
        "description": "Payment method information",
        "oneOf": [
          {
            "$ref": "#/components/schemas/card_payment_method"
          },
          {
            "$ref": "#/components/schemas/cash_payment_method"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "card": "#/components/schemas/card_payment_method",
            "cash": "#/components/schemas/cash_payment_method"
          }
        }
      },
      "card_payment_method": {
        "type": "object",
        "title": "CardPaymentMethod",
        "description": "Card payment method specific information",
        "required": [
          "type",
          "accepted",
          "card_type"
        ],
        "properties": {
          "type": {
            "description": "Discriminator value for card payment method",
            "type": "string",
            "enum": [
              "card"
            ],
            "example": "card"
          },
          "accepted": {
            "description": "Indicates if the payment method is accepted",
            "type": "boolean",
            "example": true
          },
          "card_type": {
            "$ref": "#/components/schemas/card_type"
          }
        }
      },
      "cash_payment_method": {
        "type": "object",
        "title": "CashPaymentMethod",
        "description": "Cash payment method information",
        "required": [
          "type",
          "accepted"
        ],
        "properties": {
          "type": {
            "description": "Discriminator value for cash payment method",
            "type": "string",
            "enum": [
              "cash"
            ],
            "example": "cash"
          },
          "accepted": {
            "description": "Indicates if the payment method is accepted",
            "type": "boolean",
            "example": true
          }
        }
      },
      "commission": {
        "type": "object",
        "title": "Commission",
        "description": "The estimated commission amount included in the base price. If not specified, there is no commission on this rate.",
        "allOf": [
          {
            "$ref": "#/components/schemas/monetary_amount"
          }
        ]
      },
      "contact_detail": {
        "type": "object",
        "title": "ContactDetail",
        "description": "Property contact details",
        "required": [
          "contact_type"
        ],
        "properties": {
          "name": {
            "description": "Display name of the contact person",
            "type": "string",
            "example": "Jane Doe"
          },
          "phone_number": {
            "type": "string",
            "description": "Phone number. Preferred key.\nFor backward compatibility, the API accepts and returns the deprecated key `phoneNumber` (camelCase) as well; clients may use either.\n",
            "example": "123-456-7890"
          },
          "email": {
            "description": "Email address for the contact",
            "type": "string",
            "example": "abcd@xyz.com"
          },
          "contact_type": {
            "description": "Type of contact (primary, emergency, or unspecified)",
            "type": "string",
            "enum": [
              "primary",
              "emergency",
              "unspecified"
            ],
            "example": "primary"
          }
        }
      },
      "additional_information": {
        "title": "AdditionalInformation",
        "description": "Additional information included about the hotel that depends on the lodging type\n",
        "oneOf": [
          {
            "$ref": "#/components/schemas/homes_additional_information"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "homes": "#/components/schemas/homes_additional_information"
          }
        }
      },
      "homes_additional_information": {
        "description": "Additional information about a homes lodging",
        "title": "HomesAdditionalInformation",
        "type": "object",
        "required": [
          "type",
          "host_contact_details"
        ],
        "properties": {
          "type": {
            "description": "Discriminator value for homes lodging additional information",
            "type": "string",
            "enum": [
              "homes"
            ],
            "example": "homes"
          },
          "host_contact_details": {
            "description": "List of property contact details",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/contact_detail"
            }
          }
        },
        "example": {
          "type": "homes",
          "host_contact_details": [
            {
              "contact_type": "primary",
              "name": "Jane Doe",
              "phone_number": "123-456-7890",
              "email": "abcd@xyz.com"
            },
            {
              "contact_type": "emergency",
              "name": "John Doe",
              "phone_number": "123-456-7890",
              "email": "abcd@xyz.com"
            }
          ]
        }
      },
      "hotels_additional_information": {
        "description": "Additional information about a hotel booking",
        "title": "HotelsAdditionalInformation",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "description": "Discriminator value for hotel lodging additional information",
            "type": "string",
            "enum": [
              "hotels"
            ],
            "example": "hotels"
          },
          "hotel_confirmation_number": {
            "description": "Optional. The unique reservation identifier generated by the hotel's Property Management System (PMS) or Central Reservation System (CRS). When present, this is the primary reference number the guest should provide to the front desk upon check-in. This field may be omitted for some suppliers or bookings (for example, in pre-confirmation/on-request states or when the hotel has not yet issued a confirmation number), so clients MUST NOT assume it will always be returned.",
            "type": "string",
            "example": "MAR-889900X"
          }
        },
        "example": {
          "type": "hotels",
          "hotel_confirmation_number": "MAR-889900X"
        }
      },
      "lodging_details": {
        "title": "LodgingDetails",
        "description": "Lodging-type-specific details. Replaces the deprecated additional_information field. Only one of the sub-fields will be present per booking, corresponding to the lodging type.",
        "type": "object",
        "properties": {
          "homes": {
            "$ref": "#/components/schemas/homes_additional_information"
          },
          "hotels": {
            "$ref": "#/components/schemas/hotels_additional_information"
          }
        }
      },
      "recommended_sell_price": {
        "type": "object",
        "title": "RecommendedSellPrice",
        "description": "The recommended tax inclusive sell price for this rate.\n\nIf the payment schedule include amounts to be paid both at booking and at check-in, this recommended sell price only\nincludes the taxes and fees paid at booking.\n\n\nAvailability of this field depends on configuration and is not guaranteed.\n\nHopper provides this field to allow partners to display pricing in a variety of ways.\nUltimately, however, each partner using Hopper’s API is responsible for ensuring that the way it displays Hopper\ntravel information and pricing complies with the law.\n",
        "allOf": [
          {
            "$ref": "#/components/schemas/monetary_amount"
          }
        ]
      },
      "room_amenity_type": {
        "type": "string",
        "title": "RoomAmenityType",
        "description": "Type of amenity available in a specific room",
        "enum": [
          "accessibility",
          "air_conditioning",
          "bar",
          "childcare",
          "coffee_maker",
          "coffee_tea",
          "fitness_center",
          "free_wifi",
          "hair_dryer",
          "heating",
          "hot_tub",
          "kitchen_essentials",
          "laundry",
          "outdoor_space",
          "pool",
          "room_wifi",
          "workspace",
          "breakfast_included",
          "private_open_air_bath",
          "smoking",
          "western_style",
          "japanese_style",
          "rollaway_or_extra_beds_available"
        ],
        "example": "free_wifi"
      },
      "room_view": {
        "type": "string",
        "title": "RoomView",
        "description": "Type of view available from a specific room",
        "enum": [
          "bay",
          "beach",
          "canal",
          "city",
          "courtyard",
          "desert",
          "garden",
          "golf",
          "harbor",
          "hill",
          "lagoon",
          "lake",
          "marina",
          "mountain",
          "ocean",
          "park",
          "partial_lake",
          "partial_ocean",
          "partial_sea",
          "pool",
          "resort",
          "river",
          "sea",
          "valley",
          "vineyard",
          "water"
        ],
        "example": "ocean"
      },
      "smoking_policy": {
        "type": "string",
        "title": "SmokingPolicy",
        "description": "Smoking policy of a room. Omitted when unknown; absence does not mean non-smoking.",
        "enum": [
          "smoking",
          "non_smoking",
          "smoking_and_non_smoking"
        ],
        "example": "non_smoking"
      },
      "room_accessibility_feature": {
        "type": "string",
        "title": "RoomAccessibilityFeature",
        "description": "An accessibility feature available in a room.\n\n**Note:** New accessibility features may be added at any time. API clients should handle unknown feature values gracefully to maintain forward compatibility.\n",
        "enum": [
          "wheelchair_accessible",
          "roll_in_shower",
          "accessible_bathtub",
          "wheelchair_accessible_bathroom_vanity",
          "wheelchair_width_doorway",
          "visual_fire_alarm",
          "visual_doorbell_or_knocker_notification",
          "telephone_accessibility_kit"
        ],
        "example": "roll_in_shower"
      },
      "room_media": {
        "title": "RoomMedia",
        "description": "Media asset with its associated room media type",
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/media"
          },
          {
            "type": "object",
            "required": [
              "media_type"
            ],
            "properties": {
              "media_type": {
                "$ref": "#/components/schemas/RoomMediaType"
              }
            }
          }
        ]
      },
      "room_amenity": {
        "type": "object",
        "title": "RoomAmenity",
        "description": "Room-specific amenity information",
        "required": [
          "amenity_type",
          "name"
        ],
        "properties": {
          "amenity_type": {
            "$ref": "#/components/schemas/room_amenity_type"
          },
          "name": {
            "description": "Display name of the room amenity",
            "type": "string",
            "example": "Free WiFi"
          }
        }
      },
      "unavailability_reason": {
        "description": "Describes why a lodging is unavailable\nunavailable_dates: The lodging is unavailable for at least one of the requested dates\nmin_stay_violation: The requested stay is shorter than the minimum stay requirement\nmax_stay_violation: The requested stay is longer than the maximum stay requirement\noccupancy_violation: The requested occupancy exceeds the maximum allowed occupancy\npet_policy_violation: The lodging does not allow pets, but the request includes pets\ncheckin_not_allowed: The requested check-in date is not allowed (e.g., check-in only on certain days)\ncheckout_not_allowed: The requested check-out date is not allowed (e.g., check-out only on certain days)\nmin_booking_window_violation: The booking was made too close to the check-in date\n",
        "title": "UnavailabilityReason",
        "type": "string",
        "enum": [
          "unavailable_dates",
          "min_stay_violation",
          "max_stay_violation",
          "occupancy_violation",
          "pet_policy_violation",
          "checkin_not_allowed",
          "checkout_not_allowed",
          "min_booking_window_violation"
        ],
        "example": "min_stay_violation"
      },
      "payment_clause": {
        "title": "PaymentClause",
        "description": "Provides information about payments restrictions, constraints, or requirements.\n",
        "oneOf": [
          {
            "$ref": "#/components/schemas/payment_clause_card_on_file"
          },
          {
            "$ref": "#/components/schemas/payment_clause_text"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "card_on_file": "#/components/schemas/payment_clause_card_on_file",
            "text": "#/components/schemas/payment_clause_text"
          }
        }
      },
      "payment_clause_card_on_file": {
        "type": "object",
        "title": "PaymentClauseCardOnFile",
        "description": "Card on file payment clause",
        "required": [
          "type",
          "currency",
          "amount"
        ],
        "properties": {
          "type": {
            "description": "Discriminator value for card-on-file payment clause",
            "type": "string",
            "enum": [
              "card_on_file"
            ],
            "example": "card_on_file"
          },
          "currency": {
            "$ref": "#/components/schemas/currency"
          },
          "amount": {
            "$ref": "#/components/schemas/amount"
          },
          "card_on_file_description": {
            "description": "Describes the modalities of the card on file payment clause.",
            "type": "string"
          }
        },
        "example": {
          "type": "card_on_file",
          "currency": "USD",
          "amount": "10.00",
          "card_on_file_description": "By providing your card details, you agree to allow us to charge your card for any cancellation fees that may apply according to the property's cancellation policy."
        }
      },
      "payment_clause_text": {
        "type": "object",
        "title": "PaymentClauseText",
        "description": "Text payment clause",
        "required": [
          "type",
          "description"
        ],
        "properties": {
          "type": {
            "description": "Discriminator value for text payment clause",
            "type": "string",
            "enum": [
              "text"
            ],
            "example": "text"
          },
          "description": {
            "description": "Describes the modalities of the payment clause.",
            "type": "string"
          }
        },
        "example": {
          "type": "text",
          "description": "By providing your card details, you agree to allow us to charge your card for any cancellation fees that may apply according to the property's cancellation policy."
        }
      },
      "monetary_amount": {
        "type": "object",
        "title": "MonetaryAmount",
        "description": "A currency qualified monetary amount",
        "required": [
          "currency",
          "amount"
        ],
        "properties": {
          "currency": {
            "$ref": "#/components/schemas/currency"
          },
          "amount": {
            "$ref": "#/components/schemas/amount"
          }
        },
        "example": {
          "currency": "USD",
          "amount": "10.00"
        }
      },
      "locale": {
        "type": "string",
        "title": "Locale",
        "description": "Locale code representing the language and regional variation of text content.\nThis follows the IETF RFC 5646 standard for language tags, which provides a standardized way to identify languages.\n\nCommon examples:\n- \"en-US\" for U.S. English\n- \"fr-FR\" for French in France\n- \"es-ES\" for Spanish in Spain\n- \"zh-CN\" for Chinese in China\n- \"ja-JP\" for Japanese in Japan\n",
        "pattern": "^[a-z]{2,4}(-[A-Z][a-z]{3})?(-([A-Z]{2}|[0-9]{3}))?$",
        "example": "en-US"
      },
      "localizable_string": {
        "type": "object",
        "title": "LocalizableString",
        "description": "A LocalizableString object contains the text value and its associated locale. The value field is a required string with the actual text.\nThe locale field is an optional string representing the language and region of the value. The locale is omitted\nwhen Hopper can't guarantee the language of the value.\n",
        "required": [
          "value"
        ],
        "properties": {
          "value": {
            "description": "The actual text value, which can vary based on the locale.\n",
            "type": "string",
            "example": "Oceanside Hotel is a remarkable oasis boasting eye-catching design, luxurious amenities, and cozy stylishly furnished rooms. Each accommodation has white linens, plush beds, luxury Lady Primrose bath products, and a well-appointed decor. Guests can enjoy free WiFi, beach amenities, outdoor activities, and watersports. As the Miami sun warms your skin, retreat to our relaxing pool area with lounges or grab a bite at The Tavern, our full-service restaurant and bar, open for breakfast, lunch, and dinner. Whether you are visiting for business or pleasure, the Oceanside Hotel is an intimate boutique experience in Miami Beach.\n"
          },
          "locale": {
            "$ref": "#/components/schemas/locale"
          }
        }
      },
      "policy": {
        "description": "Policies applicable to the lodging",
        "title": "Policy",
        "type": "object",
        "required": [
          "policy_type"
        ],
        "properties": {
          "policy_type": {
            "$ref": "#/components/schemas/policy_type"
          },
          "text": {
            "$ref": "#/components/schemas/localizable_string"
          }
        }
      },
      "policy_type": {
        "type": "string",
        "title": "PolicyType",
        "description": "Type of Policy applicable to the lodging",
        "enum": [
          "pets_allowed",
          "pets_not_allowed",
          "pets_partially_allowed",
          "parties_allowed",
          "parties_not_allowed",
          "smoking_allowed",
          "smoking_not_allowed",
          "children_allowed",
          "children_not_allowed",
          "general"
        ],
        "example": "pets_allowed"
      },
      "room_configuration": {
        "type": "object",
        "title": "RoomConfiguration",
        "description": "Room configuration information",
        "required": [
          "name",
          "bed_configurations"
        ],
        "properties": {
          "name": {
            "description": "Room name",
            "type": "string",
            "example": "Master Bedroom"
          },
          "description": {
            "$ref": "#/components/schemas/localizable_string"
          },
          "bed_configurations": {
            "description": "List of bed configurations in the room",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/bed_configuration"
            }
          }
        }
      },
      "catalog_event_type": {
        "type": "string",
        "title": "CatalogEventType",
        "description": "Type of catalog event for filtering lodging changes",
        "enum": [
          "added",
          "updated",
          "delisted"
        ],
        "example": "added"
      },
      "merchandising": {
        "type": "object",
        "title": "Merchandising",
        "description": "Merchandising information for promotional badging and marketing displays.",
        "required": [
          "promotional_tags"
        ],
        "properties": {
          "promotional_tags": {
            "type": "array",
            "description": "List of promotional tags that can be displayed to highlight special offers or rate characteristics. May be empty if no promotional tags apply.\n\n**Note:** New promotional tags may be added at any time. API clients should handle unknown tag values gracefully to maintain forward compatibility.\n",
            "uniqueItems": true,
            "items": {
              "$ref": "#/components/schemas/promotional_tag"
            }
          }
        }
      },
      "promotional_tag": {
        "type": "object",
        "title": "PromotionalTag",
        "description": "A promotional tag identifying special rate characteristics or marketing campaigns.\n\n**Note:** New promotional tags may be added at any time. API clients should handle unknown tag values gracefully to maintain forward compatibility.\n",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "The type of promotional tag:\n- `GENERIC`: General promotional offer\n- `SEASONAL_DEAL`: Seasonal promotional offer or deal\n- `LIMITED_TIME_OFFER`: Limited time promotional offer\n- `MOBILE_RATE`: Mobile-exclusive rate\n- `CUG_RATE`: Closed user group rate\n- `PACKAGE_RATE`: Package rate\n- `CORPORATE_RATE`: Corporate rate\n- `LAST_MINUTE`: Last minute booking discount. Currently only applicable to Homes.\n- `EARLY_BIRD`: Early booking discount. Currently only applicable to Homes.\n- `LENGTH_OF_STAY`: Weekly, monthly, or long stay discount. Currently only applicable to Homes.\n\n**Note:** New promotional tags may be added at any time. API clients should handle unknown tag values gracefully to maintain forward compatibility.\n",
            "enum": [
              "GENERIC",
              "SEASONAL_DEAL",
              "CUG_RATE",
              "PACKAGE_RATE",
              "MOBILE_RATE",
              "LIMITED_TIME_OFFER",
              "CORPORATE_RATE",
              "LAST_MINUTE",
              "EARLY_BIRD",
              "LENGTH_OF_STAY"
            ],
            "example": "SEASONAL_DEAL"
          }
        }
      },
      "Time": {
        "type": "object",
        "title": "Time",
        "description": "Time of day without date information",
        "required": [
          "hours",
          "minutes"
        ],
        "properties": {
          "hours": {
            "description": "Hours in 24-hour format (0-23)",
            "type": "integer",
            "minimum": 0,
            "maximum": 23,
            "example": 15
          },
          "minutes": {
            "description": "Minutes (0-59)",
            "type": "integer",
            "minimum": 0,
            "maximum": 59,
            "example": 30
          },
          "seconds": {
            "description": "Seconds (0-59), defaults to 0",
            "type": "integer",
            "minimum": 0,
            "maximum": 59,
            "default": 0,
            "example": 0
          }
        }
      },
      "RoomMediaType": {
        "type": "string",
        "title": "RoomMediaType",
        "description": "Type of media associated with a room\n- comparable_room: Media is from a comparable room\n- exact_room: Media is exactly referring to this room\n- hotel_media: Media is the pictures of the hotel\n",
        "enum": [
          "comparable_room",
          "exact_room",
          "hotel_media"
        ],
        "example": "exact_room"
      },
      "PointOfSale": {
        "type": "object",
        "title": "PointOfSale",
        "description": "Description of the point of sale where the booking is made. This is typically the user's location.",
        "required": [
          "country"
        ],
        "properties": {
          "country": {
            "$ref": "#/components/schemas/country"
          }
        }
      },
      "TaxCategory": {
        "type": "string",
        "title": "TaxCategory",
        "description": "Reason for the tax. This is a non-exhaustive list of enum values, which will be extended in the future.\n",
        "enum": [
          "tax_recovery_charges",
          "sales_tax",
          "city_tax"
        ],
        "example": "city_tax"
      },
      "FeeCategory": {
        "type": "string",
        "title": "FeeCategory",
        "description": "Fee category. This is a non-exhaustive list of enum values, which will be extended in the future.\n",
        "enum": [
          "property_fee",
          "hotel_fee",
          "resort_fee",
          "traveler_service_fee",
          "cleaning_fee",
          "pet_fee"
        ],
        "example": "hotel_fee"
      },
      "PenaltyRange": {
        "type": "object",
        "title": "PenaltyRange",
        "required": [
          "start_time",
          "end_time",
          "penalty"
        ],
        "properties": {
          "start_time": {
            "description": "Start time of the penalty range (Inclusive), in ISO 8601 format",
            "type": "string",
            "format": "date-time",
            "example": "2020-01-01T00:00:00Z"
          },
          "end_time": {
            "description": "End time of the penalty range (Exclusive), in ISO 8601 format",
            "type": "string",
            "format": "date-time",
            "example": "2020-01-02T00:00:00Z"
          },
          "penalty": {
            "description": "Monetary amount withheld from the client if cancellation falls within this range",
            "allOf": [
              {
                "$ref": "#/components/schemas/monetary_amount"
              },
              {
                "type": "object",
                "description": "Penalty amount withheld from the client upon cancellation."
              }
            ]
          }
        }
      },
      "PrimaryGuest": {
        "title": "PrimaryGuest",
        "description": "Details of the primary guest who will check in for the reservation.",
        "type": "object",
        "required": [
          "first_name",
          "last_name",
          "email"
        ],
        "properties": {
          "first_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "format": "person-name",
            "pattern": "^[\\u0000-\\uD7FF\\uE000-\\uFFFF]+$",
            "description": "First name of the primary guest. Validation allows ANY character in any language (Latin, CJK, Arabic, etc), numbers, and punctuation. \nStrictly blocks Emojis and other 4-byte Unicode characters.",
            "example": "Fred"
          },
          "last_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "format": "person-name",
            "pattern": "^[\\u0000-\\uD7FF\\uE000-\\uFFFF]+$",
            "description": "Last name of the primary guest. Validation allows ANY character in any language, numbers, and punctuation. Strictly blocks Emojis and other 4-byte Unicode characters.",
            "example": "Lalonde"
          },
          "email": {
            "type": "string",
            "description": "Email address of the primary guest.",
            "format": "email",
            "example": "fred@example.com"
          },
          "phone": {
            "type": "string",
            "description": "Phone number of the primary guest.",
            "pattern": "^\\+?[0-9]{7,15}$",
            "example": "+18339334671"
          },
          "hotel_loyalty": {
            "description": "Optional. The guest's hotel loyalty memberships. Send whichever the guest holds; we forward the one matching the program on the rate being booked.\nAlways accepted, whatever the quote said. `loyalty.loyalty_transmission` on the quote advises whether collecting a membership is worth it — where it is not `eligible` we may have no way to transmit one, so the guest should verify at check-in — but it never gates this field.\n",
            "type": "array",
            "maxItems": 10,
            "items": {
              "$ref": "#/components/schemas/hotel_loyalty"
            }
          }
        }
      },
      "RefundAmount": {
        "title": "RefundAmount",
        "type": "object",
        "description": "The amount that will be refunded to the client",
        "required": [
          "amount",
          "currency"
        ],
        "properties": {
          "amount": {
            "$ref": "#/components/schemas/amount"
          },
          "currency": {
            "$ref": "#/components/schemas/currency"
          }
        }
      },
      "IATAAirportCode": {
        "type": "string",
        "title": "IATAAirportCode",
        "description": "The 3-letter identifier (e.g., LAX, SFO). Must be strictly uppercase.",
        "minLength": 3,
        "maxLength": 3,
        "pattern": "^[A-Z]{3}$",
        "example": "JFK"
      },
      "CoordinateRings": {
        "type": "array",
        "title": "CoordinateRings",
        "description": "An array of linear ring coordinate arrays. \n- Index 0: Exterior ring (boundary).\n- Index 1+: Interior rings (holes).\n",
        "minItems": 1,
        "items": {
          "type": "array",
          "minItems": 4,
          "items": {
            "type": "array",
            "description": "A single point: [longitude, latitude]",
            "minItems": 2,
            "maxItems": 2,
            "items": {
              "type": "number"
            },
            "example": [
              -74.006,
              40.7128
            ]
          }
        }
      },
      "Radius": {
        "type": "object",
        "title": "Radius",
        "description": "The distance measurement defining the search extent from the center.",
        "required": [
          "value",
          "unit"
        ],
        "properties": {
          "value": {
            "type": "number",
            "description": "The magnitude of the distance. When converted to meters, must be between 1000 m and 100 km (100,000 m) inclusive. The allowed numeric range depends on the unit (e.g., 1–100 km, 1000–100000 m).",
            "minimum": 0,
            "exclusiveMinimum": true,
            "maximum": 500000,
            "example": 5
          },
          "unit": {
            "type": "string",
            "description": "The unit of measurement.",
            "enum": [
              "m",
              "km",
              "mi",
              "ft"
            ],
            "example": "km"
          }
        }
      },
      "GeoResult": {
        "type": "object",
        "title": "GeoResult",
        "required": [
          "lodging_id"
        ],
        "properties": {
          "lodging_id": {
            "$ref": "#/components/schemas/lodging_id"
          },
          "distance": {
            "$ref": "#/components/schemas/GeoResultDistance"
          }
        }
      },
      "GeoResultDistance": {
        "type": "object",
        "title": "GeoResultDistance",
        "description": "Geodesic straight-line distance (WGS84 ellipsoid) from the search's\nresolved reference location to the lodging's coordinates. Not a travel\n(driving/walking) distance. Omitted when unknown for this lodging or\nwhen the search has no resolvable reference location.\n",
        "required": [
          "value",
          "unit"
        ],
        "properties": {
          "value": {
            "type": "number",
            "description": "The magnitude of the distance.",
            "example": 1834.6
          },
          "unit": {
            "type": "string",
            "description": "The unit of measurement. Currently always meters; other units may be\nadded later (handle unknown values gracefully, per Forward Compatibility).\n",
            "enum": [
              "m"
            ],
            "example": "m"
          }
        }
      }
    }
  }
}
