A journey can contain a confirmed flight, an uncertain hotel reservation, and a transfer that is still active. Travel booking failure handling must resolve those different facts without duplicating reservations, cancelling valid services, or promising money that has not arrived. This guide explains how to coordinate recovery across suppliers, payments, internal wallets, and customer communication when one checkout produces mixed outcomes.
Why a multi-supplier checkout cannot have one failure status
A booking platform may collect one customer payment while creating several independent supplier commitments. Those commitments do not necessarily succeed together. A flight order can be confirmed before lodging returns a timeout; a ground transfer may then be confirmed despite the hotel uncertainty. Describing the entire trip as either successful or failed conceals actionable differences.
The useful unit of recovery is each service component, associated with its own supplier request, reservation identity, financial allocation, policy snapshot, and evidence trail. The itinerary remains the customer-facing umbrella, but it should derive its status from the components rather than overwrite them with a single Boolean field.
Define outcomes separately: supplier reservation outcome, cancellation outcome, payment capture, refund initiation, refund settlement, and customer notification. They are connected, but none automatically proves another. A successful API call is not always proof that a reservation exists, and an accepted refund request is not proof that funds have reached the cardholder.
Model states around evidence, not HTTP optimism
Travel booking failure handling starts with an explicit state machine. Prefer meaningful states that an operator and a customer-support agent can distinguish. Keep the exact provider response code and event payload alongside the normalized status instead of translating away useful information.
Travel API errors and supplier support covers preparing evidence for booking support.
| State | Meaning | Permitted next action |
|---|---|---|
| Not submitted | No supplier creation request was sent. | Validate and submit once under a controlled operation identity. |
| Submission in progress | A request may still be executing. | Wait for a response, event, or documented status check. |
| Outcome unknown | The platform cannot establish whether the supplier created a commitment. | Retrieve by original reference; escalate if evidence remains inconclusive. |
| Confirmed | A reliable supplier record establishes the booked service. | Retain, fulfil, or evaluate cancellation under the applicable policy. |
| Not created | Provider-compatible checks establish that no reservation was made. | Close the attempted component and determine customer reimbursement. |
| Cancellation pending | A verified existing booking has a cancellation request underway. | Reconcile the cancellation result; do not duplicate the request. |
| Cancelled | A supplier result confirms the reservation was cancelled. | Reconcile fees, credits, and payment obligations. |
| Manual review | Evidence conflicts or the documented resolution window is exhausted. | Assign a specialist; prohibit blind create or refund replay. |
These are proposed platform states, not a claim that suppliers use identical terminology. A provider may return an accepted response, an asynchronous event, a temporary booking token, or a failure code with special semantics. The connector must map each of those signals deliberately. Unknown should remain unknown until evidence justifies a transition.
Prepare the checkout for recovery before anything fails
Persist identifiers and allocations first
Create an immutable itinerary identifier and a separate component identifier for every service. Record a unique logical creation-operation identifier before sending requests. Associate the intended supplier reference, request payload hash, attempt timestamp, correlation metadata, and credentials context with that operation. Store sensitive data only as permitted and mask payment credentials in logs.
Freeze policy evidence
Capture the cancellation conditions available when a component is booked. Later supplier prices and policies may change. If a cancellation is proposed, retrieve a current fee quote or policy confirmation using the supplier's documented workflow, then store the source, timestamp, amount, currency, validity window, and any uncertainties. Do not infer a zero fee from a missing field or a failed lookup.
Define customer consent rules before launching compensation. A traveller might prefer to keep a flight while replacing a hotel, or cancel an unused transfer after accommodation becomes unavailable. The platform should present options and financial consequences, then record a specific decision rather than assume the failure authorizes cancellation of unrelated services.
Recover a timed-out supplier submission without creating duplicates
Network timeouts are observations about communication, not necessarily supplier outcomes. A response may be lost after the booking was committed. A gateway may also time out while a downstream service continues. Therefore a second create request, even with the same passenger and itinerary details, can produce a second financial commitment unless that exact provider supports a safe deduplication mechanism.
The supplied Expedia Group Rapid error-response guidance explicitly warns that a booking timeout or 5xx does not necessarily mean creation failed. For a booking 504, it directs integrators to retrieve the itinerary using the original affiliate_reference_id and email. Its documented approach includes three checks within 90 seconds, followed where unresolved by retrieval for up to 30 minutes and then support follow-up.
Those timings are specific to that documentation, not universal timeout standards. A single early not-found response may be premature. A bounded policy must define the relevant provider's retrieval operation, intervals, final-status semantics, escalation path, and the point at which absence can be treated as established.
In the supplied Duffel order and booking creation guidance, a 202 Accepted means the result is still being confirmed and the creation request should not be retried. The guide also distinguishes a 200 response that can mean booking succeeded before the complete resource is available, and describes webhooks or listing operations for later retrieval. These examples show why generic HTTP retry middleware must not control supplier bookings.
Use a bounded reconciliation procedure
- Mark the component outcome unknown immediately after an ambiguous submission, retaining its original operation and reference.
- Stop additional creates for the same logical component, including creates triggered by a refreshed browser, mobile reconnect, or competing worker.
- Consult the active supplier adapter's documented status endpoint, lookup identifiers, webhook semantics, and permissible polling schedule.
- Collect every retrieval result with its timestamp and provider request identifier; deduplicate incoming events and reconcile out-of-order notifications.
- Transition to confirmed if authoritative evidence identifies the booking; transition to not created only when provider-compatible evidence supports that conclusion.
- At the documented limit, raise a manual-review case instead of converting uncertainty into failure by timeout alone.

Mixed-service recovery decision path: identify each commitment before taking an irreversible action.
- Capture the trip snapshot and freeze new supplier submissions.
- Preserve confirmed components while retrieving uncertain components by their original references.
- Determine whether dependent services still meet the traveller's needs.
- Verify cancellation fees and obtain explicit consent for any proposed cancellation.
- Execute approved supplier changes, then reconcile card and wallet reimbursement independently.
- Close the case only when supplier, financial, and communication evidence are complete.
Illustrative fixture: TR-636, one journey with three different outcomes
Illustrative only: TR-636 is an original fictional test case, not a real customer booking, supplier transaction, or statement about any TravelTech365 production integration. All figures are in euros. Assume one customer completes checkout for a flight, a hotel stay, and a ground transfer, paying part by card and part with an internal wallet balance.
| Component | Total | Card | Wallet | Evidence-led disposition |
|---|---|---|---|---|
| Flight | €260 | €180 | €80 | Confirmed; retained unchanged. |
| Hotel | €320 | €220 | €100 | Submit timeout; documented reconciliation establishes no booking. |
| Transfer | €100 | €80 | €20 | Confirmed; cancelled after verified zero fee and explicit consent. |
| Total | €680 | €480 | €200 | €260 retained; €420 to reimburse across both funding sources. |
Step 1: confirm the flight rather than restarting the trip
The flight connector returns sufficient supplier evidence to establish a valid reservation, with its own booking identity and fulfilment details. TR-636 records this as confirmed. The recovery workflow must preserve that booking, its €180 card allocation, and its €80 wallet allocation. It must not submit a replacement flight or initiate flight cancellation merely because the hotel request becomes uncertain.
Step 2: investigate the hotel timeout using its original reference
The hotel creation request reaches the supplier connector, but the client receives no final response. The component enters outcome unknown, not not created. The saved original reference and customer lookup fields are used for retrieval. In this fixture, the connector follows its documented bounded checks, including the relevant observation window and final confirmation route, and receives conclusive evidence that no hotel reservation exists.
The case records each retrieval, result, timestamp, and final negative determination. Only then does the hotel become not created. A negative result from one premature check would not satisfy this fixture. No fresh hotel create is attempted automatically; offering replacement accommodation would require a new priced proposal and fresh customer authorization.
Step 3: inspect the confirmed transfer before changing it
The transfer is a real confirmed service, so its cancellation is a distinct supplier operation. An agent obtains an applicable cancellation fee verification showing €0 and records when and how the fee was confirmed. The traveller explicitly consents to cancelling the transfer while keeping the flight. The cancellation command is submitted once, and the platform waits for supplier evidence establishing its cancelled state.
Step 4: compute reimbursement from components, not guesses
The hotel and transfer contribute €320 + €100 = €420 to reimbursement. On the card, their captured portions are €220 + €80 = €300. In the wallet, their debits are €100 + €20 = €120. The retained flight accounts for the remaining €180 card capture and €80 wallet debit, totaling €260. Every euro in the original €680 has a documented disposition.
| Funding rail | Initially collected | Reimbursement | Retained for flight | Operational status in test |
|---|---|---|---|---|
| Card | €480 captured | €300 refund | €180 | Refund requested; provider reports pending. |
| Wallet | €200 debited | €120 restoration | €80 | Restoration posted and verified. |
| Combined | €680 | €420 | €260 | Case financially in progress until card refund resolves. |
The card refund is pending, not completed, at the fixture checkpoint. The wallet balance has been restored, but the cardholder must not be told that €300 is already back on the card. The test intentionally finishes with separate financial states so a dashboard cannot hide a still-open refund behind a single “refunded” label.
Separate supplier money, customer entitlements, and payment-rail status
Supplier cancellation and customer reimbursement are related accounting events, not interchangeable API calls. A hotel that was never created does not require cancelling a nonexistent hotel reservation. Nevertheless, the customer has paid €320 toward that component and must receive the appropriate return under the established transaction terms. The platform should evaluate any actual supplier debit or settlement independently of the customer's funding allocation.
Use a double-entry or equivalently auditable ledger to prevent silent balance creation. Store an initial customer debit, an approved refund entitlement, a card refund instruction, its observed payment status, and a wallet credit as distinct records. Each record needs a currency, amount, immutable identifier, responsible operation, and relationship to the affected components.
For the fictional internal wallet, the €120 credit is a platform ledger operation, not a payment processor card refund. It needs its own deduplication key, posting state, balance check, and reversal procedure if posted incorrectly. A duplicate callback must never produce another wallet credit. Reconciliation should compare wallet journal entries with the resulting available balance.
The supplied Stripe refund guidance documents partial refunds, refunds against an original charge or PaymentIntent, and the requirement to return funds to the original payment method. It also describes pending and failed outcomes, along with refund retrieval and events. Those are Stripe-specific facts, not promised behavior for every payment provider or wallet implementation.
For TR-636, a card-processing adapter must attach the €300 instruction to the correct original card payment and confirm its provider identifier. If the provider later changes pending to succeeded, update the card ledger after verifying the event or status lookup. If it fails, open a payment-resolution task with the recorded failure reason. Neither branch should issue a second €300 merely because a worker restarted.
Deduplicate supplier creation and refunds at different boundaries
Supplier create: one logical intent, provider-specific protection
Assign a unique stable operation identity per attempted component creation. Enforce an internal uniqueness constraint so browser retries, queue re-delivery, and simultaneous workers cannot initiate competing creates. That constraint protects your application, but it cannot by itself prove what an external supplier did after a connection was lost.
Some APIs provide idempotency support, some detect duplicates using booking references, and others require follow-up lookup or support assistance. Configure each connector with its documented guarantees. Do not apply a payment processor's idempotency header to a supplier endpoint and assume identical semantics. Reusing the original reference for reconciliation is different from submitting a new create request.
Refund: one entitlement, one payment instruction
Give each approved card-refund entitlement a unique refund-operation identifier linked to the original payment, amount, and reason. A worker obtains an exclusive lease, checks for an existing provider refund identifier, and only then issues a supported instruction. After an ambiguous refund API response, retrieve provider status or use the provider's documented idempotency behavior before considering a retry.
For Stripe API v1, the supplied idempotent requests documentation says the first executed request's status code and body are saved for a key, including a 500 response. Parameters must match. Keys may be pruned after they are at least 24 hours old, so reuse after pruning can initiate a new request. Validation failures and certain concurrent conflicts are not saved because endpoint execution never began.
These v1 rules are neither an indefinite deduplication guarantee nor a reason to replay every failed instruction. Use an application-side refund ledger and look up existing refund objects before acting, especially after the key-retention window. The same documentation explicitly describes different behavior for Stripe API v2; the v1 statements should not be generalized across versions, providers, or endpoints.
Give operations teams a controlled recovery queue
Automation needs a safe stopping point. A recovery queue should show the itinerary, affected component, current supplier evidence, customer impact, financial exposure, next allowed action, deadline, and responsible owner. It must not present “retry booking” as a generic response to every error. Operators should see why an action is blocked and what evidence can unblock it.
Suggested roles include a support agent who communicates and records preferences; a supplier-operations specialist who resolves unknown reservations and verifies fees; a finance operator who reconciles reimbursements; and an approver for sensitive overrides. In smaller teams, one person may hold multiple roles, but permissions and audit records should still distinguish actions.
Queue priorities should reflect imminent departures, cancellation deadlines, trapped customer funds, and unresolved supplier commitments. Require a reason for every manual state override. Use dual approval for unusual write-offs, off-rail reimbursements, or any override that bypasses the original refund path. Preserve before-and-after values and the identity of the reviewer.
A scheduled status lookup is not the same as a blind replay. Polling a documented read endpoint can resolve uncertainty without increasing supplier bookings. Reissuing a create or refund instruction is a new side-effect risk unless the adapter has verified protections. Rate limits, retry backoff, and webhook signatures belong in the operational runbook.
Evidence matrix for mixed-service recovery
Before closing a dispute or giving a final answer to the traveller, collect evidence for every irreversible transition. A checklist without supporting artifacts can create false confidence. The matrix below specifies what must be retained for TR-636 and similar journeys, while leaving room for different provider implementations.
| Decision | Required artifact | Evidence owner | Closure test |
|---|---|---|---|
| Keep flight | Supplier confirmation, booking reference, traveller and itinerary match. | Booking orchestration | Flight remains confirmed with no cancellation instruction. |
| Declare hotel absent | Original reference, timed retrieval log, documented final negative determination. | Supplier operations | No unresolved hotel commitment and no duplicate create. |
| Cancel transfer | Confirmation, zero-fee proof, explicit customer consent, cancellation result. | Supplier operations | Cancelled state proven and fee recorded as €0. |
| Return card funds | Original charge link, €300 refund operation, provider identifier and status history. | Payments operations | Pending remains open; eventual final outcome reconciled. |
| Restore wallet | €120 journal credit, dedupe identity, resulting balance and audit entry. | Wallet ledger | One verified credit, with no duplicate posting. |
| Inform traveller | Message copy, delivery event, amount breakdown and timing caveat. | Customer support | No assertion that a pending card refund has completed. |
Platform controls and release checklist
| Control | What to verify |
|---|---|
| Component state isolation | Hotel uncertainty cannot downgrade the confirmed flight or trigger unrelated cancellations. |
| Reference persistence | Original supplier references survive timeout, restart, failover, and support escalation. |
| Create deduplication | Concurrent clicks and queue re-delivery produce one logical submit, without blind replay. |
| Documented lookup | Supplier-specific polling intervals, finality rules, and escalation limits are enforced. |
| Cancellation gate | Verified fee, matching reservation, and explicit consent precede side effects. |
| Refund entitlement | Refunds use eligible component allocations and never exceed remaining collected amounts. |
| Payment state separation | Card pending, succeeded, failed, and wallet restored remain distinguishable. |
| Refund deduplication | Worker restarts and delayed events cannot issue duplicate card refunds or wallet credits. |
| Audit and permissions | Each override records actor, reason, evidence, and approvals where required. |
| Customer communication | Messages reflect confirmed services, available choices, and actual reimbursement status. |
Communicate precisely while the recovery remains open
A useful customer timeline explains what is confirmed, what failed or remains under investigation, what choice was authorized, and which money movements are complete. Avoid the phrases “entire trip cancelled” and “full refund completed” when neither describes the records. Provide one trip-level view with component details available on demand.
For TR-636, the defensible update is that the flight remains confirmed; the hotel was not booked after verification; the transfer was cancelled with permission and no fee; €120 has returned to the wallet; and a €300 refund to the original card has been requested but is still pending. The €180 card and €80 wallet portions remain allocated to the flight.
TR-636 illustrative acceptance checklist and expected outcome
The fixture passes only if every condition below is demonstrable from recorded state and evidence. Treat the card-pending checkpoint as a deliberately incomplete financial lifecycle, not a defect that can be hidden by marking the whole itinerary resolved.
- Purchase totals: €260 flight + €320 hotel + €100 transfer = €680; €480 card captured and €200 wallet debited.
- Supplier safety: flight remains confirmed; hotel timeout enters unknown first and becomes not created only after documented bounded reference retrieval; no duplicate hotel create occurs.
- Customer choice: transfer cancellation occurs only after confirmed €0 fee and logged explicit consent; supplier cancellation result is retained.
- Financial arithmetic: hotel and transfer yield exactly €300 card reimbursement and €120 wallet restoration; €180 card and €80 wallet remain for the flight.
- State integrity: wallet restoration is posted once; card refund is recorded as pending, never completed; the €420 entitlement is not counted twice.
- Operational readiness: every side-effect operation has a stable identifier, actor or worker trace, provider correlation, and exception route.
- Customer clarity: trip view names the retained flight and distinguishes wallet money available now from card money still in transit.
- Follow-through: a later success closes the card obligation; a later failure creates a new review task rather than a blind second refund.
Run negative tests as well. Simulate repeated checkout clicks, delayed supplier events, a premature hotel not-found result, an absent transfer fee quote, missing consent, wallet-credit duplication, and an uncertain refund response. Each must fail safely: block the risky side effect, keep the accurate component state, and send the unresolved action to the appropriate owner.
Reliable travel booking failure handling is therefore not a single retry button or a generic refund function. It is an evidence-based coordination discipline: preserve what is confirmed, investigate what is uncertain, obtain authority before changing dependent services, return only the correct amounts on their original funding paths, and keep the case open until each obligation has its own verified outcome.
Verified reference documentation
The provider-specific details in this guide are limited to the following supplied documentation. The state model, TR-636 amounts, operational roles, and acceptance tests are proposed design guidance and illustrative assumptions, not claims that the named providers or TravelTech365 have deployed this exact workflow.
- Stripe: Idempotent requests — the API v1 key rules and separately described API v2 behavior.
- Stripe: Refund and cancel payments — partial refunds, original payment method, refund states, and tracking.
- Expedia Group Rapid: Common error responses — ambiguous booking errors and reference-based itinerary retrieval.
- Duffel: Order and booking creation response handling — asynchronous outcomes, later resource availability, and retry cautions.
