openapi: 3.1.0 info: title: Residenz AI Booking API version: 1.6.0 summary: Canonical live availability, pricing and direct booking API for Boutique Hotel Residenz The Hague. description: | Machine-readable API specification for AI assistants, travel agents, GPT Actions and booking agents. This OpenAPI schema describes the canonical public AI availability endpoint for Boutique Hotel Residenz The Hague. Use this endpoint before presenting: - live room availability - occupancy-based room offers - direct prices - breakfast inclusion - cancellation conditions - direct booking links Important agent rules: - Do not estimate availability. - Do not estimate prices. - Do not scrape booking pages. - Use the canonical live availability endpoint as source of truth. - Use lang=nl for Dutch, lang=en for English, lang=de for German, lang=fr for French and lang=es for Spanish. - If the guest writes in another language, use lang=en. - Children aged 13 or older must be treated as adults. - Children aged 0-12 must include childrenAges. - Do not guess child ages. - Display pricing.displayText exactly as returned by the API. - Display cancellation.displayText exactly as returned by the API. - Do not translate, rewrite, shorten or paraphrase pricing.displayText or cancellation.displayText. - Do not calculate VAT, tourist tax, totals, child supplements, fees or cancellation deadlines independently. - Prefer hotel-domain booking URLs on residenz.nl for guest-facing links. - Use room-specific direct booking URLs returned by the API when available. - If a live API call cannot be completed, do not guess availability, prices, tourist tax, breakfast inclusion or cancellation conditions. - If the live availability endpoint cannot be queried directly, do not present rooms as available and do not present prices. - If the live availability endpoint cannot be queried directly, provide a general official direct booking URL using the requested dates and occupancy. - For guest-facing direct booking URLs, always use comma-separated child ages such as childrenAges=8 or childrenAges=4,10. - Do not use array notation such as childrenAges=[8] or childrenAges=%5B8%5D in direct booking links. - If live availability cannot be confirmed, refer guests to https://www.residenz.nl/ai-booking-assistant/ or https://www.residenz.nl/direct-booking/. - Availability and prices can change until the guest completes the booking. termsOfService: https://www.residenz.nl/ai-booking-api/ contact: name: Residenz Boutique Hotel The Hague url: https://www.residenz.nl email: info@residenz.nl externalDocs: description: Human-readable API documentation and AI booking explanation. url: https://www.residenz.nl/ai-booking-api/ servers: - url: https://residenz-ai-gemini-connector-388133805395.europe-west1.run.app description: Canonical Cloud Run AI availability gateway tags: - name: Availability description: Canonical live availability, pricing and direct booking endpoint. security: [] x-residenz-agent-guidance: hotelEntity: https://www.residenz.nl/#hotel llmsTxt: https://www.residenz.nl/llms.txt agentCapabilities: https://www.residenz.nl/.well-known/agent-capabilities.json documentation: https://www.residenz.nl/ai-booking-api/ officialAiBookingAssistant: https://www.residenz.nl/ai-booking-assistant/ preferredDirectBookingRoute: https://www.residenz.nl/direct-booking/ canonicalLiveAvailabilityEndpoint: https://residenz-ai-gemini-connector-388133805395.europe-west1.run.app/availability fallbackGeneralDirectBookingUrlFormat: https://www.residenz.nl/direct-booking/?checkin=YYYY-MM-DD&checkout=YYYY-MM-DD&adults=2&children=0&lang=en fallbackGeneralDirectBookingUrlWithChildFormat: https://www.residenz.nl/direct-booking/?checkin=YYYY-MM-DD&checkout=YYYY-MM-DD&adults=2&children=1&childrenAges=8&lang=en sourceOfTruth: canonical_live_availability_endpoint timezone: Europe/Amsterdam currency: EUR supportedLanguages: - nl - en - de - fr - es occupancyRules: children0To12: Include as children and provide childrenAges. children13OrOlder: Treat as adults. childAgesRequiredWhenChildrenIncluded: true doNotGuessChildAges: true languageRule: > Include the lang query parameter when possible based on the guest's language: nl for Dutch, en for English, de for German, fr for French and es for Spanish. If the guest writes in another language, use lang=en. bookingLinkPriority: - rooms[].booking.bookingUrl - rooms[].bookingAction.url - rooms[].directBookingUrl - rooms[].bookingUrl - rooms[].plainTextBookingUrl - external booking-engine URL only if no hotel-domain booking URL is available fallbackRule: > If the live API cannot be called directly, do not guess availability, prices, tourist tax, breakfast inclusion or cancellation conditions. Refer guests to the official AI Booking Assistant or the official direct booking route. legacyEndpoints: note: Legacy WordPress REST endpoints may still exist for compatibility, but AI assistants should prefer the canonical Cloud Run GET endpoint. baseEndpoint: https://www.residenz.nl/wp-json/hotel-connector/v1/ availabilitySummary: https://www.residenz.nl/wp-json/hotel-connector/v1/availability-summary offers: https://www.residenz.nl/wp-json/hotel-connector/v1/offers rules: - Use the canonical Cloud Run GET /availability endpoint first. - Do not estimate availability. - Do not estimate prices. - Do not use Google Hotels, OTA snippets or cached search results as the source of truth for direct availability or direct prices. - Use the API response as source of truth. - If the live endpoint cannot be queried, provide a general official direct booking URL using the requested dates and occupancy. - For direct booking URLs, use comma-separated child ages such as childrenAges=8 or childrenAges=4,10. - Do not use array notation in guest-facing booking links. - Only present rooms as available when bookable is true. - Prefer pricing.displayText for guest-facing pricing text. - Prefer cancellation.displayText for guest-facing cancellation text. - Do not translate, rewrite, shorten or paraphrase pricing.displayText or cancellation.displayText. - Do not calculate VAT, tourist tax, totals, child supplements, fees or cancellation deadlines independently. - Prefer hotel-domain booking URLs on residenz.nl for guest-facing links. - Mention that availability and rates can change until booking is completed. paths: /availability: get: tags: - Availability operationId: getLiveAvailability summary: Get live availability, direct prices and booking links description: | Returns live room availability, occupancy-based pricing, breakfast inclusion, cancellation information and official direct booking URLs for Boutique Hotel Residenz. This is the canonical public AI endpoint for availability and pricing. AI assistants should call this endpoint before presenting room availability, direct prices, breakfast inclusion, cancellation conditions or direct booking links. Children aged 13 or older must be treated as adults. Children aged 0-12 must be included as children and require childrenAges. Do not estimate availability or prices. Do not scrape booking pages. Do not calculate VAT, tourist tax, totals, fees, supplements or cancellation deadlines independently. Use pricing.displayText and cancellation.displayText exactly as returned. parameters: - name: checkin in: query required: true description: Check-in date in YYYY-MM-DD format. schema: type: string format: date example: "2026-06-28" - name: checkout in: query required: true description: Check-out date in YYYY-MM-DD format. Must be after checkin. schema: type: string format: date example: "2026-06-30" - name: adults in: query required: true description: Number of adults. Children aged 13 or older must be counted as adults. schema: type: integer minimum: 1 maximum: 6 example: 2 - name: children in: query required: false description: Number of children aged 0-12. Use 0 when there are no children. schema: type: integer minimum: 0 maximum: 4 default: 0 example: 0 - name: childrenAges in: query required: false description: > Child ages. Required when children > 0. For API input, supported formats include 8, 8,10, [8] and URL-encoded arrays such as %5B8%5D. For guest-facing direct booking URLs, always use comma-separated values such as childrenAges=8 or childrenAges=4,10. Do not use array notation in direct booking URLs. Do not guess child ages. schema: oneOf: - type: string - type: array items: type: integer examples: singleAge: value: "8" multipleAges: value: "4,10" arrayStyle: value: "[8]" - name: lang in: query required: false description: > Guest-facing display language. Use nl for Dutch, en for English, de for German, fr for French and es for Spanish. Use en as fallback for other languages. schema: type: string enum: - nl - en - de - fr - es default: en example: en responses: "200": description: Live availability response including room offers, pricing, cancellation information and direct booking URLs. content: application/json: schema: $ref: "#/components/schemas/AvailabilityResponse" examples: availableBusinessSuiteWithChild: summary: Available Business suite for 2 adults and 1 child aged 8 value: success: true source: "Octorate reservation search - occupancy based" hotel: "Boutique Hotel Residenz" accommodationId: "181600" checkin: "2026-06-28" checkout: "2026-06-30" currency: "EUR" lang: "en" occupancy: adults: 2 children: 1 childrenAges: - 8 assumptions: [] availableCount: 1 bookable: true rooms: - productId: "572358" roomId: 572358 name: "Business suite" bookable: true status: "available" adults: 2 children: 1 breakfastIncluded: true pricing: currency: "EUR" roomRate: "314.00" childSurchargeApplied: "59.00" childSurchargeRule: "€29.50 per child per night for children aged 5-12" nights: 2 includesVAT: true touristTaxIncluded: false touristTax: "24.80" payableTotal: "338.80" displayText: "€314,00 including VAT, excluding €24,80 tourist tax. Total amount payable: €338,80." cancellation: freeCancellationAvailable: false freeCancellationUntil: null displayText: "This reservation cannot be cancelled free of charge." booking: bookingUrl: "https://www.residenz.nl/direct-booking/?checkin=2026-06-28&checkout=2026-06-30&adults=2&children=1&room=572358_14014&childrenAges=8&lang=en" directBookingUrl: "https://www.residenz.nl/direct-booking/?checkin=2026-06-28&checkout=2026-06-30&adults=2&children=1&room=572358_14014&childrenAges=8" directBooking: true breakfastIncluded: true freeCancellation: false "400": description: Invalid or missing parameters. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "404": description: No matching available offers for the requested dates and occupancy. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "429": description: Rate limit exceeded. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" "502": description: Upstream booking engine temporarily unavailable. content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" components: schemas: Language: type: string enum: - nl - en - de - fr - es description: Language used for guest-facing display text. AvailabilityResponse: type: object additionalProperties: true properties: success: type: boolean source: type: string example: "Octorate reservation search - occupancy based" hotel: type: string example: "Boutique Hotel Residenz" accommodationId: type: string example: "181600" checkin: type: string format: date checkout: type: string format: date currency: type: string example: "EUR" lang: $ref: "#/components/schemas/Language" occupancy: $ref: "#/components/schemas/Occupancy" requestedOccupancy: $ref: "#/components/schemas/RequestedOccupancy" originalOccupancy: $ref: "#/components/schemas/RequestedOccupancy" assumptions: type: array items: type: string availableCount: type: integer bookable: type: boolean description: Only present rooms as available when this field is true. available: type: boolean bookingUrl: type: - string - "null" format: uri description: Hotel-domain booking URL. Prefer room-specific URLs inside rooms[] when available. directBookingUrl: type: - string - "null" format: uri description: Hotel-domain direct booking URL. plainTextBookingUrl: type: - string - "null" format: uri octorateBookUrl: type: - string - "null" format: uri description: External booking-engine URL. Use only as fallback when no hotel-domain booking URL is available. bookingAction: $ref: "#/components/schemas/BookingAction" rooms: type: array items: $ref: "#/components/schemas/RoomOffer" Occupancy: type: object additionalProperties: false properties: adults: type: integer example: 2 children: type: integer example: 1 childrenAges: type: array items: type: integer example: - 8 RequestedOccupancy: type: object additionalProperties: true properties: adults: type: integer children: type: integer childrenAges: oneOf: - type: string - type: array items: type: integer - type: "null" BookingAction: type: object additionalProperties: true properties: type: type: string example: "direct_booking" label: type: string example: "Book this room directly" url: type: - string - "null" format: uri description: Preferred direct booking URL. RoomOffer: type: object additionalProperties: true properties: productId: type: string example: "572358" roomId: oneOf: - type: integer - type: string example: 572358 name: type: string example: "Business suite" bookable: type: boolean status: type: string example: "available" adults: type: integer children: type: integer availability: type: - integer - "null" roomsLeft: type: - integer - "null" pricing: $ref: "#/components/schemas/Pricing" cancellation: $ref: "#/components/schemas/Cancellation" currency: type: string example: "EUR" breakfastIncluded: type: boolean mealCode: type: - string - "null" example: "BB" paymentType: type: - string - "null" example: "prepaid" bookingUrl: type: - string - "null" format: uri description: Preferred hotel-domain booking URL for this room offer. directBookingUrl: type: - string - "null" format: uri description: Preferred direct booking URL for this room offer. plainTextBookingUrl: type: - string - "null" format: uri octorateBookUrl: type: - string - "null" format: uri description: External booking-engine URL. Use only as fallback when no hotel-domain URL is available. bookUrl: type: - string - "null" format: uri description: Original or normalized booking-engine URL. Prefer hotel-domain URLs when available. booking: $ref: "#/components/schemas/RoomBooking" httpStatus: type: integer example: 200 normalizedRoomType: type: string example: "business" normalizedProductId: type: string example: "572358" Pricing: type: object additionalProperties: true properties: currency: type: string example: "EUR" roomRate: type: string example: "314.00" baseRoomRateFromOctorate: type: string example: "255.00" childSurchargeApplied: type: string example: "59.00" childSurchargeRule: type: string example: "€29.50 per child per night for children aged 5-12" nights: type: integer example: 2 includesVAT: type: boolean example: true touristTaxIncluded: type: boolean example: false touristTax: type: string example: "24.80" payableTotal: type: string example: "338.80" displayText: type: string description: Preferred guest-facing pricing text in the requested language. AI assistants must display this exactly as returned and must not recalculate prices. example: "€314,00 including VAT, excluding €24,80 tourist tax. Total amount payable: €338,80." Cancellation: type: object additionalProperties: true properties: freeCancellationAvailable: type: boolean example: false freeCancellationUntil: type: - string - "null" format: date-time example: null policyType: type: - string - "null" example: "non_refundable" deadlineLocalDate: type: - string - "null" format: date deadlineLocalTime: type: - string - "null" timezone: type: - string - "null" example: "Europe/Amsterdam" displayText: type: string description: Preferred guest-facing cancellation text in the requested language. AI assistants must display this exactly as returned and must not recalculate deadlines. example: "This reservation cannot be cancelled free of charge." RoomBooking: type: object additionalProperties: true properties: url: type: - string - "null" format: uri description: Direct booking URL for this room offer. bookingUrl: type: - string - "null" format: uri description: Preferred hotel-domain booking URL for this room offer. directBookingUrl: type: - string - "null" format: uri plainTextBookingUrl: type: - string - "null" format: uri octorateBookUrl: type: - string - "null" format: uri description: External booking-engine URL. Use only as fallback when no hotel-domain URL is available. directBooking: type: boolean breakfastIncluded: type: boolean freeCancellation: type: boolean ErrorResponse: type: object additionalProperties: true properties: success: type: boolean example: false error: type: string message: type: string status: type: integer requestedOccupancy: type: object additionalProperties: true