See GDS integration for provider onboarding and flight reservation systems for the booking product workflow.
Connecting an airline reservation system to a Global Distribution System (GDS) takes more than making a flight-search request. A production connector must interpret changing message contracts, use authorized agency credentials, verify offers at the correct moment, preserve supplier references, and explain what happened when a network call failed midway.
This engineering guide addresses GDS web services, APIs, and XML from the connector implementer's perspective. It shows how to design boundaries, sample internal mappings, financial controls, and recovery procedures without assuming that any named provider exposes a particular operation. For the broader distribution landscape and integration options, see TravelTech365's GDS integration overview. This is not a passenger reservation lifecycle tutorial.
1. Define the integration contract before writing an adapter
Start with the source of authority: the customer's signed arrangements, provisioned API products, documentation package, and supported test environment. A GDS name alone cannot establish whether a particular agency may shop, hold, ticket, retrieve, exchange, or refund. Permissions can differ between organizations, branch identities, markets, content sources, and operational roles.
Build a capability matrix, not an assumed feature list
For each proposed operation record its business owner, authorized credential context, request and response specification, eligible content, applicable environment, and whether the action is read-only or changes supplier state. Mark unknowns as unverified; never interpret a successful login as proof of ticketing authority. Travelport's published Flights API references, for example, explicitly distinguish operations limited to GDS content from those limited to NDC content. That illustrates why generic feature promises are unreliable.
Also decide who owns payments, ticket issuance, customer servicing, queues, settlement files, and operational exceptions. Some functions may be handled by a consolidator or accredited ticketing partner rather than the storefront agency. Document these dependencies before committing to an end-to-end user experience.
Keep GDS, NDC, XML, and REST conceptually separate
Traditional GDS services may use SOAP/XML or other contracted interfaces; newer distribution products may use REST and JSON. NDC is an IATA-backed XML-based communication standard for Offer and Order interactions, not a synonym for all airline web services. IATA describes its purpose and scope in the official NDC overview. The adapter should follow the actual provisioned product, not a presumed industry-wide endpoint or message format.
2. Separate business logic from supplier-specific messages
A maintainable design uses a public booking API, an orchestration service, a supplier adapter, and an auditable persistence layer. The storefront submits a channel-neutral request. The orchestrator checks policy and sends it to an adapter that knows the approved protocol, schema version, authentication method, and supplier identifiers. Responses are normalized only after source-specific validation.
Normalize cautiously and retain the source payload lineage
A useful internal search result may contain journey segments, travelers, monetary breakdowns, baggage information, fare conditions, offer identity, and source context. Preserve the exact original references and sufficient permitted source data for investigation, while applying retention and privacy controls. Never manufacture a missing baggage allowance, refundable flag, or availability status simply to fill a uniform model.
Give each call an internal correlation ID, a supplier-context identifier, an adapter version, and a timestamp. Keep customer-facing booking IDs separate from supplier locators and ticket or order references.
Assign explicit responsibilities to each layer
- Experience layer: collect search criteria, display clearly sourced terms, and show pending or failed outcomes truthfully.
- Policy layer: authorize agency actions, select eligible connections, calculate permitted selling prices, and enforce approval rules.
- Adapter layer: authenticate, serialize, validate, translate supplier errors, and retrieve original references.
- Operations layer: reconcile booking and financial evidence, retry safe tasks, alert staff, and retain audit events.
Version interfaces between these layers independently.
3. Manage XML schemas and API versions as deployable contracts
For XML integrations, verify the exact message release, target namespaces, imported schemas, required and optional elements, occurrence limits, enumerations, and response variants supplied for the customer's product. An XML document can be well formed yet invalid against the intended XSD; it can also be XSD-valid but commercially ineligible for the current agency. The W3C XML Schema specification documents the structural validation model.
Pin versions and make upgrades testable
Record a contract tuple such as connection profile + API product + message release + schema bundle + environment. Treat that tuple as deployment configuration, not user input. Validate payloads against the agreed schema bundle and run contract tests for both expected and rejected responses. Store golden test examples with sensitive data removed. When a provider announces deprecation, compare field semantics and business cases, not only whether a parser still accepts the XML.
Do not assume every supplier publishes schemas publicly or supports backward compatibility. Obtain change notices through the applicable partner channel. Keep old and new adapters side by side during controlled migration where the agreement permits it, then record which version produced each reservation artifact.
Harden XML parsing before processing business fields
Untrusted XML can create XML External Entity risks. Reject unnecessary DTDs, disable external entity resolution and external resource fetching, and bound input sizes. Validate namespaces explicitly and never let an unknown element silently overwrite a trusted field. OWASP's XML External Entity Prevention guidance covers parser protections and validation-time risks.
Illustrative field map: supplier meaning to internal meaning
The following names are invented internal model labels for this example, not a supplier's XML tags, request schema, or API documentation. Each real implementation must map from the contracted provider definitions and explicitly document null handling.
| Business concept | Illustrative internal field | Validation decision |
|---|---|---|
| Agency connection | agency_context_id | Verify entitlement before request dispatch |
| Offer identity | supplier_offer_ref | Preserve source scope and expiry if supplied |
| Journey segments | itinerary.segments[] | Preserve sequence, carrier, airport, and local time zone |
| Passenger reference | travelers[].local_ref | Map securely to supplier traveler references |
| Money components | pricing.base / tax / supplier_fee | Keep currency and unknown components explicit |
| Supplier reservation | supplier_booking_ref | Do not treat presence as ticket issuance |
| Document evidence | fulfilment.document_refs[] | Store only after independently verified retrieval |
4. Protect credentials and bind every request to an agency context
Some integrations use API keys, tokens, certificates, or provider-specific sign-on mechanisms. Use only the method specified by the authorized provider. Secrets belong in a managed secret store with least-privilege retrieval, access logging, revocation procedures, and a tested rotation plan. Never place production credentials in browser code, XML examples, support screenshots, issue trackers, or unredacted HTTP logs. OWASP's Secrets Management Cheat Sheet gives the underlying control recommendations.
Never choose the agency identity from an untrusted form field
Resolve the authenticated user to an internal tenant, organization, branch, role, and approved connection profile on the server. The client may request a permitted branch, but the backend must independently authorize it. Keep credential identity distinct from selling agency identity, ticketing owner, and account used for settlement; those may not be interchangeable. Cache secrets cautiously and segregate test and production environments.
Record who requested each sensitive operation and under which policy version. Where payment information enters the architecture, use an approved payment boundary; do not casually copy card credentials into raw GDS payload archives. The PCI Security Standards Council's retention guidance distinguishes necessary cardholder-data retention from prohibited storage of sensitive authentication data after authorization.
5. Treat availability and repricing as separate evidence
A shopping response answers what a source returned at a particular time, under a particular context. It is not a final price or a guarantee of availability. Store the originating source, commercial qualifiers, fare conditions, selected segments, and a timestamp with the offer reference. Display the distinction between a search result and a validated price.
Define the last responsible reprice point
Before an irreversible action, perform the permitted price or offer-validation operation required by that connection. Compare total amount, currency, taxes, supplier charges, baggage, fare conditions, and any changed itinerary attributes. If material terms differ, return the result for explicit user acceptance rather than quietly increasing the displayed total. Recompute markup and payment authorization against the new cost.
Do not invent a universal cache lifetime. Reference validity depends on the actual API and offer type. For example, Travelport's own booking guide describes time-limited search and workbench references for its documented product. Those timings must not be generalized to another connection.
Preserve accounting precision
Represent money as decimal minor units or precise decimal types, not floating-point approximations. Retain source currency and conversion assumptions separately from the customer's display currency. Separate supplier price, taxes, service fees, agency markup, promotions, and the final amount charged. If a field is absent or ambiguous, fail a required check or escalate; do not assume it is zero.
6. Model order state without collapsing reservation and fulfilment
The platform needs its own state machine because supplier APIs, payment processors, and ticketing teams may report results at different moments. A locator, an accepted order, a paid transaction, and an issued travel document represent different evidence. Traditional PNR-oriented workflows and emerging Offer/Order concepts should be represented accurately, not flattened into a single “booked” boolean. IATA's ONE Order overview explains the industry's effort toward integrated order records; it does not mean every existing connection already uses that model.
Example of internal, not supplier-prescribed, states
An application may define DRAFT, OFFER_SELECTED, PRICE_VALIDATED, COMMIT_PENDING, SUPPLIER_CONFIRMED, FULFILMENT_PENDING, FULFILLED, and NEEDS_REVIEW. These are proposed local labels only. Maintain separate payment and ticket-document states rather than encoding every combination in one string. Permit state transitions only when supported by new evidence.
For example, a successful payment capture does not prove the supplier created a reservation; a supplier locator does not establish ticket issuance. Make the user interface show “confirmation pending” or “requires review” when the outcome is uncertain. Audit every transition with event time, actor, correlation ID, source reference, and reason code.
Enforce invariants around supplier-changing commands
Before create, ticket, cancel, or modify, check current state, entitlement, document requirements, and whether another command is already in flight. Use a locally unique operation key to deduplicate requests inside your platform. Never assume the external supplier honors that key unless its documentation explicitly guarantees the behavior.
7. Reconcile the supplier record, payment, and internal ledger
Reconciliation is not merely comparing today's sales total. It is a controlled examination of evidence from at least three domains: supplier reservation or order state, ticket or other fulfilment documents where applicable, and the payment or finance ledger. Each record may arrive asynchronously, be corrected, or refer to a different identity. Use a matching strategy that includes tenant, supplier, authorized agency context, currency, document or order reference, and transaction history.
Design exceptions as first-class work items
Generate an exception when a payment exists without confirmed fulfilment, a supplier document lacks a platform booking, a refund is recorded in one system but not another, or the amount differs beyond an approved rule. Provide a queue with owner, severity, age, evidence links, and permitted resolution actions. A finance user should be able to explain the discrepancy without rerunning a booking request.
For auditability, keep append-only financial adjustments and link them to originating events. Never silently overwrite the original supplier amount after a reprice, exchange, or settlement correction. Reconciliation cadence, settlement reports, and acceptable tolerances must be determined with the customer's authorized supplier and finance partners; they are not universal GDS defaults.
8. Recover from timeouts without creating duplicate bookings
A timeout during search may be an inconvenience. A timeout after a reservation-changing command is an ambiguous business outcome: the remote system might have completed the action even though the client received no response. The recovery policy must be based on the operation's semantics, not simply on the HTTP code or exception class. RFC 9110's idempotency guidance cautions against automatically retrying non-idempotent requests without proof that it is safe.
Use a retrieve-before-repeat decision path
- Mark the local command
OUTCOME_UNKNOWNand prevent an overlapping submission for the same business intent. - Use the connection's documented retrieval or status mechanism, if available, with retained correlation and search criteria.
- Compare any returned supplier reservation with the intended itinerary, travelers, and authorized agency context.
- If the action is confirmed, advance internal state once; if definitively rejected, allow a controlled new attempt.
- If evidence remains ambiguous, route to an operations queue and communicate that status to the customer.
Automatic backoff can be appropriate for read-only calls, subject to documented quotas and retry guidance. It is not a substitute for duplicate prevention on create, issue, cancel, or refund commands. Retain sanitized request fingerprints and responses so support can trace the uncertainty.

Measure outcome quality, not just uptime
Monitor schema validation errors, supplier authorization failures, search-to-reprice differences, unknown-outcome commands, reconciliation aging, and failed entitlement checks. Segment metrics by connection and schema release without exposing credentials or customer details.
9. Apply markup and agency entitlements as auditable policies
Business-to-business distribution often has multiple selling layers, each with different products, content rights, and commercial arrangements. Design a policy engine that evaluates tenant, branch, role, originating connection, point of sale, itinerary context, and allowed operation. Do not confuse the ability to see inventory with authority to reserve it or issue documents. The provider's permissions are an upper bound; your application can restrict access further but cannot grant supplier rights that do not exist.
Illustrative agency policy map
| Policy input | Example platform decision | Control to verify |
|---|---|---|
tenant_id + branch_id | Select eligible connection profiles | Server-side membership and contract mapping |
role + operation | Permit search but restrict document issue | Action-level authorization |
source + route_context | Choose an approved pricing rule | Commercial policy scope and precedence |
supplier_cost + currency | Calculate service fee and markup | Decimal precision, rounding, tax treatment |
override_request | Require supervisor approval if applicable | Approval record, reason, and effective version |
For each sell price keep the cost snapshot, rule identifier, rule version, margin calculation, tax treatment, applied adjustment, and approving actor. Define rule precedence to prevent stacking unintended markups. If the cost changes at reprice, recompute the offer and recheck minimum margin or negotiated floor. A floor should be an internal business rule, never presented as a supplier policy without evidence.
Make denials clear and safe
An unauthorized branch should not receive another agency's cached offer, locator, queue, or credentials. Return a safe business error, log the policy decision, and allow administrators to investigate the specific missing entitlement. Do not fall back to a more privileged connection merely because one agency profile fails. Entitlement tests must cover both UI visibility and direct API invocation.
10. Original example: a multi-branch agency booking attempt
Consider a hypothetical agency group with a headquarters branch and a regional subagency. A customer selects a return itinerary on the subagency portal. The headquarters has an approved supplier connection, but the subagency is authorized only for certain selling actions. No supplier-specific response is assumed.
A controlled path from search to confirmed evidence
- Resolve context. Authentication identifies the subagency and operator. The policy service checks which connection and actions are delegated by the business arrangement.
- Search safely. The connector sends the source-approved request, tags the response with the agency context, and retains a scoped offer reference.
- Review terms. The portal displays the source's supported baggage and fare conditions. Unknown or unavailable details are labeled rather than guessed.
- Validate again. On checkout the connector performs the documented price check. The platform compares cost, terms, and selling-price policy to the original selection.
- Authorize the action. The orchestration service checks whether this branch may create a reservation, whether a separate ticketing owner is required, and whether payment handling is in scope.
- Commit once. The system records a local command key, writes
COMMIT_PENDING, and invokes the permitted supplier-changing operation. - Verify evidence. A supplier reference and subsequent retrieval, where supported, establish the reservation's status. Ticket or order fulfilment is tracked separately.
- Reconcile. Payment and supplier artefacts enter the operations ledger; any unmatched item becomes a review task before the platform reports final fulfilment.
What changes if confirmation times out?
Suppose the connection closes after the commit request. The portal does not create another booking just because a response is missing. It displays a pending outcome, locks the business intent, and starts the approved retrieval path. If no reliable result is available, an operator reviews the sanitized trace and supplier-side evidence. Only a verified absence or formally approved recovery path permits another supplier-changing attempt.
The interesting outputs are permission decisions, schema-validated messages, state evidence, exception ownership, and reconciled accounting—not the sequence of screens a traveler clicks.
11. GDS integration fit and readiness checklist
Use the following checklist during discovery and again before launch. A checked box requires an owner and supporting evidence, not a verbal assumption.
Access and commercial fit
- Identify the contractual supplier or authorized intermediary and document approval to use each proposed service.
- Confirm agency identities, markets, branches, booking authority, ticketing ownership, and permitted content.
- Map payment responsibility, fulfilment responsibility, servicing scope, and the escalation contact for exceptions.
- Obtain the current integration specification, supported message release, environment details, and change-notice process.
Engineering and operational fit
- Validate schema handling, namespaces, optional fields, unknown enums, secure XML parsing, and negative test cases.
- Test authorization boundaries, credential rotation, redacted logs, and tenant isolation.
- Exercise search expiry, repricing changes, fare-rule uncertainty, and currency rounding.
- Demonstrate retrieval after an ambiguous commit, duplicate suppression, and safe customer messaging.
- Reconcile booking, fulfilment, payment, refunds where supported, and exception reporting using approved test data.
- Agree operational alert owners, audit retention, release rollback, and production access acceptance criteria.
If an essential capability is unavailable, redesign the workflow around the authorized alternative instead of hiding the limitation. A manual fulfilment handoff may be appropriate if the business accepts it and customers are told accurately what is and is not confirmed.
12. FAQs about GDS web services and connector engineering
Must every airline GDS integration use XML?
No. Interface formats depend on the contracted product. SOAP/XML, REST/JSON, and other documented approaches may coexist in airline distribution. IATA NDC is XML-based as a standard, but that fact cannot identify the transport or schema used by an unrelated GDS product. Always select tooling from the actual partner specification.
Can a single canonical schema replace all provider schemas?
A canonical internal model reduces application coupling, but it does not remove provider-specific validations, mandatory fields, identifiers, and action restrictions. Preserve lossless references where possible, distinguish unknown from absent, and keep escape hatches for legally and operationally meaningful source details. Test mapping changes against stored, sanitized examples.
Does a successful flight search lock the fare?
Not by itself. Treat the search result as time- and context-bound evidence, then use the documented validation or repricing mechanism at checkout when required. Inform the customer about material changes and obtain renewed acceptance before proceeding. Do not promise a hold, price guarantee, or available seat without specific supporting documentation.
Can we automatically retry a booking after an API timeout?
Not safely as a default. A timeout does not prove failure. First use the documented retrieval or recovery flow and local duplicate controls. If the operation remains unresolved, escalate it rather than launching a second potentially chargeable or duplicative transaction.
Does one master agency credential authorize every subagency?
No such authority should be inferred. Model subagency, branch, role, content, and operation entitlements separately. Validate the actual access arrangement with the contracting party before allowing booking, issuance, or servicing.
Are a PNR, order, payment, and ticket interchangeable?
No. They may be related records, but they demonstrate different stages or responsibilities, and modern Order-oriented systems may represent them differently. Store source identifiers and evidence types separately. Your final customer status should be based on the fulfilment outcome actually confirmed, not on whichever identifier arrived first.
What is the most useful go-live test?
Besides ordinary success cases, test an ambiguous write: deliberately interrupt the connection after submission in a provider-approved test environment, then show that the system neither claims false success nor creates a duplicate. Verify that an operator can find the request, establish the best available supplier evidence, and resolve the exception with an audit trail.
Discuss a GDS connector implementation with TravelTech365
Bring your approved supplier documentation, agency structure, intended sales channels, required operations, and known reconciliation problems. TravelTech365 can help scope an integration architecture, define field mapping and entitlement policies, design test cases, and plan operational handoffs around the interfaces you are entitled to use. Implementation scope and access must be confirmed project by project; no universal supplier access, inventory availability, or commercial terms are implied.
For additional context on provider categories and the wider integration landscape, review the GDS category page linked above, then discuss your technical requirements with the team.
