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

Hotel Aggregator API Design for Property Identity Exceptions

Design a hotel aggregator API that can flag uncertain property matches. Compare address evidence and build a review process for ambiguous listings.

A person takes notes across the street from two adjacent hotel entrances

A hotel aggregator API becomes unreliable when it treats two similar listings as the same property without preserving doubt. One supplier may publish a shortened hotel name, another may use an older brand, and a third may identify a serviced apartment inside the same building. A neat search result can conceal a serious identity error: a traveler selects one property but the booking path refers to another. Property identity therefore needs an explicit exception process, not just a duplicate-removal script.

This guide explains how to design cross-source property matching around address and geographic evidence, chain aliases, ambiguous buildings, confidence levels, human review, and reversible consolidation. The objective is a catalog whose decisions are explainable and correctable. It does not cover room rates, availability, or meal plan mapping; those belong in separate integration workflows.

Define What a Property Match Means

Before writing a matcher, define the entity being matched. For most hotel catalogs, a canonical property is a distinct accommodation operation that a customer can meaningfully choose and locate, not merely a postal address, brand, owner, or building. Two hotels sharing a tower can be distinct properties. Conversely, one hotel may appear under several supplier IDs and historic names while remaining one operation.

Keep three identifiers separate: the source property ID, an internal canonical property ID, and an identity decision ID. The source ID is meaningful only with its supplier namespace. The canonical ID groups listings that have been accepted as the same operation. The decision ID records why a source listing was associated with, separated from, or left unresolved against another listing.

A hotel aggregator API should return an uncertainty state rather than quietly force a canonical assignment. Useful states include confirmed, provisional, needs_review, rejected, and split_pending. They represent your platform's decisions, not statuses guaranteed by any hotel content provider. Make the interpretation of each state consistent between ingestion, administration, and customer-facing services.

Preserve Raw Evidence and Provenance

Store each supplier's original payload, ingestion timestamp, source ID, locale, declared supply source, and transformation version. In a separate normalized record, retain original and standardized names, address components, postal code, country, coordinates, brand, chain, phone, website when available, and any supplier-specific property category. Distinguish missing values from empty strings and explicit negatives. Never overwrite a previous address just because the latest feed has changed it.

Model evidence as observations with provenance: field, raw_value, normalized_value, source, observed_at, and quality_flag. A reviewer must be able to see whether a coordinate came from a supplier, an internal geocoder, or a manual correction. If you geocode an address yourself, that derived point is not independent proof of the supplier's address.

Supplier documentation can help define input adapters without dictating your matching decisions. Expedia Group's Rapid Content References documentation describes chain and brand references, among other content attributes. Use such references to interpret that supplier's identifiers in context; do not assume an ID or naming convention has the same meaning in another supplier's catalog.

Compare Addresses Without Erasing Differences

Address matching is an evidence problem, not a string comparison contest. Two records may have the same location expressed through different scripts, abbreviations, street ordering, or administrative divisions. At the same time, minor-looking details such as a tower, wing, building number, or suite can be the only distinction between separately operated properties. Store both the verbatim address and its structured interpretation.

Build a Controlled Address Pipeline

First parse country, region, city, district, street, house number, building, tower, floor, and unit where available. Normalize whitespace, case, punctuation, Unicode, and common street abbreviations using country-specific rules. Preserve non-Latin originals alongside transliterations. Standardize postal codes only according to national formatting rules; never fill a missing postal code from an unrelated candidate merely because the names match.

Second create comparisons at several levels: country agreement, locality agreement, street token similarity, number agreement, building qualifiers, and postcode compatibility. A matching street name is weaker than a matching full premise number in a verified locality. A postcode mismatch may mean bad data, a boundary condition, or a genuine conflict. Mark it for investigation rather than applying one worldwide rule.

Third capture address specificity. A record containing only a city cannot contradict a precise street address, but it cannot confirm it either. A supplier's property pin at the city center is similarly weak. Assign an evidence quality label so the algorithm cannot compensate for missing precise location data with a highly similar marketing name.

Use Geographic Distance With Local Context

Calculate distance between latitude-longitude observations using a geodesic method appropriate for the required precision. Keep the raw coordinates, coordinate precision if known, and source. Compare a hotel's likely entrance location with the building footprint when a trusted geospatial reference is available. Do not interpret two points five meters apart as proof of one property: they may describe a common lobby or a provider's rounded centroid.

Distance thresholds should depend on geography and evidence quality. In a dense city block, neighboring hotels can be closer than two entrances of one sprawling resort. An airport property may use a map pin on a service road. Use distance to identify candidates and detect contradictions, not as an automatic merge rule. An implausibly distant pin paired with a matching address deserves a location-data exception rather than instant rejection.

Keep separate indicators for coordinate_agreement and address_agreement. If an address agrees but positions diverge sharply, surface that contradiction explicitly. If coordinates agree while unit labels conflict, prefer the building-level interpretation until a reviewer establishes whether operations are distinct. This separation makes confidence scores easier to explain and audit.

Handle Chain Aliases and Shared Buildings

Property names are unstable identifiers. Hotels rebrand, enter or leave chains, abbreviate geographic qualifiers, or translate their public names. A supplier might display a brand, a legal operator name, or a building name. Use name similarity to propose a match, but require independent supporting evidence for an automatic consolidation. A historic brand string can be useful context without being current identity proof.

Maintain an Alias Register With Validity Dates

Create an alias table linking names to a chain, brand, or confirmed property with source, locale, valid-from and valid-to dates, and a review status. Separate global brand equivalence from individual property renames. For example, knowing that two abbreviations refer to one hotel brand does not establish that their locations on the same avenue are one hotel. Preserve aliases that have expired because older supplier records and existing reservations may still contain them.

Normalize generic terms such as “hotel,” “suites,” and “residence” cautiously. These terms may be noise in some candidate searches but decisive in a mixed-use development. Never remove unit identifiers, tower letters, or branded residence distinctions before the contradiction checks. Detect chain conflicts as review signals: chain metadata can be outdated, yet an unexplained chain difference must not be silently discarded.

Represent Buildings Separately From Properties

A physical address can contain several guest-facing businesses. Introduce an optional building_id distinct from canonical_property_id. Two records may share a building ID, postcode, and coordinates while remaining different canonical properties. Record unit, wing, entrance, floor range, reception desk, and operator when verifiable. This also accommodates hotel-plus-residence developments and multiple brands at one complex.

When all suppliers provide the same building address but disagree on hotel name and operating entity, create a shared_address_exception. Do not merge simply to eliminate duplicates in search results. The review should ask whether guests check in at the same reception, whether the marketed accommodation is independently bookable as a property, and whether official contact information distinguishes the operations. If the evidence is still unclear, preserve distinct listings with an ambiguity flag.

Design a Confidence Engine That Can Abstain

Start with candidate generation, then evaluate evidence, then decide. Candidate generation should be broad enough to find renamed properties but narrow enough to avoid comparing every hotel with every other hotel. Block by compatible country and locality, nearby geographic cells, normalized premise address, and selected name aliases. Use multiple routes so a missing coordinate does not hide a real duplicate.

For each candidate pair, produce a structured comparison, not merely a score. Include positive evidence, contradictions, unavailable fields, provenance, and model or ruleset version. Potential positives include compatible street number, high-quality geographic agreement, distinctive name tokens, verified historical alias, and matching official contact details. Contradictions include different unit or tower, incompatible countries, independently verified separate reception, and known distinct operators at a shared address.

Do not let many weak name signals outweigh one material identity conflict. Apply hard blocks where evidence is sufficiently authoritative, and route unresolved conflicts to review. Calibrate any statistical score against a labeled dataset that includes duplicate pairs, near-neighbor hotels, shared-address businesses, and rebranded properties. A score is not a real-world probability until calibration demonstrates that interpretation.

Make Confidence Bands Operational

A practical design uses three paths: automatic acceptance for high-confidence pairs without critical contradictions; manual review for plausible but uncertain pairs; and no merge for unlikely pairs. For illustration only, a team might trial scores of 0.95 or higher for auto-acceptance, 0.65–0.94 for review, and below 0.65 for separation. These are internal policy examples, not supplier thresholds, and require local validation before deployment.

Use a separate conflict_severity field because a numerical score hides the reason for uncertainty. A pair scoring 0.97 on name and address may still be unsafe when a verified unit label indicates two hotels. Such a conflict should override automatic acceptance. Conversely, an absent phone number should reduce evidence coverage, not count as proof that two listings differ.

Return an explainable decision payload containing candidate_id, confidence_score, confidence_band, matched_features, conflicts, evidence_coverage, policy_version, and next_action. Consumers can then show a warning, suppress unsafe consolidation, or initiate a review without reverse-engineering the matcher.

Worked Example: Three Listings at One Waterfront Complex

The following scenario is entirely hypothetical. Supplier A lists “Harborlight Hotel Marina” at 18 Quay Road, Tower A, in a fictional city, with coordinates 25.20010, 55.30010. Supplier B lists “Harbor Light Marina Hotel” at 18 Quay Rd and coordinates 25.20013, 55.30012. Supplier C lists “Harborlight Residences” at 18 Quay Road, Tower B, with a pin at 25.20011, 55.30011. These coordinates are invented for the example and do not describe a verified real hotel.

At first glance, all three records share strong name and location overlap. The address parser finds the same premise number and street. The geo comparison places their supplied coordinates close together. Yet A explicitly says Tower A, C says Tower B, and B omits a tower. That missing detail matters: B is not automatically an alias of A, and C must not be merged merely because the complex uses a shared pin.

Assume a reviewer later confirms from independently maintained property contact information that A and B describe the same hotel and that C is a separate serviced-residence operation with its own reception. The review records the evidence location, observation date, and person making the determination. The resulting catalog holds A and B under canonical property H-100, while C remains canonical property H-101; all three source records may reference building BL-18.

Hypothetical identity review: evidence and proposed action for three supplier listings at one fictional address
Comparison Supporting Evidence Uncertainty or Conflict Recommended Disposition
A versus B Distinctive names align; premise and nearby pins agree B lacks tower data and name is not identical Review; confirm same operation, then link to H-100
A versus C Same street address and complex-level coordinates Tower A versus Tower B; hotel versus residences Keep separate under shared building BL-18
B versus C Similar brand stem and nearby locations B lacks unit detail; C uses residence identity Hold as uncertain until B is resolved against A
A person compares two photographs of similar stone doorways on a printed street map

The initial machine decision could place A–B in needs_review and A–C in rejected for automatic consolidation because of the tower conflict. The reviewer then approves A–B with documented evidence and marks C as a distinct operation.

If a later feed moves B's pin to a different district, do not instantly undo the accepted link or silently keep it. Create a post_merge_conflict event, attach the new observation, and queue a targeted recheck. A location data error, relocation, or reused supplier ID each calls for a different response. This is why decisions and evidence history are as important as the matching formula.

Build an Exception Queue Reviewers Can Actually Use

A review queue is an operational product, not a list of failed algorithms. Each case should include the candidate source records side by side, normalized and original addresses, a map preview when permitted, coordinate distances, name and alias history, supplier timestamps, chain relationships, building qualifiers, and explicit conflicts. Show which fields are missing and whether observations are derived or supplied.

Prioritize cases by business impact and risk, not only by score. A possible false merge affecting active bookings deserves faster attention than an unsearched long-tail listing. Additional signals include contradictory contact details, recent rebrand, high search exposure, repeated supplier updates, and unresolved shared-building clusters. Define a service-level target by severity and log when a case breaches it.

Require Evidence-Based Reviewer Actions

Offer clear actions: confirm_same, confirm_distinct, link_shared_building, request_more_evidence, defer, and reopen. A reviewer should select a reason code and write a concise rationale. For high-impact merges or reversals, require a second approver. Prevent reviewers from confirming a pair with a known hard conflict unless they explicitly resolve the conflict and supply supporting evidence.

Group related pairs into cases. If A resembles B and B resembles C, a pair-by-pair queue can accidentally create transitive merges. Show the full cluster and all contradictory edges before accepting a union. A reviewer must be able to mark A equal to B while explicitly excluding C. Keep negative match decisions in the graph so the candidate generator does not repeatedly propose a known bad pair without new evidence.

Give reviewers escalation options when supplier data is persistently ambiguous. They may ask a content operations team to verify a property's official contact details or request clarification through an authorized supplier support channel. Record uncertainty rather than guessing when evidence is inaccessible. Maintain privacy and licensing controls for any external screenshots, contact data, or geocoding results stored in the case.

Make Every Consolidation Reversible

Do not physically merge source rows or erase the identities that existed before a decision. Model consolidation as versioned membership edges between source records and a canonical property. Store who created the edge, when, from which evidence, under which matching policy, and whether it is currently active. Treat canonical IDs as stable references with an alias or redirect history rather than casually reusing them.

A reversible merge operation should create a transaction record containing merge_id, source memberships before and after, reviewer or automation actor, effective time, rationale, and affected downstream indexes. Use database constraints to avoid one active source record belonging to multiple incompatible canonical properties. Snapshot the grouping state before changes so an authorized rollback can reconstruct it.

When an error is discovered, split the memberships, re-evaluate the preferred display fields, rebuild search index documents, and invalidate caches. Emit an identity-change event to dependent services. Do not rewrite the historical supplier property identifier in completed bookings; preserve the original booking context and maintain a mapping to the corrected canonical identity for support and reporting.

Treat a Split as a Controlled Incident

For a suspected false merge, first place the affected canonical cluster under a review hold that prevents additional automatic consolidation. Identify any active shopping or booking workflows that depend on the disputed identity. Determine which source records belong to each operation from reviewed evidence, then approve a split plan. Run the change in an auditable transaction or a recoverable sequence with checkpoints.

After the split, confirm that search returns distinct properties, source-specific booking routes remain intact, and historical reservations are traceable. Publish an internal incident note explaining the cause, the data fields that misled the matcher, and a regression test covering the failure. If a customer has been affected, follow the company's established support and correction process rather than assuming a technical rollback solves every consequence.

Expose Uncertainty Through the API Contract

Make identity status a first-class part of internal APIs. An ingestion endpoint should upsert a namespaced source record; a matching service should return candidate pairs and evidence; a decision service should write approved links; and a catalog read endpoint should return the canonical property plus an identity status and source memberships appropriate to the caller. Use idempotency keys, revision numbers, and optimistic concurrency controls so concurrent reviews cannot overwrite each other.

For example, GET /properties/H-100/identity could return the canonical identifier, linked source IDs, identity_status, review_case_id when applicable, last_verified_at, and an evidence_summary. An operations endpoint such as POST /identity-cases/{id}/decisions can accept a reasoned action with the expected case revision. These paths are proposed internal designs, not provider endpoints.

Public search behavior should be conservative. Confirmed duplicates may be consolidated for presentation. Unresolved candidates should not be represented as guaranteed one property; product teams may show distinct cards, a neutral review state internally, or withhold an unsafe cross-source combination according to business policy. Keep supplier property IDs available to routing layers even when the user sees only a canonical property.

To reduce content payloads in a supported integration, use the actual provider's documented filtering features rather than inventing fields. Expedia Group's Rapid Content search and filtering documentation describes the include parameter for selecting response sections such as address, location, name, brand, and chain. That capability can inform a lean content-ingestion adapter; it does not supply or certify a cross-provider identity confidence score.

Measure Errors, Queue Health, and Drift

Track auto-merge precision on a reviewed sample, false-merge incidents, missed-duplicate rate, queue age, cases reopened, median review effort, and split frequency. Break results down by country, supplier pair, property type, shared-building flag, and evidence completeness. Monitor unexpected changes in coordinate precision, missing tower data, chain identifiers, and address normalization output after source updates.

Set alerts on sudden growth in uncertain matches or a jump in reversals after a matcher release. Maintain a golden dataset with difficult examples: same-name hotels in one city, adjacent hotel towers, recently rebranded properties, multibuilding resorts, translated addresses, and supplier records with missing pins. Replay the dataset before changing thresholds, alias tables, or the address parser.

Sample accepted decisions for retrospective human review, not just pending exceptions. Otherwise the operations team measures backlog while missing silent false merges. Feedback from reviewers should update labeled data through a controlled process; do not let a single unverified manual edit become a universal synonym or a permanent model rule.

Roll Out the Identity Exception Process Safely

Start in shadow mode: ingest source records, generate candidate links, and record proposed confidence bands without changing the live catalog. Compare proposals with existing curated identities, explicitly sampling shared-address and chain-rename cases. Establish the error cost of false merges versus unresolved duplicates, then select thresholds with product, engineering, and operations stakeholders.

Next enable automatic consolidation only for a narrow, validated segment with high-quality location and address coverage. Route mixed-use buildings, missing premise detail, severe coordinate conflicts, and unexplained brand changes to review regardless of similarity score. Give case owners documented escalation paths and enough evidence to decide without relying on hidden model logic.

Before release, verify that every automated decision has a policy version, every manual approval has a rationale, every merge can be reversed, and every split reaches downstream indexes. Exercise concurrent decisions, late-arriving supplier updates, stale caches, source ID reuse, and rollback after partial failure. Test that customer-visible property descriptions and booking routes remain tied to the intended source listing.

The operating principle is simple: a hotel aggregator API should be willing to say “not yet certain.” Reliable property identity is built from specific address and geographic observations, careful treatment of aliases and shared buildings, transparent confidence decisions, and a staffed review process. When consolidation remains explainable and reversible, teams can improve catalog quality without hiding difficult exceptions inside a single misleading match score.