Insights

Webhooks for travel order events: build on bookings without duplicates or polling

How webhooks for travel order events and an idempotent booking API keep your systems in step: record locator vs order ID, safe retries, and where Synapse fits.

25 November 2026 7 min APIConnectivity

Most travel API projects are judged on search speed. The cost that actually stays with you sits after the booking is made: a ticket that issues ten minutes later, a payment that has to be retried, a cancellation made by a colleague on another screen. If your systems learn about those changes by polling, or create a second booking when a request times out, the integration never feels finished. This piece covers three design decisions that fix most of that: which identifier you build on (record locator vs order ID), how an idempotent booking API turns retries into safe operations, and how webhooks for travel order events keep every downstream system in step. They matter whether you build on a unified travel API or connect to suppliers one by one.

"Booked" is where the integration starts

A confirmed booking is the start of a lifecycle. Tickets issue, insurance policies are generated, payments settle, and the traveller or your own staff change or cancel parts of the trip. Each of those events matters to someone downstream: the agent screen, the customer notification, the operations desk, reporting.

The usual first version handles this by polling. A job asks the supplier or platform every few minutes whether anything changed. It works in a demo. At volume it adds load, delay and blind spots: a change between two polls is seen late, and a polling job that fails silently looks the same as a quiet day. Event-driven design inverts this. The platform tells you when something happened, and your systems react.

Record locator vs order ID: choose the key you build on

In air, the record locator (the PNR reference) is the identifier everyone knows. It is essential for servicing with the airline. But it was designed for one supplier's reservation, not for your whole trip. A single customer journey can carry several record locators across carriers, plus hotel confirmation numbers, transfer vouchers and an insurance policy number. Some of those references only exist after a step completes, and some can change during servicing.

An order ID belongs to your platform and stays the same for the life of the booking. Build your systems on the order ID, and keep the supplier references (record locators, confirmation numbers, ticket numbers) as attributes of the order components. Then an event about any part of the trip arrives against one stable key, and a hotel change doesn't need a different lookup path from an airline reissue. The same thinking sits behind the industry's move from PNRs towards one order models.

Idempotency: a timeout must not become a second booking

Travel bookings are slow, multi-step and often depend on a supplier responding in time. Networks drop. A client times out after the supplier has already confirmed. The natural reaction, retrying, is exactly what creates duplicate bookings and duplicate charges.

An idempotent booking API removes that risk. The client sends a unique idempotency key with every write request, such as creating an order, adding a component, cancelling or refunding. If the same request arrives again with the same key, the API returns the original result instead of doing the work twice. Your client can then retry with confidence after a timeout, a deploy or a dropped connection.

Practical rules: generate the key once per business action, not once per HTTP attempt. Store it with your own record of the action, and reuse it on every retry. Treat a response with a new key and the same content as a new intent, because to the API it is one.

Webhooks for travel order events: push, don't poll

A webhook is an HTTP call the platform makes to your endpoint when something happens. Typical travel order events include the order being created or changed, a ticket being issued, an insurance policy being issued, and a payment event. Because the event arrives within moments of the change, the agent screen, customer messages and operations queue can update without anyone refreshing.

Events carry the most value when their types are the same across suppliers and verticals. If a ticket issued on an NDC airline and one issued through a GDS produce the same event shape, you write one handler. If every supplier speaks its own dialect, you are back to point-to-point integration, just with a different transport.

Designing a receiver that stays correct

Webhooks are simple to receive and easy to get subtly wrong. A few habits keep them reliable:

  • Acknowledge fast, process after. Return success as soon as the event is stored, then do the heavy work in a queue, so slow downstream steps don't cause timeouts and redelivery.
  • Expect duplicates. Any delivery system that retries will occasionally send an event twice. Deduplicate on the event identifier.
  • Don't rely on arrival order. If two events arrive close together, read the current order state from the API rather than assuming the last event you received is the latest truth.
  • Verify the sender. Use whatever verification the provider documents before acting on an event.
  • Keep the raw payload. Storing what arrived makes support questions and audits much faster to answer.
  • Know your recovery path. Ask the provider what happens if your endpoint was down, and how you catch up on missed events.

One order model across verticals

All of this gets simpler when create, change, cancel and refund work the same way for flights, hotels, insurance and ground transport. Your idempotency handling, event handlers and order screens are written once. Adding a vertical becomes a data change, not a new integration project. It also covers your own contracted content: fares and rates loaded in Nexus are booked into the same order shape as public supply.

Where Synapse fits

Elkanio Synapse is the unified travel API the Elkanio platform runs on, including the Nucleus B2B booking platform. It uses one order model to create, change, cancel and refund in every vertical. Webhooks for order, ticketing, policy issuance and payment events fire as soon as they happen, and every order emits the same event stream whatever the source system. Write requests take idempotency keys. Developers get a sandbox with production parity, per-key rate limits, request logs, supplier health per route, an OpenAPI 3 schema, Postman collections and typed clients. The gateway, and the portals that run on it, have a contractual 99.99% uptime SLA.

A short checklist for your next API review

  • Is there one stable order ID, with record locators and confirmation numbers held as component references?
  • Do all write operations accept idempotency keys, and what happens when a key is reused?
  • Which travel order events are pushed as webhooks, and are the event types the same across suppliers and verticals?
  • How are events verified, and how do you recover events your endpoint missed?
  • Can you test all of this in a sandbox that behaves like production?

Closing

Fast search wins the demo, but correct order handling is what keeps an integration calm a year later. Build on a stable order ID, make every write idempotent, and let events tell your systems what changed. Then retries stop being a risk and polling jobs can go.

Related glossary terms

FAQ

Questions people ask

  • What is Elkanio Synapse?

    Synapse is a unified travel API. It normalises airlines (GDS, NDC and LCC), hotels, activities, insurance, visa, cab, bus, ferry and cruise supply into one REST API with a single schema.

  • What does “agentic self-healing” mean in Synapse?

    When a supplier changes its response format, a supervised agent detects the drift, proposes a mapping patch, replays cached real traffic against it and promotes the fix behind a versioned mapping with rollback. Engineers are notified of every change.

  • Is there a sandbox?

    Yes. The sandbox uses the same mappings and agents as production with simulated supplier responses, so integrations can be built and tested before go-live.

  • Is Synapse REST or GraphQL?

    REST, described by a published OpenAPI 3 schema, with JSON responses, webhooks for order events, per-key rate limits and idempotency keys.

  • Can we use Synapse without the other Elkanio products?

    Yes. Synapse is sold on its own for teams building their own front ends. Every other Elkanio product also runs on it, so adding Nucleus, Nova or Vector later needs no new integration.

See the platform in a live demo

Walk through Synapse, Nucleus and the other products working together on your routes and use cases.