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

Airline CRS Codeshare Identity Reconciliation

Reconcile marketing and operating flight identities in airline CRS integrations. Test mapping evidence without treating matching numbers as matching services.

Travel operations specialists review two carrier identities associated with one flight leg.

A single aircraft movement can be sold under several flight labels. That is useful for distribution but hazardous for data matching: a search result, schedule update and reservation may describe the same operating leg while presenting different identifiers. If a platform treats the labels as separate aircraft movements, it can duplicate results, attach a delay to the wrong itinerary or lose the relationship after a schedule amendment.

Airline crs codeshare identity reconciliation is the controlled process of connecting those representations without erasing their sources or overstating what a match proves. The engineering task is narrower than general reservation architecture: define the operating service, preserve each marketed identity, test collisions and retain enough evidence to reverse a mistaken link.

Decide what is being identified before attempting a match

An operating leg is the physical scheduled movement from one departure airport to one arrival airport on a particular service instance. A marketing flight label is a commercial identifier under which that leg may appear to shoppers or passengers. A journey segment is the portion represented within a particular search, offer or accepted itinerary. These concepts overlap, but their identifiers do not have interchangeable meanings.

Suppose two marketing carriers display different flight numbers for one operating departure. A customer-facing comparison may show both commercial choices, subject to the applicable source rights, while an operational delay should ordinarily be associated with the underlying leg. Conversely, two legs carrying the same operating flight number on successive days must not become one movement. Even a common flight number and date may describe separate sectors in a multi-leg service.

Keep four identities distinct

  • Operating service instance: the individual leg being operated, identified according to a source-approved combination of operator, service identifier, relevant service date, airports and any supported leg reference.
  • Marketing assignment: a dated relationship between a marketing carrier label and the operating instance; several assignments can point to one leg.
  • Distribution segment: the segment reference within a particular provider response, offer or itinerary, which may be scoped to that message or transaction rather than globally reusable.
  • Reservation association: the confirmed or unresolved itinerary segment linked to a booking source and its own reference; it is not created merely by finding a schedule match.

No single concatenated key is universally safe. A marketing number alone is too broad. Airport pair and approximate time alone can match unrelated departures. An operating number and a calendar date can still be ambiguous when dates are expressed in different local contexts or the flight has multiple legs. Treat the internal operating-leg key as a controlled identifier assigned after evidence is evaluated, not as an assertion that every provider publishes the same canonical ID.

Use local dates with an explicit meaning

Record the source's definition of its date field: scheduled departure at origin, operational service date or another declared convention. Preserve the original date value and its interpretation. Also store the airport-local scheduled departure and arrival values when supplied, the time-zone context used for conversion and a derived instant only when conversion is defensible. A service leaving late at night can arrive on another calendar day, and a revised departure can cross midnight without automatically creating a new service.

For a through flight, separate the marketed journey from its physical legs. A number that remains constant across two sectors does not make the sectors one operating movement. Retain each leg's origin, destination, sequence and any explicit relationship to the larger journey. If a feed provides only a journey-level record, mark leg granularity as unknown rather than fabricating intermediate service identities.

Design a mapping record that preserves evidence

A practical mapper should answer three questions independently: what did a source say, what relationship did the system infer, and which authority accepted or rejected that relationship? Separating these makes corrections possible. An apparent match can remain provisional while downstream users continue to see the original source-scoped facts. A durable record should also survive replay of the same feed without generating new, contradictory associations.

Retain the raw observation and its scope

For each incoming observation, capture the source organisation or adapter, source record identifier if provided, retrieval time, effective schedule or publication time if supplied, message or feed version when available, field-level raw values and an integrity fingerprint. Retain the original marketing and operating labels as received, including leading zeroes and carrier namespaces. A field called “flight number” must not silently be presumed to mean operating rather than marketing identity.

Keep provider response references and segment references inside their documented scope. A segment key unique within an offer is not necessarily unique across two searches. A reference produced during a reschedule may differ from the old one without indicating an additional flight. Preserve the previous association, and use explicit revision or replacement evidence when the source offers it. Retention periods, redistribution, logging and transformation rights must be checked against the actual data agreement before production use.

Model links as versioned assertions, not overwrites

One workable logical design has an operating-leg entity, separate marketing-assignment rows and immutable source-observation rows. A mapping-decision records why an assignment attaches to a leg, what evidence was used, its decision status and who or what made the decision. A segment-link connects a source-specific itinerary segment to its best-supported leg without replacing its original reference. These are conceptual records, not claims about any supplier's schema.

  • Give each operating leg an internal opaque ID; store any external operating reference with its source and scope rather than assuming global uniqueness.
  • Give marketing assignments effective-from and effective-to context where known; preserve withdrawn labels for historical itineraries.
  • Record observed-at separately from valid-for. A fact received today may describe an earlier timetable version.
  • Represent decision states such as confirmed mapping, candidate, conflicting evidence, superseded assertion and rejected match.
  • Attach evidence identifiers, transformation version and a reason code to each decision; retain an audit trail when a reviewer changes it.

Database constraints should protect only demonstrated invariants. For example, a provider-scoped immutable observation ID may be unique within that provider, while a marketing flight number cannot safely have a global one-to-one constraint against an operating leg. If two active assignments conflict, quarantine the collision for examination instead of permitting last-write-wins to choose a survivor. A null operator is an unknown value, not permission to copy the marketing carrier into the operating field.

For wider context on why schedule, shopping, reservation and status sources can answer different questions, see the guide to flight APIs, distribution and data-source responsibilities. The mapping layer should respect those boundaries rather than promoting an observation into a booking authority.

Work through one operating leg with three marketed identities

Consider an explicitly hypothetical fixture. Every name, code, airport and reference below is invented solely for testing and is not intended to match a real airline, route or provider field. An operator called Northline Ops schedules OPR-742 from synthetic airport APT-N to APT-E, departing locally on 9 April 2027 at 23:40 and arriving on 10 April at 02:10. The date convention in this fixture is the scheduled local departure date at APT-N.

Three invented sellers publish labels for that same leg. The synthetic schedule authority provides an explicit operating-leg token, LEG-88, and the hypothetical marketing records cite it. This direct reference makes the initial relationship stronger than a flight-number similarity. The identifiers deliberately do not follow a real airline-code format; implementers must verify actual coding rules and field names with each approved source.

Illustrative mapping corpus: one leg, distinct labels and source-scoped segments
Observation Displayed or supplied identity Operating evidence Expected association
Operating schedule S-01 OPR-742; APT-N to APT-E; 9 Apr LEG-88 in schedule source Create one operating-leg record
Marketing feed M-01 MKA-1822; segment A7 Explicit LEG-88 link Attach marketing assignment 1
Marketing feed M-02 MKB-915; segment B4 Explicit LEG-88 link Attach marketing assignment 2
Marketing feed M-03 MKC-401; segment C2 Explicit LEG-88 link Attach marketing assignment 3
Status observation T-01 OPR-742; estimated later departure LEG-88 scoped to service date Annotate the leg, not three new legs

A reviewer should see one physical service, three marketing assignments and four relevant source observations plus the status update. The three marketed options might still be distinct commercial offers; mapping them to one operating leg does not justify deleting legitimate alternatives or asserting equal fares, availability, baggage rules or ticket conditions. It means their shared operational identity can be explained with confidence supported by the fixture.

Next, change the operating schedule to 00:20 on 10 April. If a trusted amendment explicitly identifies LEG-88 as the revised instance, keep the same internal leg and append a new schedule version. Store the old departure time and the source's original service date. Do not rewrite an already accepted itinerary as if its supplier had confirmed a new booking state. An amendment from a schedule feed describes a schedule observation; its consequences for any reservation require the authorised booking or servicing source.

Now remove the direct LEG-88 link from M-03. A matching route, operator and close departure time can produce a candidate association, but the acceptance policy must decide whether those fields are sufficient. If the status feed omits operator identity or uses a different date convention, the correct result may be unresolved, not a silent join. Record the missing evidence and the provider question required to settle it.

Two anonymous carrier cards sit beside a single itinerary segment during a codeshare review.

Build collision tests that can disprove a tempting match

The important tests are not only happy-path duplicates. A mapper should be challenged with nearby facts that look nearly identical yet describe different services. Construct a synthetic codeshare mapping corpus before relying on production samples. Each fixture should declare its source, raw observations, expected operating-leg count, allowed marketing links, prohibited links and the evidence needed to move from candidate to confirmed.

Exercise identity collisions and amendment boundaries

Deliberately difficult synthetic cases and expected outcomes
Fixture variation Trap Required behaviour
Same operating number, following day OPR-742 repeats on 10 April Keep a separate service instance unless authoritative lineage says otherwise
Same number, next sector Through flight continues APT-E to APT-S Represent two physical legs and their journey relationship
Parallel departure OPR-743 shares airports and similar time Do not merge by route and time proximity
Overnight amendment LEG-88 shifts past midnight Retain instance only with defensible revision evidence
Marketing renumbering MKB-915 becomes MKB-916 Version the assignment; preserve historic references
Missing operator M-03 gives only MKC-401 Hold candidate; do not invent the operating carrier
Recycled segment token Another search also calls a segment A7 Scope A7 to its source response or transaction
Conflicting source assertions Two feeds point one label at different legs Open a dispute; never pick by arrival order

For each row, add a negative assertion: which link must never be created? Testers often verify that MKA-1822 finds LEG-88 but omit the stronger check that it must not find tomorrow's OPR-742. Negative assertions make an identity policy falsifiable. They also reveal whether a seemingly harmless deduplication rule is collapsing distinct flights.

Run the corpus in different arrival orders. Ingest marketing records before operating schedules, deliver a late amendment before the original record, replay an identical event, then resend an older version after a newer one. Final decisions should reflect documented source chronology and precedence, not whichever message reached the queue last. Where ordering evidence is absent, the system should preserve competing assertions and request review.

Measure ambiguity instead of hiding it behind a score

Match confidence can help triage, but a numeric score is not itself authority. An exact direct leg reference from an approved source is qualitatively different from a high similarity score based on route and timetable. Define evidence classes: explicit same-instance link, source-supported revision, corroborated composite identity and plausible but unverified resemblance. Keep the scoring method, thresholds and model version attached to the result if automated ranking is used.

Consider a test in which the operator, origin and destination match but departure time differs by 40 minutes. That difference might be a schedule amendment, an independent departure or a mismatched date. A tolerance window should generate candidates for inspection, never act as proof that the events are identical. The right outcome depends on supporting references and source rules rather than a universal number of minutes.

Add malformed and partial observations: stripped leading zeroes, code-share labels confused with operator labels, an absent airport, conflicting local-versus-UTC interpretation, duplicated delivery, a cancellation followed by reinstatement, and a marketing assignment withdrawn before travel. Assert that no transformation silently fills a critical unknown from an unrelated record. Report coverage separately for confirmed, candidate and rejected relationships; a high automated match rate can conceal dangerous false joins.

Assign authority separately for each disputed field

Different sources may legitimately disagree because they describe different events or have different responsibilities. An operational status observation may be newer than a booked itinerary while having no authority to amend its commercial record. A marketing source may be authoritative for the label it displays, yet not for who actually operates the aircraft. A distributor may hold an accepted itinerary reference but rely on another organisation for current movement information.

Create an authority matrix for each deployed integration, based on actual contracts, product documentation and observed responses. Do not assume every airline, distributor or schedule provider supplies operating identifiers, revision chains, precise timestamps or permissions to store a shared cross-source index. These are verification questions for the selected source, not built-in capabilities of the words “CRS”, “API” or “codeshare”.

Field-level dispute routing, subject to verification of the real arrangement
Disputed fact Evidence to seek What must not be inferred
Who operates the leg? Approved operating schedule or carrier-confirmed service record That the marketing carrier operates it
Which marketing label applies? Applicable marketing assignment and effective context That an old label is current everywhere
Is this a revised service? Source revision chain, retained service reference or verified operator clarification That close times prove continuity
What did a customer book? Accepted record from the authorised reservation source That schedule similarity proves acceptance
Is departure delayed? Relevant, timestamped operational observation That a delay independently changes ticket terms

Make disputed decisions reviewable

A dispute record should contain the competing values, their source and observation times, the exact affected leg and marketing links, the decision rule invoked, and the evidence still missing. Assign an owner or queue and a resolution state. Reviewers need a side-by-side comparison of raw records, not only a normalised display that may have already discarded the distinguishing field. When one source is corrected, record the correction as a new assertion and preserve the rationale for superseding the previous one.

For potentially consequential ambiguity, favour a visible limitation over invented certainty. A search interface can show the offered marketing number while the operating-carrier line remains unverified, if that display is supported and permitted. An internal service team can see that a status match is pending. Neither should see a confident “operated by” statement unless the evidence supports it. Escalation paths should identify the source authorised to answer the disputed question, not merely the most responsive API.

Reconcile revisions without rewriting the past

Schedule changes are a natural stress test for airline CRS service identity. Store observations as a history with effective context rather than changing a single mutable row and losing its predecessor. Separate a correction to the data representation from a true change to the service and from a new operating leg. The distinction matters when users reopen old itineraries or an audit investigates why the platform displayed a particular operator at an earlier time.

Preserve lineage across changed dates and segments

In the fictional LEG-88 example, a revised departure after midnight changes the displayed local date. The trusted amendment token establishes continuity for the fixture, but another provider might issue a replacement reference or only a newly published schedule. Where continuity is not explicit, look for an approved change relationship or request verification. Do not conclude that a new departure-date key means a different flight; equally, do not conclude that matching numbers mean the same service.

If the itinerary contains multiple segments, evaluate each link independently. An inbound leg may be cancelled while an onward leg remains scheduled; a through-flight label may persist while its operational sectors change. Keep source segment identifiers and sequence attached to the relevant itinerary version. A customer itinerary, an operations board and a historical report may therefore describe different valid snapshots of the same travel plan without needing one record to overwrite the others.

Decide how to react when a marketing assignment ends, when an operator changes, or when a flight is replaced by another service. A genuine replacement may require a supersedes or replaced-by relationship between distinct leg records instead of merging them into one. Document which evidence permits a continuity link and which requires a new instance. Test cancellation, resumption and changed operator independently; none should be inferred solely from a reused marketing number.

The interface state, stored mapping and authoritative reservation state must remain separate. A page might show an updated planned time while a stored itinerary still records the originally accepted segment. Only the relevant authorised supplier can confirm whether a booking change was accepted. If a servicing request times out, its outcome is unknown until reliable reconciliation resolves it; a status lookup alone does not guarantee a delayed request will not later commit. Do not issue a new consequential request merely because the first response was missing. Use the provider-supported retrieval, correlation and escalation process before any safe retry. A payment result, if a booking flow includes payment, is a further independent fact and is not established by the flight mapping.

Turn the corpus into an operational release test

A synthetic corpus is useful only if it produces evidence beyond a green test indicator. Version the fixture inputs and expected output together. For each test, save the raw source observations, the normalised representation, the mapping decisions, the final count of operating legs, and the prohibited joins that were absent. Record the mapper build identifier and policy version so a later change can be compared with a known baseline.

Use layered tests. Unit tests exercise normalisation and source-scoped keys. Integration tests verify adapter parsing against permitted sandbox or sample messages. Contract tests identify fields that disappear or change meaning between provider versions. End-to-end tests check whether a marketing label, an operating update and a reservation segment remain correctly distinguishable in both customer and staff views. None of these tests establishes a commercial data right; approval to obtain, store, transform or redistribute data is a separate release prerequisite.

A useful review artefact is a collision ledger: fixture ID, disputed values, candidate links, decision status, chosen authority, evidence references, user-visible effect and owner. Add a mapping-diff report showing created, retired, confirmed and reopened links between test runs. Investigate unexpected merges and splits before celebrating a higher match count. Track false-positive joins as a distinct severity because one wrong operating association can spread an operational update across unrelated itineraries.

For a buyer evaluating an implementation, request a demonstration that deliberately withholds the direct operating reference. The system should explain why it cannot confirm the link, retain the marketed segment, and expose the next evidence needed. Then restore the reference and verify that the mapping resolves without duplicating the operating leg or losing the former unresolved decision. A reliable design can explain its uncertainty as clearly as its successful matches.

Acceptance checklist for a codeshare reconciliation release

Use the following airline crs codeshare identity reconciliation checklist as a release gate, adapting the evidence requirements to the providers and rights actually approved for the project. Each item needs a test result or named unresolved risk, not only a design assertion.

  1. Identity boundaries: operating leg, marketing assignment, provider segment and reservation association are independently represented and can be inspected.
  2. Source lineage: raw values, source namespace, response or record reference, observed time and applicable schedule date survive normalisation.
  3. Date integrity: the original date convention is documented; midnight amendments and different arrival dates do not trigger automatic collisions.
  4. One-to-many proof: three marketing identities attach to one evidenced leg without creating three physical movements or deleting distinct commercial choices.
  5. Negative matches: next-day reuse, through-flight sectors, parallel departures and recycled segment tokens remain separate where required.
  6. Amendment lineage: authorised revisions retain history; uncertain continuity is flagged instead of forced into an existing record.
  7. Authority ownership: operating, marketing, schedule, status and accepted-reservation disputes each have a documented evidence source and escalation route.
  8. Unknown handling: missing operator, missing leg token and conflicting observations produce candidates or disputes, not fabricated certainty.
  9. Repeatability: duplicate delivery, shuffled input order and old-message replay do not silently change confirmed associations.
  10. Product separation: customer display, stored records, supplier-confirmed reservation state and any payment outcome remain distinguishable.
  11. Rights and schemas: actual provider fields, identifiers, effective-date semantics, retention rules and mapping permissions have been checked before use.
  12. Evidence packet: fixture corpus, decision ledger, regression results, unresolved issues and rollback approach are available to the release reviewer.

Successful reconciliation is not the act of producing one tidy flight number. It is the ability to show why several names refer to one physical service, why similar-looking records do not, and which evidence would change that judgement. A narrowly scoped, reviewable mapping layer supports accurate operational associations while leaving each marketing offer, itinerary record and authorised supplier decision in its proper place.