Travel API webhooks help booking platforms notice changes without repeatedly asking every supplier whether something happened. A notification, however, is not a final booking record. Dependable travel software verifies the sender where supported, durably records the event, identifies the affected reservation, retrieves authoritative details when permitted, and updates customer-facing status only when the evidence is sufficient. This guide explains that defensive workflow, including duplicate deliveries, late events, inconsistent reads, and a fully illustrative flight-change scenario.
Why booking status needs more than a webhook
A flight can be rescheduled after ticketing, a hotel can cancel a reservation, and a support agent can amend a booking outside the agency's own application. Travel API webhooks bring such developments into an integration promptly. They are useful signals for starting work, not proof that every downstream action has completed.
Three facts must remain separate: the supplier reported an event; the integration accepted that report for durable processing; and the booking's validated business state changed. Collapsing these facts produces misleading dashboards, duplicate emails, and premature operational decisions.
An HTTP success response generally acknowledges receipt according to the provider's delivery contract. It does not establish that a database projection was updated, that a customer was contacted, or that a refund occurred. Those actions need their own status, controls, and audit history.
Flight schedules illustrate the distinction. An event saying a change was detected may justify a “reviewing updated itinerary” indicator. It does not, by itself, justify replacing a confirmed departure time. A properly authorized booking lookup, coupled with reliable change evidence, supplies the information needed for that decision.
What the cited supplier documentation actually establishes
Duffel: signed delivery and event identifiers
The Duffel Webhooks API reference documents HTTPS delivery, signed events, at-least-once delivery, no guaranteed event order, and retries of failed deliveries for 72 hours using exponential backoff. Its webhook receiving guide demonstrates verification of the raw request body using the X-Duffel-Signature header, a timestamp, the webhook secret, and an HMAC comparison. Implementers should follow the current documented verification contract rather than invent a common algorithm for every supplier.
Duffel's webhook events have an id, type, created_at, api_version, and related fields. Its idempotency_key is described as the identifier of the related object; it should not be confused with the unique event ID. Duffel also documents event retrieval, listing, and redelivery. Its event catalogue includes order.airline_initiated_change_detected and air.order.changed, among other types. Their payloads and the applicable API version still require case-specific handling.
Expedia Group Rapid: notification context, not a universal flight contract
The Expedia Group Rapid Notifications documentation describes JSON notifications sent over HTTPS POST. Listed fields include event_id, event_type, event_time, itinerary_id, and affiliate_reference_id. Lodging event types distinguish changes made by agents, the API, suppliers, and other parties. The documentation specifically recommends a Booking Retrieve call for itinerary.unspecified.change to learn what changed.
Availability varies by line of business, and each notification type requires enablement. A lodging notification's structure or event list must not be assumed to cover every flight, car, or activity workflow. The cited Rapid overview does not establish a Duffel-compatible notification signature format. Authentication and delivery acceptance must therefore be specified per integration, rather than copied across providers.
| Question | Documented provider information | Defensive implementation decision |
|---|---|---|
| Can events repeat? | Duffel explicitly uses at-least-once delivery. | Uniquely register provider event IDs and make every downstream effect idempotent. |
| Are events ordered? | Duffel explicitly disclaims delivery ordering. | Do not project a schedule directly from arrival order. |
| How are events identified? | Duffel uses id; Rapid lists event_id. | Keep provider, environment, endpoint, and event identifier together. |
| How is status confirmed? | Rapid advises Booking Retrieve for an unspecified change. | Use the authorized provider-specific state lookup and preserve its evidence. |
| Can one signature rule cover both? | Duffel explains signing; the cited Rapid overview does not provide an equivalent format. | Keep verification adapters provider-specific and require documented onboarding controls. |
A defensive architecture for reliable booking updates
Separate the internet-facing receiver from the workers that interpret business status. The receiver should do bounded validation, authenticate the notification according to the supplier's contract, record enough evidence for later investigation, and commit an inbox entry with a durable work item. Worker services then correlate, reconcile, and project state independently.
A durable inbox can be a transactional database table paired with a queue through an outbox pattern, or another design providing equivalent durability. The important property is atomic recoverability: an accepted event must not disappear between acknowledging the supplier and starting the worker.
Keep four conceptual records. The receipt ledger records each delivery attempt and its outcome. The event inbox represents one logical provider event. The booking state store records the current validated view. The effect ledger tracks notifications, financial workflows, and approved write commands separately. Storing these as distinct entities helps operators explain why an event was acknowledged but not yet visible in a booking timeline.
Correlate with explicit supplier booking references and tenant or environment scope. Preserve the mapping between the agency booking, supplier order, actual supplier itinerary, and earlier references. This lineage is especially important after rebooking: a replacement itinerary should link to its predecessor, not silently erase it.

Receiving a supplier notification safely
Validate, authenticate, and persist
Restrict the receiver to configured methods, content types, payload sizes, and known subscriptions. Inspect the raw bytes before any transformation needed for signature verification. For Duffel, use its documented signed payload format and stored webhook secret. Maintain a rotation process for credentials when the supplier's supported procedures permit it; never place secrets in application logs.
After successful verification, parse the event against a version-aware schema. Unknown optional fields can be preserved without affecting decisions. Unknown required meaning, unsupported event types, or incompatible versions should be recorded for controlled review rather than guessed into a booking transition. A supplier-specific acceptance policy determines the appropriate HTTP response for each case.
Insert the inbox record under a database uniqueness constraint before confirming durable acceptance. Include a receipt timestamp, provider event key, raw-payload digest, correlation hints, validation outcome, and processing status. Restrict payload access because passenger names, email addresses, and travel details may be sensitive. Define retention and deletion according to actual contractual and regulatory requirements.
Acknowledgement is not completion
Only acknowledge successful acceptance after the durable record and work handoff are recoverable. If persistence fails, report failure in the way the provider expects so its documented delivery process can respond. Do not keep an HTTP connection open while waiting for supplier retrieval, customer communications, or financial operations.
Normalize events without losing their origin
A common internal envelope can help a multi-supplier platform while retaining source-specific facts. Store a logical provider, account_scope, environment, event_key, event_type, supplier_booking_ref, event_time, received_at, and source_version where actually available. Do not fabricate absent fields merely to satisfy a shared interface.
Keep provider event time, delivery time, and lookup time distinct. A timestamp tells when something was reported or observed; it is not necessarily a sequential booking version. Event IDs are identities, not sortable sequence numbers unless a supplier explicitly documents that property.
Resolve correlation against a controlled reference registry. Accept a match only when the supplier account, booking reference, environment, and ownership agree. A customer email alone is insufficient: multiple reservations may share an address, and names can change. When an event cannot be safely linked, quarantine it for authorized investigation and leave unrelated reservations untouched.
Idempotency across delivery, workers, and projections
Exactly-once supplier delivery is not a safe dependency. The receiver can receive the same event more than once; a worker may retry after a timeout; and a database write may succeed just before its acknowledgement is lost. Each layer needs its own repeat-safe boundary.
Use a unique event-inbox key such as provider, credential or tenant scope, environment, and provider event ID. Also record delivery attempts separately so operational teams can distinguish one duplicated event from two distinct events about the same booking. A payload digest helps investigate discrepancies but is not a substitute for a documented provider event identifier.
Workers should claim a job with a lease or equivalent concurrency control, record attempts, and retry transient failures with bounded backoff. Completion must survive process restarts. Use transactional comparisons or version checks so two workers cannot overwrite one another's decisions. An expired lease permits another worker to continue, but it must not permit duplicate booking effects.
A projection update should have a deterministic key tied to the validated booking revision and the projection's purpose. A queue replay can then verify the revision was already applied and exit without altering the timeline. Customer messages and refund tasks need different deduplication keys because one booking change may legitimately require multiple approved operations.
Model booking status as evidence-based transitions
Separate the supplier's factual state from the platform's processing state. A flight may remain confirmed while an airline change is being reviewed. A notification can be verified and queued without making the underlying itinerary automatically “changed.” Explicit states prevent users from seeing an unsupported cancellation or departure time.
| State | Meaning | Safe next step |
|---|---|---|
| Confirmed | Previously validated itinerary is displayed. | On a correlated change signal, mark review pending without replacing details. |
| Review pending | Authenticated event exists; changed facts are unconfirmed. | Retrieve the booking using authorized supplier credentials. |
| Awaiting consistency | Lookup still shows old details or lacks a documented replacement. | Retain prior confirmed details and schedule a bounded recheck. |
| Replacement validated | Supported lookup supplies a newer, linked itinerary. | Atomically promote the new facts and keep predecessor lineage. |
| Manual review | Conflicting evidence, unknown reference, or unresolved policy decision. | Assign an owner; block unsupported customer or financial changes. |
Illustrative fixture: W-756 and booking B-87
Every identifier, time, outcome, and data value in this fixture is fictional. It describes an internal test harness, not a TravelTech365 customer, a real supplier order, or a claim that either cited provider emitted these events. W-756 is the imaginary signed webhook subscription; E-18 and E-17 are invented event IDs; B-87 is a fictional confirmed flight order. All event signatures in this fixture are assumed valid under the hypothetical supplier's documented signing contract.
Starting evidence and explicit expectations
The event log uses receipt times on the day before travel. Before the test, B-87 has one confirmed itinerary with next-day departure at 09:41, supplier reference S-301, and local revision R-4. The customer has already received the original confirmation. The test harness also contains an approved mapping from S-301 to B-87, an event inbox, a booking projection, and an outgoing-message ledger.
The expected supplier outcome is a documented next-day replacement departure at 11:22, linked to the existing order rather than treated as another purchase. The webhook itself only says that a change was detected. The new time must come from an authorized lookup result with sufficient replacement context. The fixture deliberately returns the original 09:41 schedule during an early read, demonstrating why a successful API response cannot automatically settle the business question.
| Time | Fixture input | Recorded processing outcome | Displayed itinerary |
|---|---|---|---|
| Before 10:02 | B-87 at R-4, departure 09:41. | Confirmed baseline; lineage S-301 attached. | 09:41, confirmed. |
| 10:02 | Signed W-756 event E-18 reports a change for B-87. | Signature accepted; first event committed and queued; review pending. | 09:41, change under review. |
| 10:03 | Identical E-18 notification delivered again. | Second delivery logged; unique event record unchanged; no second work effect. | 09:41, change under review. |
| 10:04 | Authorized retrieve request L-1 begins and returns only the existing 09:41 schedule. | Old snapshot recorded; no replacement evidence; bounded recheck scheduled. | 09:41, change under review. |
| 10:05 | Earlier signed event E-17 arrives after E-18. | Separate event recorded; earlier event does not overwrite current review state. | 09:41, change under review. |
| 10:07 | Authorized retrieve L-2 returns a documented replacement departing 11:22. | Replacement linked to S-301; revision R-5 committed; notification intent created. | 11:22, replacement validated. |
| 10:08 | A delayed worker result based on the older 09:41 snapshot is processed. | Older reconciliation generation rejected for projection; event evidence retained. | 11:22, no regression. |
| 10:09 | E-18 worker job is retried after its completion acknowledgement was interrupted. | R-5 already projected; no extra timeline entry or customer message. | 11:22, unchanged. |
Why the timeline is internally consistent
The test treats E-17 as earlier by fixture metadata, not because its numeric suffix is assumed universally meaningful. At 10:05, E-17 remains useful historical evidence, but its late delivery does not imply the old schedule is current. Arrival order therefore never determines which departure time wins.
Each authorized retrieval receives a locally assigned reconciliation generation when scheduled. L-1 belongs to an older generation than L-2. Once L-2 supplies a documented replacement and the projection advances to R-5, a result derived from L-1 cannot replace it. Generation checks protect against delayed worker completion; they do not pretend the supplier itself guarantees monotonic reads.
At 10:07, the projection transaction records old and new departure times, the supplier reference, the lookup evidence, the local revision, and the reason for promotion. It also inserts one eligible communication intent. The timeline retains R-4 for auditability without showing 09:41 as the current confirmed departure. No refund, reissue, or supplier booking write is inferred from the schedule update.
Reconciliation when authoritative reads lag
Reconciliation means asking the authorized supplier system what the booking currently says, while accepting that a read may temporarily be incomplete or inconsistent. A successful HTTP status only establishes that a request completed at the transport layer. It does not establish the freshness, completeness, or commercial finality of the returned itinerary.
For a change event, retrieve using the preserved supplier order or itinerary reference, the correct account, and the documented read operation. Compare individual itinerary components rather than merely a top-level status string. Verify the changed segment, travel date, timezone, passenger association, and any supplier-supplied replacement relationship relevant to the display.
When the response still contains only the prior schedule, retain the last validated information and an explicit pending indicator. Retry at bounded intervals and escalate after a defined review window. Do not invent a replacement, automatically accept an unrelated flight with a similar route, or hide the unresolved status from operations.
A later response can also be older than an already committed projection. Use provider-supported revision or sequence information when available. Otherwise rely on local reconciliation generations, documented lineage, consistency checks, and escalation when evidence conflicts. A newer request does not automatically certify a fresher supplier snapshot; ambiguous regressions should be held for review rather than silently applied.
Reconciliation is also a scheduled repair mechanism. Periodically compare selected high-risk or long-pending bookings with their supplier records using authorized access and sensible rate limits. Record what was checked, when, and why. This recovers from delayed delivery or missed processing without treating the webhook channel as the sole source of truth.
Keep customer messages, money, and booking writes separate
Customer communication
Sending an email or app alert is a separate side effect after the confirmed state transition. Create an intent keyed to booking, validated revision, audience, and message purpose. Require contact permission and the appropriate operational policy. An email-provider acknowledgement means a message was accepted for delivery, not that the traveler read it or consented to a revised itinerary.
For B-87, the first change alert may state that updated details are being reviewed, if that communication is appropriate. The final schedule notification should use 11:22 only after R-5 is validated. Replaying E-18 or retrying the message worker must not send repeated identical notices. Record delivery outcomes separately from booking correctness.
Refund and payment workflow
A notification mentioning a cancellation or refund is not permission to create a financial transaction. Verify the booking facts, eligibility, amount, currency, payment ownership, and any required approval. Open a distinct refund case with its own identity, lifecycle, and reconciliation against the payment system. Expedia Group's Rapid documentation includes a supplier-refund notification for relevant Expedia Collect bookings, but that event is not itself proof that every downstream traveler payment has been completed.
Supplier booking mutations
Changes that write back to a supplier, such as an authorized cancellation or ticket-related operation, belong behind an explicit command boundary. Demand the proper user or agent authorization, inspect current provider state, and use the supplier's supported idempotency or reference rules. A received webhook should not automatically create a second reservation or issue a change command merely because its worker ran twice.
Observability and incident handling
Operational dashboards should answer four different questions: are deliveries arriving, are events being processed, are bookings converging to validated state, and are customer or financial effects completing? A single “webhooks healthy” indicator cannot answer all four. Measure signature validation outcomes, duplicate-delivery rates, inbox age, queue lag, correlation failures, lookup freshness, unresolved changes, and projection conflicts.
Link every trace through a correlation ID without exposing raw customer details. An operator reviewing B-87 should see W-756, E-18, the duplicate attempt, E-17, lookup identifiers L-1 and L-2, accepted revision R-5, and the message intent. Store enough sanitized evidence to explain decisions and reproduce the internal state, with access limited by role.
Alerts should reflect customer impact. A short processing delay warrants a different response from an increasing queue of confirmed supplier cancellations awaiting review. Define owners for verification failures, persistent unknown correlation, supplier lookup outages, long-pending changes, and blocked refund cases. Recovery procedures should replay durable work through existing uniqueness constraints, not create new business commands from unverified assumptions.
Acceptance tests with concrete expected results
The following table completes the illustrative fixture as an implementation acceptance checklist. These are hypothetical internal test outcomes, not published supplier service-level guarantees. Each test uses authorized fixtures or documented provider testing facilities; none requires adversarial traffic or bypass techniques.
| Check | Expected evidence | Illustrative result |
|---|---|---|
| Signed receipt | W-756 E-18 verifies before durable acceptance. | Pass: one authenticated inbox event at 10:02. |
| Durable handoff | Receipt acknowledgement follows recoverable inbox and queue work. | Pass: worker restart retains pending job. |
| Duplicate delivery | Second E-18 changes delivery count, not logical event count. | Pass: two receipts; one logical E-18. |
| Late earlier event | E-17 remains in history without schedule regression. | Pass: current itinerary unchanged at 10:05. |
| Lagging lookup | L-1 returning 09:41 does not close the change review. | Pass: pending flag retained at 10:04. |
| Confirmed replacement | L-2 documents 11:22 and establishes linked revision R-5. | Pass: exactly one projection promotion. |
| Delayed worker result | Earlier generation cannot overwrite R-5. | Pass: displayed departure stays 11:22. |
| Retried worker | Replay cannot duplicate timeline or message effects. | Pass: one R-5 entry; one final-message intent. |
| Unknown correlation | Unmapped supplier reference enters controlled quarantine. | Pass: no unrelated booking modified. |
| Independent boundaries | No refund or supplier write happens from the schedule signal. | Pass: zero refund commands; zero booking-write commands. |
Include controlled restart checks, temporary supplier-read unavailability, schema-version review, and retention verification. Success means the system restores pending work, preserves booking lineage, records a reason for unresolved cases, and avoids unsupported transitions. The specific retry intervals, alert thresholds, and storage durations should be selected for the integration's operational needs and contractual limits.
Implementation handover for a travel platform
Before enabling production notifications, create a provider-specific contract sheet. Record supported event types, subscription environment, signing or authentication requirements, identifier semantics, callback response expectations, lookup privileges, replay facilities, and known provider limitations. Confirm the details against the supplier's current documentation and account configuration rather than relying on a generic integration template.
Then assign ownership of the receiver, inbox, reconciliation worker, booking projection, customer communications, and financial workflows. Review database uniqueness constraints and ensure transaction boundaries survive restarts. Prepare runbooks for unknown correlations, delayed changes, and conflicting state evidence. Restrict personal data in logs, and give support teams a clear view of confirmed facts versus pending reviews.
TravelTech365 approaches this as a custom travel software integration design problem: events should connect to booking operations without becoming uncontrolled booking commands. The useful result is not merely that a webhook endpoint responds, but that the platform can explain every displayed status, identify its source, and recover safely when delivery and read timing disagree.
Primary documentation
Provider-specific statements above are limited to the supplied primary references: Duffel, Receiving Webhooks; Duffel, Webhooks API; Duffel, Webhook Events API v2; and Expedia Group Rapid, Notifications API. Architecture patterns, internal state names, W-756, E-18, E-17, B-87, timing, and all acceptance outcomes are illustrative design choices rather than provider commitments.
