● Travel Never Stops. Neither Do We. 365 Days a Year.

Hotel and Flight API Traveler Reference Mapping

Keep traveler identities and party assignments consistent across hotel and flight requests while retaining each supplier's own identifiers.

Travel agent reviews a passenger list and room allocation sheet

Hotel and Flight API Traveler Reference Mapping

A hotel and flight api integration needs more than a shared booking form. The same person may be a flight passenger, a hotel guest, the lead guest for one room, and the purchaser of the trip. Each role has different information requirements and may be represented by a different supplier identifier. A reliable platform recognises one human being without pretending that the suppliers share one identity system.

This guide explains how to maintain canonical traveler records, attach service-specific references, allocate people to rooms, calculate child ages on the relevant dates, and process corrections without mixing up travelers. It concentrates on identity and party mapping rather than shopping orchestration, payment flows, or how independent flight and hotel reservations are confirmed. The implementation patterns are application design recommendations; supplier-specific details should always be checked against the current API version and commercial access available to the integrator.

Why the Same Traveler Appears Differently in Each Service

Flight systems usually reason about named passengers attached to an air offer or order. Accommodation systems must also reason about rooms, sleeping capacity, child-age rules, a booking contact, and the people assigned to each product. A two-room hotel stay cannot be described accurately by repeating the flight passenger array and calling it an allocation.

Even apparently simple terms differ. A traveler is a person in the platform's own records. A passenger is that person in the context of an air journey. A hotel guest is that person in a stay. A lead guest is the person designated for check-in or primary responsibility for a particular room or reservation, subject to the actual provider's schema. A booker is the person supplying booking contact details and might not travel at all.

Keeping these distinctions avoids three recurring defects: accidentally assigning a child to the wrong room, attaching a ticket-related service to the wrong passenger, and overwriting a supplier reference when another booking is created. The solution is not a universal passenger number accepted everywhere. It is an internal identity with explicit, traceable associations to each external resource.

For a hotel and flight api product, consistency means that a screen, manifest, support record, or correction request can explain which human is involved, which service they belong to, and which provider record currently represents them. It does not mean that two unrelated provider IDs happen to match.

Build a Canonical Traveler Identity Before Supplier Mapping

Give each person a stable internal key

Assign every distinct traveler an opaque internal traveler_id that your platform controls. Keep this key stable across searches, quotes, bookings, and later servicing. It should not be a passport number, email address, name concatenation, or an identifier borrowed from a flight or hotel response. Those values may change, be shared, be missing, or carry unnecessary privacy risk.

Store a carefully defined person record with structured given and family names, date of birth where legitimately required, optional contact channels, and relevant identity-document data under restricted access. Separate verified legal name from preferred display name. Include field provenance: who supplied a value, when it was confirmed, and whether it has been transmitted to a provider. Avoid automatically treating a profile edit as permission to change a ticketed name.

Use a separate travel_party_id for the group assembled for a particular itinerary. A person can participate in several trips, and one trip can contain travelers using only some services. Party membership therefore needs its own record, with an effective status and an audit history, instead of being implied by array position.

Describe roles and participation as relationships

Model the links explicitly: party_member connects traveler and party; service_participant connects traveler and flight or stay; room_assignment connects traveler and a specific hotel room selection. A separate role relationship can mark a room's proposed lead guest.

Do not require all party members to take every leg or occupy the same hotel. An infant may be included on a flight yet not appear as an independently named guest in every accommodation payload. A relative may share a room but arrive separately. Your application's complete roster can preserve these facts even when a provider accepts only aggregate occupancy or a limited guest list.

Introduce a revision number for each traveler and assignment snapshot. When building a supplier request, record the revision actually used. A later change to the party must not silently rewrite the historical meaning of a submitted payload. Preserve prior snapshots for support and reconciliation, with sensible data-retention controls.

Preserve Flight Passenger References in Their Own Namespace

Bind a provider passenger to the correct journey context

In Duffel's current flight documentation, offer requests describe passengers and flights, and passengers receive identifiers used in subsequent booking steps. Its Orders schema includes an order's passengers collection and distinct order and airline booking references. These are meaningful flight resources, not generic traveler IDs suitable for hotel requests.

Maintain an explicit mapping row containing your traveler_id, provider name, environment, resource type, applicable offer-request or order context, external passenger ID, and current status. The context matters: an identifier associated with one shopping or booking object should not be assumed valid for a different object merely because both concern the same person.

Use exact returned IDs rather than array offsets. Passenger zero is a display position, not proof of identity. Sorting adults ahead of children, updating a search, or reconstituting an offer can change an application's array order. Confirm the appropriate identifier from the response used for that operation, then validate that each expected traveler has one intended flight passenger association.

Some flight features refer to a passenger alongside a particular segment or service. Keep this association at the granularity required by that feature. A passenger-level identity map does not itself decide who owns a seat, checked bag, or document entry; those assignments must be resolved against the corresponding order and supplier objects.

Keep booking references distinct from personal identity

An airline record locator or order ID identifies a reservation resource, not a single human. A booking can contain multiple passengers, while a passenger can appear across different bookings. Store order-level references separately from passenger-level IDs and associate them through a service-booking relationship. Do not paste the locator into a hotel's guest ID field or interpret a hotel reservation number as a passenger key.

Before submitting a flight order, compare intended canonical travelers against the passenger IDs attached to the selected offer. Confirm legal-name fields, date of birth when required, passenger category, and any relevant document information. If the selected offer no longer matches the party, require a valid refreshed selection rather than forcing an old passenger reference into a new request.

Represent Hotel Guests, Room Allocation, and Lead Roles Separately

Room occupancy is not the same as a named guest roster

Booking.com's current Demand API occupancy and allocation guidance specifies total adults, children's ages, number of rooms, and an allocation showing the requested distribution across rooms. In this structure, adult counts and child-age arrays describe occupancy. They do not provide a universal, named-person identity key for each bed or room.

Your application should therefore keep an individual room_assignment for each person even when an outgoing availability request contains only counts and ages. Generate those aggregates from actual assignments; never reverse-engineer individual identities from an unordered age list. Two children of the same age remain two different people, even if an API request represents them with identical numeric values.

For each selected room, retain the platform room-selection ID, its provider product ID, assigned traveler IDs, adult count, child ages for the stay, and the intended primary guest. Validate the sum of room allocations against the active hotel participants. People who are not staying should not inflate the accommodation occupancy merely because they belong to the broader travel party.

Do not confuse the booker with the lead guest

Booking.com's current order creation guidance distinguishes booker details from guest details associated with selected accommodation products. That distinction should be preserved in the canonical model. If your interface labels somebody “lead guest,” treat that designation as an internal business role unless the specific supplier contract exposes a corresponding field or rule.

The designated room lead may be the first named guest for an operational workflow, but do not infer that every provider recognises an identical lead_guest field or that guest-list order is legally decisive. Map named guests only where supported, following the supplier's current schema. Keep check-in contact, purchaser, and per-room responsibility distinct so an absent booker is not accidentally substituted for a person who will arrive.

Booking.com's guide also cautions against using an available product's child-rate information alone to determine physical room fit. Its availability recommendation, accommodation details, and order preview have separate roles. Preserve your original allocation and check the returned occupancy_mismatch before a room selection is used. A technically successful preview is not a reason to ignore an unresolved mismatch.

Traveler reference layers and the identity rules each layer must enforce
Layer Example internal field Purpose Mapping rule
Person traveler_id Identify one human across services Generated internally; never replace with a supplier ID
Party travel_party_id Track an itinerary's membership Membership can differ from service participation
Flight passenger air_passenger_ref Find a person within a flight resource Scope to provider, environment, and offer or order
Hotel participant stay_guest_link Associate a person with a stay Retain internally even when the API sends only counts
Room assignment room_assignment_id Specify who occupies each selected room Derive occupancy from current assignment records
Booking contact booker_contact_id Contact the person who places the order May refer to a non-traveler; never imply occupancy
Reservation supplier_booking_ref Locate a provider's booking Do not treat an order or locator as a person ID
Travel coordinator arranges passenger and room-assignment cards beside a map

Calculate Child Ages for the Service, Not the Search Screen

A date of birth is a person attribute. An age is a derived value that changes with the relevant date. Store the former when necessary and appropriately authorised; calculate the latter for each service. Do not retain a single “child age at search” field and reuse it for both flight and accommodation requests weeks later.

For a flight, use the date or dates applicable under the airline and provider's passenger-age rules. That may require evaluating departure dates and how the carrier treats age changes during an itinerary. For a hotel, calculate age on the stay's applicable reference date, commonly check-in, while checking the supplier's stated convention. Do not assume those dates or policies are interchangeable.

Calendar arithmetic is important. Compare calendar birthdays in the relevant local service date, not elapsed milliseconds divided by 365 days. Avoid timezone conversions that move a departure or check-in into the preceding date. Define a documented policy for birthdays on February 29 and verify it against the relevant supplier where classification changes. Retain the date and rule used to compute every transmitted age.

Classifications differ across suppliers. Booking.com's accommodation guidance describes children in its guest parameters as ages zero through seventeen, while flight pricing has its own passenger categories and requirements. Do not translate every hotel child into a flight child category or every airline infant into a zero-occupancy hotel guest. Apply each supplier's documented age expectations to the correct person on the correct date.

Before creating an accommodation order, recalculate ages from the final check-in date and reassess room capacity and child-rate compatibility. In the Booking.com guidance, an occupancy_mismatch warning must be resolved rather than bypassed by converting a child to an adult to fit an offer.

Worked Hypothetical Example: Four People, Two Rooms, One Flight

Illustrative fixture, not a real booking or supplier response. A family plans a flight departing on 10 July 2027 and a hotel stay beginning on 12 July 2027. The canonical party contains Maya, Elias, Noor, and Sami. Maya and Elias are adults. Noor was born on 11 July 2015, and Sami was born on 20 September 2021. The party has four stable internal traveler IDs, one per person; none is derived from a name or a provider's identifier.

On the flight's departure date, Noor is eleven and Sami is five. By hotel check-in, Noor has turned twelve; Sami remains five. Neither age automatically establishes the flight fare category: the selected air provider's applicable rules determine how those passengers are represented.

During flight shopping, suppose the selected Duffel offer context returns four different passenger references. The platform stores each as a mapping from the corresponding internal traveler ID, scoped to that offer context. When creating or retrieving the flight order, it records the actual order-level and passenger-level references returned. These references remain flight-specific, even though the hotel booking will involve the same four people.

The hotel's proposed assignment is Room A for Maya and Noor, and Room B for Elias and Sami. Internally, the assignments are explicit person-to-room relationships. The outgoing accommodation occupancy view becomes one adult and one twelve-year-old child in Room A, and one adult and one five-year-old child in Room B. Totals are two adults, two children, and two rooms.

Maya is nominated as Room A's lead and Elias as Room B's lead for the platform's check-in notes. Maya is also the booker. The platform does not manufacture a hotel passenger ID by copying a Duffel passenger reference. Instead, it associates each room's selected hotel product with the internal travelers, builds the supplier-supported guest details, and keeps its lead-role choices as internal metadata unless supported by the provider.

Before committing the room selections, the application checks that both products can accommodate the actual adult and child combinations and examines the supplier's allocation validation. If Room A rejects a twelve-year-old under its occupancy rules, the system flags that specific assignment for review. It does not silently move Noor to another room, misstate her age, or change the passenger mapping already attached to the flight.

Suppose the customer later asks Noor to stay in Room B and Sami in Room A. This creates a new room-assignment revision. The two hotel child ages are recalculated per room, the selected products are reassessed, and any required accommodation update follows the relevant supplier process. The flight's passenger-to-traveler relationships remain unchanged because the proposed room swap does not change who is flying.

Handle Corrections Without Rewriting History

Separate profile correction from supplier servicing

A misspelled name, incorrect birth date, and room reassignment are not equivalent operations. A profile correction changes canonical data. A flight passenger correction may be constrained by ticket or airline rules. A hotel guest amendment may depend on provider capabilities or property policy. The platform should record the requested correction, identify affected services, and determine supported next actions instead of pushing a generic update everywhere.

Keep original submitted values, revised proposed values, request time, source of instruction, and who approved the change. Display a clear state such as proposed, submitted, accepted, rejected, or needs manual follow-up. If the supplier has not accepted a correction, do not display it as though the provider booking already reflects the new data.

Where a supplier cannot amend a field through the available API, retain the canonical correction but mark the external mapping as pending or divergent. Direct the operation to the permitted support or servicing path, if one exists. Never invent an update endpoint or assume that editing a platform database changes a carrier record, a hotel's guest list, or an issued travel document.

Manage additions, removals, and substitutions explicitly

Adding a party member should create or reuse that person's canonical identity after appropriate identity matching and consent. It should not automatically add them to every flight segment or hotel room. The requested service memberships must be specified, validated for capacity and eligibility, and checked against the provider's actual change options.

Removing a person from a party is also different from removing them from existing bookings. Preserve linked supplier references and historical participation records while documenting whether any cancellation or guest removal has been performed. Do not delete a passenger mapping merely to make the current screen look consistent; that can sever the audit path to an active or previously issued booking.

A substitution is especially sensitive. Replacing one person with another requires a new identity association, not renaming the old traveler_id. Otherwise prior documents, consent records, and passenger history can appear to belong to the replacement person. Treat any supplier-side traveler substitution as a distinct, provider-governed operation, potentially requiring a new booking rather than a simple field edit.

When a room's lead guest changes, update the room-role relationship and check whether the provider needs a supported amendment. When a child switches rooms, recalculate the room-level occupancy and validate it anew. When a flight's traveler membership changes, revisit only the relevant flight associations, while retaining unaffected stay mappings. A change-impact matrix keeps these decisions explicit.

Validation, Privacy, and Operational Traceability

Run identity validation at three boundaries: when assembling the intended party, when transforming it into a supplier-specific request, and when interpreting the supplier response. The first checks that every selected participant corresponds to one canonical person. The second checks that required fields and assignments match provider constraints. The third verifies that returned references are attached to the intended local entities.

Useful invariants include one active canonical identity per actual traveler in the trip; no orphan flight passenger reference; no room occupant omitted from the stay's aggregate counts; and no duplicated person within one room unless expressly modelled for a supported reason. Check that summed adults and children match the hotel request and that each transmitted child age is reproducible from its date rule.

Record mapping provenance without over-collecting personal information: provider, API version, relevant resource type, local request or correlation ID, timestamp, canonical revision, external ID, and linkage status. Keep structured diagnostic messages focused on validation outcomes. Redact identity documents, birth dates, contact details, and other sensitive payload fields from ordinary logs; restrict detailed access and establish retention and deletion policies consistent with applicable obligations.

For support staff, show a human-readable identity view alongside separately labelled flight and accommodation references. An agent should be able to determine which room someone occupies and which flight passenger object represents them without exposing internal database keys to travelers unnecessarily.

Test mapping logic with permutations, not only happy-path form submissions. Reorder passengers, include same-aged siblings, make the booker a non-traveler, change a child's age across service dates, remove someone from only one service, and swap room occupants after preview. Assert that unchanged traveler identities remain stable and that external references never migrate to the wrong person.

Practical Implementation Boundaries for Current APIs

A strong hotel and flight api mapping layer is intentionally modest in what it claims. Duffel's flight resources establish their own passenger and order references. Booking.com's current accommodation materials describe occupancy allocations, product-linked guest information, and a separate booker contact. The integration translates between these models through an internal, accountable identity graph; neither provider documentation establishes universal cross-supplier passenger ID reuse.

Keep provider adapters version-aware, particularly where accommodation occupancy representations differ by API version. Treat the suppliers' live documentation and your enabled contract as authoritative for field names, required values, update operations, and supported capabilities. Historical Amadeus Self-Service examples are retired materials, not current live endpoint specifications, and should not be used to justify present-day implementation claims.

TravelTech365 teams can use this separation as a review standard: identify the person once, assign them to the services they actually use, retain every external identifier in its rightful namespace, and show precisely what changed when the party evolves. When those rules hold, flight passengers and hotel guests stay aligned without losing the distinctions on which accurate servicing depends.