Connect API for Accommodations (1.18)

The connectAPI for accommodations defines a service API that lets users search for, view, book, and cancel accommodations via TripBuilder.

Key Features:

  1. Get List of Accommodations: Retrieves a list of all available accommodations, including basic details like code, room description, and price.
  2. Get Accommodation Details: Provides detailed information about a specific accommodation using its reference.
  3. Check Accommodation Availability: Shows the current availability status of an accommodation along with its description.
  4. Book an Accommodation: Allows users to book an accommodation offer using its reference and user details.
  5. Cancel Booking: Enables users to cancel a booking using its booking reference.

This API is designed to be RESTful, using standard HTTP methods like GET, POST, and DELETE, and it primarily exchanges data in JSON format.

Change History

API VersionDocs VersionChanges
1.031.07.2023Initial version
1.105.06.2024Extended spec to support Book and Cancel actions
1.204.10.2024Extended spec to split offer between search and details offer.
Added support for available board codes and cancellation policies in search offer model.
Removed deprecated location field from search and details offer
1.328.01.2025Added 'filters' object to AccommodationOffersRequest and AccommodationOfferDetailsRequest
Updated documentation with supplier currently supported by Nezasa
1.407.08.2025Added NBC (Non-Bookable Content) import endpoint for hotel static data synchronization
1.505.11.2025Made 'added' and 'updated' fields optional in NBC Dates schema
1.610.01.2026BREAKING: NBC images field now uses ImageGroup[] with nested ImageResolution[] for multi-resolution image support
1.704.02.2026Added requiredPassengerData and requiredContactData to AccommodationDetailsOffer
1.825.02.2026Added travelAgentEmail, travelAgentFirstName, travelAgentLastName, travelAgencyShortName, travelAgencyEmail to Metadata
1.920.04.2026Made Contract-Id optional, added Login and Password headers as alternative identification method
1.1008.05.2026Added maxPriceVariationPercentage to AccommodationBookingRequest to let callers tolerate small price changes at booking time (applied to increases only when the supplier API allows it; symmetric otherwise)
1.1108.05.2026BREAKING: NBC import endpoint now accepts a languages: string[] array (replacing the single language: string) and returns NBCHotelData.descriptions as an array of LocalizedDescription (one entry per requested language). The redundant tourOperator request field has been removed (caller is identified via Contract-Id / Login / Password headers).
1.11.128.07.2026Documentation only, no schema change: clarified that AccommodationAvailabilityResponse.accommodation must be omitted entirely when no offer is available (not sent as null or as an empty object), and that TripBuilder reads its absence as "no availability".
1.1219.08.2026Deprecated accommodationName on AccommodationSearchOffer and AccommodationDetailsOffer. The field should no longer be populated and will be removed in a future version.
1.1320.08.2026Deprecated availableCancellationPolicies, availableBoardCodes and availableSuppliers on AccommodationSearchOffer. The fields should no longer be populated and will be removed in a future version.
1.1427.08.2026Flagged the already-documented deprecations in the spec: accommodations on AccommodationOffersResponse and AccommodationOfferDetailsResponse, and notifications on those responses and on AccommodationAvailabilityResponse, are now marked deprecated. The fields should no longer be populated and will be removed in a future version.
1.1516.09.2026Made ratings optional on NBCHotelData.
1.1620.10.2026Added optional flights to AccommodationBookingRequest: the travellers' flights before and after the stay, to arrange included airport transfers.
1.1727.10.2026Added optional amenities to NBCHotelData: hotel-level amenities as a closed list of AmenityCode values. Deprecated facts; it will be removed in a future version.
1.1805.11.2026Added optional rooms to NBCHotelData: static content of the property's room types.

Authentication

All API requests must be made over HTTPS.

Identification can be provided via either:

  • A Contract-Id header identifying the contract configuration
  • Login and Password headers for login-based authentication

The identification method should be agreed with Nezasa before integration development starts. Both methods may be provided simultaneously if required by the integration.

Servers
production mock server
https://connectapi.stg.nezasa.com